vim-cheet-sheet/.vimrc
2025-05-03 14:25:22 +05:00

28 lines
514 B
VimL

"VIEW config
syntax off
filetype off
set number
"INDENT config
"filetype plugin indent on
"" show existing tab with 4 spaces width
"set tabstop=4
"
"" when indenting with '>', use 4 spaces width
"set shiftwidth=4
"
"" On pressing tab, insert 4 spaces
"set expandtab
"MACROS config
vnoremap <C-r> "hy:%s/<C-r>h//gc<left><left><left>
"LaTEX config
vnoremap <C-b> c{\bfseries <C-r>"}<Esc>
"PLUGIN config
let g:NERDTreeNodeDelimiter = "\u00a0"
execute "set <M-n>=\en"
nnoremap <M-n> :NERDTree<CR>