Skip to content

Instantly share code, notes, and snippets.

@ktunprasert
Created October 31, 2023 22:26
Show Gist options
  • Save ktunprasert/2182f0cc1678f5e1efa9cf94686196f5 to your computer and use it in GitHub Desktop.
Save ktunprasert/2182f0cc1678f5e1efa9cf94686196f5 to your computer and use it in GitHub Desktop.
set tabstop=2 " number of columns occupied by a tab
set clipboard=unnamedplus " using system clipboard
" filetype plugin on
" set undodir=~/.vimdid
" set undofile
" set spell
" set noswapfile " disable creating swap file
" set backupdir=~/.cache/vim " Directory to store backup files.
"
nmap ; :
" Obsidian VIMRC plugins https://github.com/esm7/obsidian-vimrc-support
exmap surround_wiki surround [[ ]]
exmap surround_double_quotes surround " "
exmap surround_single_quotes surround ' '
exmap surround_backticks surround ` `
exmap surround_brackets surround ( )
exmap surround_square_brackets surround [ ]
exmap surround_curly_brackets surround { }
" NOTE: must use 'map' and not 'nmap'
map [[ :surround_wiki
nunmap S
vunmap S
map S" :surround_double_quotes
map S' :surround_single_quotes
map S` :surround_backticks
map Sb :surround_brackets
map S( :surround_brackets
map S) :surround_brackets
map S[ :surround_square_brackets
map S[ :surround_square_brackets
map S{ :surround_curly_brackets
map S} :surround_curly_brackets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment