From d3c187258f69463ae793c540d09f2d963799cb1b Mon Sep 17 00:00:00 2001 From: odas0R Date: Sat, 5 Jun 2021 18:37:24 +0100 Subject: [PATCH 1/3] added gui browser query --- bash/aliases.sh | 3 ++- scripts/? | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 scripts/? diff --git a/bash/aliases.sh b/bash/aliases.sh index 8ed154b..aceaade 100644 --- a/bash/aliases.sh +++ b/bash/aliases.sh @@ -1,5 +1,6 @@ # Variables -DESKTOP="/mnt/c/Users/guilh/Desktop" +export DESKTOP="/mnt/c/Users/guilh/Desktop" +export BROWSER="/mnt/c/Program\ Files/Mozilla\ Firefox/firefox.exe" alias desktop="cd $DESKTOP" alias rmidn="rm -r **/*:Zone.Identifier && rm -R **/.*:Zone.Identifier" diff --git a/scripts/? b/scripts/? new file mode 100755 index 0000000..c7a28eb --- /dev/null +++ b/scripts/? @@ -0,0 +1,3 @@ +#!/bin/sh + +exec /mnt/c/Program\ Files/Mozilla\ Firefox/firefox.exe -search "$*" From 7eff2f41a94eb1b3efb35e6f070213a89bbf1aae Mon Sep 17 00:00:00 2001 From: odas0R Date: Wed, 16 Jun 2021 03:21:00 +0100 Subject: [PATCH 2/3] I'm done with vim --- bash/aliases.sh | 4 +- git/git_templates/hooks/pre-commit | 8 --- scripts/add | 3 - scripts/branch | 3 - scripts/commit | 3 - scripts/commits | 3 - scripts/gdiff | 15 ---- scripts/gdocs | 3 + scripts/preview | 11 --- scripts/vmark | 3 - scripts/workspace | 4 -- scripts/ws | 4 ++ scripts/zet | 111 ----------------------------- tmux/tmux.conf | 4 +- vim/vimrc | 21 ++++-- 15 files changed, 27 insertions(+), 173 deletions(-) delete mode 100755 git/git_templates/hooks/pre-commit delete mode 100755 scripts/add delete mode 100755 scripts/branch delete mode 100755 scripts/commit delete mode 100755 scripts/commits delete mode 100755 scripts/gdiff create mode 100755 scripts/gdocs delete mode 100755 scripts/preview delete mode 100755 scripts/vmark delete mode 100755 scripts/workspace create mode 100755 scripts/ws delete mode 100755 scripts/zet diff --git a/bash/aliases.sh b/bash/aliases.sh index aceaade..1197098 100644 --- a/bash/aliases.sh +++ b/bash/aliases.sh @@ -1,8 +1,8 @@ -# Variables +#!/bin/sh export DESKTOP="/mnt/c/Users/guilh/Desktop" export BROWSER="/mnt/c/Program\ Files/Mozilla\ Firefox/firefox.exe" -alias desktop="cd $DESKTOP" +alias desktop="cd ${DESKTOP}" alias rmidn="rm -r **/*:Zone.Identifier && rm -R **/.*:Zone.Identifier" alias sb="source ~/.bashrc" alias fixtime="sudo ntpdate time.windows.com" diff --git a/git/git_templates/hooks/pre-commit b/git/git_templates/hooks/pre-commit deleted file mode 100755 index 51e6909..0000000 --- a/git/git_templates/hooks/pre-commit +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -branch="$(git branch --show-current)" -if [ "$branch" = "master" -o "$branch" = "main" ]; then - echo "You are on ${branch}.\n" - echo "Move to another branch & create a pull request. \n" - exit 1 -fi diff --git a/scripts/add b/scripts/add deleted file mode 100755 index 11563b8..0000000 --- a/scripts/add +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -exec git add "$@" diff --git a/scripts/branch b/scripts/branch deleted file mode 100755 index 8bbb88a..0000000 --- a/scripts/branch +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -exec git checkout "$@" diff --git a/scripts/commit b/scripts/commit deleted file mode 100755 index ad5883c..0000000 --- a/scripts/commit +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -exec git commit "$@" diff --git a/scripts/commits b/scripts/commits deleted file mode 100755 index 6964906..0000000 --- a/scripts/commits +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -exec git log --all --decorate --oneline --graph diff --git a/scripts/gdiff b/scripts/gdiff deleted file mode 100755 index b96eb63..0000000 --- a/scripts/gdiff +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -args=$(printf '%s\n' "$@") - -showPreview() { - [ -z "$args" ] && args="main" - preview="git diff $args --color=always -- {-1}" - git diff "$args" --name-only | fzf -m --ansi --preview "$preview" -} - -if git rev-parse --git-dir >/dev/null 2>&1; then - [ -d .git ] && showPreview >/dev/null -else - echo "Error: Not inside a git repository." -fi diff --git a/scripts/gdocs b/scripts/gdocs new file mode 100755 index 0000000..f71fd5b --- /dev/null +++ b/scripts/gdocs @@ -0,0 +1,3 @@ +#!/bin/sh + +exec open https://docs.google.com/document/u/0/ diff --git a/scripts/preview b/scripts/preview deleted file mode 100755 index e40c9d2..0000000 --- a/scripts/preview +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -if ! type browser-sync >/dev/null 2>&1; then - echo 'Need to install browser-sync.' - exit 1 -fi - -browser-sync start \ - --no-notify --no-ui \ - --ignore '**/.*' \ - -sw diff --git a/scripts/vmark b/scripts/vmark deleted file mode 100755 index b93c077..0000000 --- a/scripts/vmark +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -[ -h "$MARKPATH/$1" ] && exec vim "$MARKPATH/$1" || echo "mark not found" diff --git a/scripts/workspace b/scripts/workspace deleted file mode 100755 index a6f534a..0000000 --- a/scripts/workspace +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -[ -h "$MARKPATH/$1" ] && exec code $(readlink "${MARKPATH}/${1}") || - echo "workspace not found." diff --git a/scripts/ws b/scripts/ws new file mode 100755 index 0000000..9784cd2 --- /dev/null +++ b/scripts/ws @@ -0,0 +1,4 @@ +#!/bin/sh + +[ -h "$MARKPATH/$1" ] && exec code -r "$(readlink "${MARKPATH}/${1}")" || + echo "workspace not found." diff --git a/scripts/zet b/scripts/zet deleted file mode 100755 index a63ca6e..0000000 --- a/scripts/zet +++ /dev/null @@ -1,111 +0,0 @@ -#!/bin/sh - -# Zettelkasten + FZF -# -# 1. Automatic Note Creation w/ isotime -# 2. Link notes -# 3. Add tags to notes -# 4. Automatic github Sync - -# The query command will depend on fzf. You can use a filter to exclude & -# include zettels by tags. - -# Commands -# new | n -> create a new note on inbox/ -# query | q -> find notes w/ regex -# link | l -> link 2 zettels together ? -# rm-link | rml -> remove -# ls -> list all notes ? - -ZETTELKASTEN="${HOME}/zet" -INBOX="${ZETTELKASTEN}/inbox" - -print_help() { - printf "%s -Zettelkasten program -It is organized by inbox & permanent notes. - -Commands: - --help | -h Show help commands - new | n Create a new note - link | l Link two notes - rm-link | rml Remove two links - hub | h Opens the hub zettel - query | q Queries the zettels with Regex, you can filter by tags. -" -} - -# Zettelkasten new note template -zet_new() { - local fileName=$(isosec) - local file="${fileName}.md" - - tee "${INBOX}/${file}" </dev/null -**links:** -**tags:** - -# Add a title - -EOF -} - -zet_link() { - local file1Basename=$(basename -s '.md' $2) - local file2Basename=$(basename -s '.md' $3) - - local file1="[${file1Basename}](${file1Basename})" - local file2="[${file2Basename}](${file2Basename})" - - local existsLinkOnFile1=$(cat $2 | grep -c "$file2Basename") - local existsLinkOnFile2=$(cat $3 | grep -c "$file1Basename") - - # Check if file1 has a link of file2 - if [ $existsLinkOnFile1 -eq 1 ]; then - printf "$file1Basename already is linked to $file2Basename\n" - if [ $existsLinkOnFile2 -eq 0 ]; then - read -p "$file2Basename does not contain a link back, do you want to fix? [Y/y]" yes - case "${yes}" in - y | Y) - # Append link on the file 2 - sed -i "1s/$/ ${file1}/" $3 - ;; - esac - fi - exit 0 - fi - - # Check if file2 has a link of file1 - if [ $existsLinkOnFile2 -eq 1 ]; then - printf "$file2Basename already is linked to $file1Basename\n" - if [ $existsLinkOnFile1 -eq 0 ]; then - read -p "$file1Basename does not contain a link back, do you want to fix? [Y/y]" yes - case "${yes}" in - y | Y) - # Append link on the file 1 - sed -i "1s/$/ ${file2}/" $2 - ;; - esac - fi - exit 0 - fi - - # Link both files - sed -i "1s/$/ ${file1}/" $3 - sed -i "1s/$/ ${file2}/" $2 -} - -case $1 in --h | --help) - print_help - exit 0 - ;; -n | new) - zet_new - exit 0 - ;; -l | link) - exit 0 - ;; -esac - -print_help diff --git a/tmux/tmux.conf b/tmux/tmux.conf index c59d020..8fca4f8 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -45,8 +45,8 @@ set -g status-right-length 0 set -g status-right '%a %Y-%m-%d %H:%M' set -g status-right-length 20 -# link vim yanking with tmux -set -g focus-events on +# form vim/tmux d/y buffer sync +set -g focus-events # ----------------------------------------------------------------------------- # Key bindings diff --git a/vim/vimrc b/vim/vimrc index 4f4f856..ac5aee9 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -88,7 +88,8 @@ inoremap call plug#begin('~/.vim/plugged') -Plug 'z0mbix/vim-shfmt', { 'for': 'sh' } +Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } +Plug 'junegunn/fzf.vim' Plug 'morhetz/gruvbox' Plug 'vim-airline/vim-airline' Plug 'tpope/vim-fugitive' @@ -110,12 +111,22 @@ colorscheme gruvbox let g:gruvbox_contrast_dark = 'hard' let g:gruvbox_italic=1 -" shfmt - bash formatter +" Fzf Vim " -" https://github.com/mvdan/sh +" https://github.com/junegunn/fzf.vim " -let g:shfmt_fmt_on_save = 1 -let g:shfmt_extra_args = '-i 2' " spaces +let g:terminal_ansi_colors = [ + \ '#4e4e4e', '#d68787', '#5f865f', '#d8af5f', + \ '#85add4', '#d7afaf', '#87afaf', '#d0d0d0', + \ '#626262', '#d75f87', '#87af87', '#ffd787', + \ '#add4fb', '#ffafaf', '#87d7d7', '#e4e4e4' + \ ] + +let g:fzf_preview_window = ['right:60%'] +let g:fzf_layout = { 'window': { 'width': 0.8, 'height': 0.8, 'relative': v:true } } + +nnoremap :Rg +nnoremap :Files " Vim Markdown " From 2c60b6ed3f71362d2a3f886848b22d36acab4216 Mon Sep 17 00:00:00 2001 From: odas0R Date: Wed, 16 Jun 2021 03:54:26 +0100 Subject: [PATCH 3/3] fuck vim --- bash/aliases.sh | 5 ++ bash/colors.sh | 39 ++++++------ bash/editor.sh | 8 +-- bash/mark.sh | 1 - bash/ps1.sh | 1 + bashrc | 1 + scripts/config | 16 ++--- scripts/forget | 15 ----- scripts/note | 17 ------ scripts/recall | 28 --------- scripts/session | 2 +- vim/vimrc | 159 +----------------------------------------------- 12 files changed, 41 insertions(+), 251 deletions(-) delete mode 100644 bash/mark.sh delete mode 100755 scripts/forget delete mode 100755 scripts/note delete mode 100755 scripts/recall diff --git a/bash/aliases.sh b/bash/aliases.sh index 1197098..03fc582 100644 --- a/bash/aliases.sh +++ b/bash/aliases.sh @@ -8,6 +8,7 @@ alias sb="source ~/.bashrc" alias fixtime="sudo ntpdate time.windows.com" # Vim +alias vim="code" # Dont use vim never more fuck that shit alias vi="vim" alias v="vim" @@ -31,6 +32,10 @@ pid() { ss -lptn "sport = :$1" } +gcp() { + ga && gc && gp +} + # jump to mark jump() { [ -h "$MARKPATH/$1" ] && cd -P "$MARKPATH/$1" || echo "mark not found" diff --git a/bash/colors.sh b/bash/colors.sh index d894644..93ce253 100644 --- a/bash/colors.sh +++ b/bash/colors.sh @@ -1,3 +1,4 @@ +#!/bin/sh # Color Syntax: # # '\[\e[x;ym $ \e[m\]' @@ -15,26 +16,26 @@ # # Utils -start_print="\[" -end_print="\]" -end_theme="\e[m" -reset="\e[0m" +export start_print="\[" +export end_print="\]" +export end_theme="\e[m" +export reset="\e[0m" # Regular -black="\e[0;30m" # Black -red="\e[0;31m" # Red -green="\e[0;32m" # Green -yellow="\e[0;33m" # -blue="\e[0;34m" # Blue -purple="\e[0;35m" # Purple -cyan="\e[0;36m" # Cyan -white="\e[0;37m" # White +export black="\e[0;30m" # Black +export red="\e[0;31m" # Red +export green="\e[0;32m" # Green +export yellow="\e[0;33m" # +export blue="\e[0;34m" # Blue +export purple="\e[0;35m" # Purple +export cyan="\e[0;36m" # Cyan +export white="\e[0;37m" # White # Bold -black_bold="\e[1;30m" # Black -red_bold="\e[1;31m" # Red -green_bold="\e[1;32m" # Green -yellow_bold="\e[1;33m" # -blue_bold="\e[1;34m" # Blue -purple_bold="\e[1;35m" # Purple -cyan_bold="\e[1;36m" # Cyan +export black_bold="\e[1;30m" # Black +export red_bold="\e[1;31m" # Red +export green_bold="\e[1;32m" # Green +export yellow_bold="\e[1;33m" # +export blue_bold="\e[1;34m" # Blue +export purple_bold="\e[1;35m" # Purple +export cyan_bold="\e[1;36m" # Cyan diff --git a/bash/editor.sh b/bash/editor.sh index 725f4c1..2e99f92 100644 --- a/bash/editor.sh +++ b/bash/editor.sh @@ -1,9 +1,9 @@ # remap capslock for whole system to ESC (X only) -if [ -n "${DISPLAY}" ];then +if [ -n "${DISPLAY}" ]; then setxkbmap -option caps:escape fi export HRULEWIDTH=73 -export EDITOR=vi -export VISUAL=vi -export EDITOR_PREFIX=vi +export EDITOR=code +export VISUAL=code +export EDITOR_PREFIX=code diff --git a/bash/mark.sh b/bash/mark.sh deleted file mode 100644 index 8b13789..0000000 --- a/bash/mark.sh +++ /dev/null @@ -1 +0,0 @@ - diff --git a/bash/ps1.sh b/bash/ps1.sh index 3ba57cd..19dc49a 100644 --- a/bash/ps1.sh +++ b/bash/ps1.sh @@ -1,3 +1,4 @@ +#!/bin/sh parse_git_branch() { git_folder=./.git if [ -d $git_folder ]; then diff --git a/bashrc b/bashrc index 3ee659c..456e86f 100644 --- a/bashrc +++ b/bashrc @@ -1,3 +1,4 @@ +#!/bin/sh if [ -e /etc/bashrc ]; then source /etc/bashrc fi diff --git a/scripts/config b/scripts/config index e453c83..eabb434 100755 --- a/scripts/config +++ b/scripts/config @@ -13,31 +13,31 @@ case $1 in exit 0 ;; vim) - exec vim $CONFIGS/vim/vimrc + exec code $CONFIGS/vim/vimrc exit 0 ;; bash) - exec vim $CONFIGS/bashrc + exec code $CONFIGS/bashrc exit 0 ;; gh) - exec vim $CONFIGS/gh/config.yml + exec code $CONFIGS/gh/config.yml exit 0 ;; git) - exec vim ~/.gitconfig + exec code ~/.gitconfig exit 0 ;; aliases) - exec vim $CONFIGS/bash/aliases.sh + exec code $CONFIGS/bash/aliases.sh exit 0 ;; tmux) - exec vim $HOME/.tmux.conf + exec code $HOME/.tmux.conf exit 0 ;; complete) - exec vim $HOME/.bash/complete.sh + exec code $HOME/.bash/complete.sh exit 0 ;; --bash-completion) @@ -45,7 +45,7 @@ complete) exit 0 ;; edit) - exec vim $CONFIGS/scripts/config + exec code $CONFIGS/scripts/config exit 0 ;; esac diff --git a/scripts/forget b/scripts/forget deleted file mode 100755 index 9e27bf4..0000000 --- a/scripts/forget +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -file="${RECALLPATH}/${1}.md" -forgotten="${RECALLPATH}/forgotten" - -[ ! -d "${forgotten}" ] && mkdir $forgotten - -[ ! -n "${1}" ] && printf "usage: recall \n" && return - -if [ -f "${file}" ]; then - mv $file $forgotten - echo "file was forgotten in forgotten/ dir" -else - echo "topic doesn't exist. \n" -fi diff --git a/scripts/note b/scripts/note deleted file mode 100755 index 6ccf382..0000000 --- a/scripts/note +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -file="${1}.md" -path="$HOME/notes/inbox/${file}" - -[ ! -n "${1}" ] && echo "usage: note ''" && exit 1 - -if [ -f "${path}" ]; then - read -p "${1} already exists. Edit? " yes - case "${yes}" in - y | yes | ok | okay) exec vim "${path}" ;; - esac - exit 0 -fi - -printf "# ${2}\n\n\n" >"${path}" -exec vim "${path}" diff --git a/scripts/recall b/scripts/recall deleted file mode 100755 index d160a6b..0000000 --- a/scripts/recall +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -# Take it this way: -# -# Retrieving information using active recall helps you remember it. -# It’s much better than simply recognizing an answer, re-reading -# information, note-taking, or concept mapping. - -file="${RECALLPATH}/${1}.md" -recallList=$(find $RECALLPATH -maxdepth 1 -iname "*.md" -exec sh -c 'for f -do basename -- "$f" .md;done' sh {} +) - -if [ ! -n "${1}" ]; then - echo "usage: recall <topic>\n" - echo "Available:" - echo $recallList - return -fi - -if [ ! -f "${file}" ]; then - read -p "Do you want to recall ${1}? [Y/y]" yes - case "${yes}" in - y | Y) echo "# ${2}\n\n" >"${file}" && exec vim $file ;; - esac - exit 0 -else - exec vi $file -fi diff --git a/scripts/session b/scripts/session index 3b85f24..0eb9e61 100755 --- a/scripts/session +++ b/scripts/session @@ -23,7 +23,7 @@ rename) exit 0 ;; kill) - exec tmux kill-session -t "$2" "$3" + exec tmux kill-session -t "$2" exit 0 ;; esac diff --git a/vim/vimrc b/vim/vimrc index ac5aee9..ecf814c 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,158 +1 @@ -let mapleader = "," - -set spelllang=en_us - -set autoindent " automatically indent new lines -set autowrite " automatically write files when changing when multiple files open -set nonumber " activate line numbers -set norelativenumber " Remove line number relative -set noruler " Remove line and column number of the cursor position -set cmdheight=2 " Number of screen lines to use for the command-line. -set updatetime=100 " If nothing was written in the buffer after 100ms -set noshowmode " remove vim default showing mode, using lightline -set clipboard=unnamed - -set tabstop=2 -set textwidth=72 -set softtabstop=2 -set shiftwidth=2 -set laststatus=2 -set numberwidth=2 -set smartindent -set smarttab - -set expandtab " replace tabs with spaces automatically -set nofixendofline " Stop vim from adding \n to the end of the line -set listchars=space:*,trail:*,nbsp:*,extends:>,precedes:<,tab:\|> " better ascii friendly listchars for spaces -set foldmethod=manual " don't fold -match ErrorMsg '\s\+$' " mark trailing spaces as errors - -set nobackup " not secure but needed -set noswapfile " not secure but needed -set nowritebackup " not secure but needed - -set icon - -" Theme -set termguicolors -set background=dark - -" highlight search hits: ,+<cr> to clear -set hlsearch -set incsearch -set linebreak -nnoremap <silent> <C-L> :nohl<CR><C-L> - -set shortmess=aoOtI " avoid most of the 'Hit Enter ...' messages -set hidden " stop complaints about switching buffer with changes -set history=1000 " command history -set ttyfast " faster scrolling - -syntax enable " plugins and stuff need it - -filetype plugin on " allow sensing the filetype -filetype indent on " allow identing based on filetype -set omnifunc=syntaxcomplete#Complete - -" Search -set wildignore+=**/node_modules/** -set wildmenu - -" tab on visual selection -vmap <Tab> >gv -vmap <S-Tab> <gv - -set complete+=kspell " Spelling on autocomplete -set completeopt=menuone,longest " Config of vim autocomplete panel -set shortmess+=c " Remove the autocomplete status bar - -" Return to last edit position when opening files -autocmd BufReadPost * - \ if line("'\"") > 0 && line("'\"") <= line("$") | - \ exe "normal! g`\"" | - \ endif - -" saving the file -nnoremap <C-s> :w<cr> -inoremap <C-s> <esc>:w<cr>a - -" disable arrow keys -noremap <up> :echoerr "use k instead"<cr> -noremap <down> :echoerr "use j instead"<cr> -noremap <left> :echoerr "use h instead"<cr> -noremap <right> :echoerr "use l instead"<cr> -inoremap <up> <NOP> -inoremap <down> <NOP> -inoremap <left> <NOP> -inoremap <right> <NOP> - -call plug#begin('~/.vim/plugged') - -Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } -Plug 'junegunn/fzf.vim' -Plug 'morhetz/gruvbox' -Plug 'vim-airline/vim-airline' -Plug 'tpope/vim-fugitive' -Plug 'Raimondi/delimitMate' -Plug 'plasticboy/vim-markdown' -Plug 'tpope/vim-commentary' -Plug 'junegunn/goyo.vim' -Plug 'vitalk/vim-simple-todo' " TODO: Create your own plugin -Plug 'roxma/vim-tmux-clipboard' -Plug 'neoclide/coc.nvim', {'branch': 'master', 'do': 'yarn install --frozen-lockfile'} - -call plug#end() - -" Theme -" -" https://github.com/morhetz/gruvbox -" -colorscheme gruvbox -let g:gruvbox_contrast_dark = 'hard' -let g:gruvbox_italic=1 - -" Fzf Vim -" -" https://github.com/junegunn/fzf.vim -" -let g:terminal_ansi_colors = [ - \ '#4e4e4e', '#d68787', '#5f865f', '#d8af5f', - \ '#85add4', '#d7afaf', '#87afaf', '#d0d0d0', - \ '#626262', '#d75f87', '#87af87', '#ffd787', - \ '#add4fb', '#ffafaf', '#87d7d7', '#e4e4e4' - \ ] - -let g:fzf_preview_window = ['right:60%'] -let g:fzf_layout = { 'window': { 'width': 0.8, 'height': 0.8, 'relative': v:true } } - -nnoremap <C-g> :Rg<Cr> -nnoremap <C-p> :Files<Cr> - -" Vim Markdown -" -" https://github.com/plasticboy/vim-markdown -" -" Useful Tips: -" - Use :Goyo to read your notes -" -let g:vim_markdown_no_extensions_in_markdown = 1 " open links in with gx in every file -let g:vim_markdown_autowrite = 1 " auto save -let g:vim_markdown_folding_disabled = 1 " remove markdown folding - -au FileType markdown setlocal conceallevel=2 " add conceallevel 2 on markdown files - -" auto format on file save -au FileType markdown nnoremap <leader>f gggqG :w<cr> -au FileType markdown inoremap <leader>f <esc> gggqG :w<cr> - -" bindings to add bold -autocmd FileType markdown inoremap <C-b> ****<left><left> - -let g:vim_markdown_new_list_item_indent = 0 " remove new list indetation" -let g:vim_markdown_edit_url_in = 'current' " open a new .md file on the current view -let g:netrw_browsex_viewer="cmd.exe /C start" " open the link on the default browser - -" Add colors to some syntax -highlight htmlBold gui=bold guifg=#fb4934 ctermfg=124 -highlight htmlItalic gui=italic guifg=#ff8700 ctermfg=214 -highlight SpellBad ctermbg=red ctermfg=white +syntax on \ No newline at end of file