Created
October 31, 2023 22:26
-
-
Save ktunprasert/2182f0cc1678f5e1efa9cf94686196f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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