vim-cheet-sheet/.vimrc
2025-05-22 10:29:03 +00:00

30 lines
579 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>
nnoremap <C-S> :w<CR>
"LaTEX config
vnoremap <C-b> c{\bfseries <C-r>"}<Esc>
vnoremap <C-t> c{\<C-r>"}<Esc>%2li<Space><Esc>i
"PLUGIN config
let g:NERDTreeNodeDelimiter = "\u00a0"
execute "set <M-n>=\en"
nnoremap <M-n> :NERDTree<CR>