vim-cheet-sheet/.vimrc

30 lines
579 B
VimL
Raw Normal View History

2025-05-03 09:25:22 +00:00
"VIEW config
syntax off
filetype off
set number
"INDENT config
2025-05-14 04:31:57 +00:00
filetype plugin indent on
2025-05-22 10:29:03 +00:00
" show existing tab with 4 spaces width
2025-05-14 04:31:57 +00:00
set tabstop=4
2025-05-22 10:29:03 +00:00
" when indenting with '>', use 4 spaces width
2025-05-14 04:31:57 +00:00
set shiftwidth=4
2025-05-22 10:29:03 +00:00
" On pressing tab, insert 4 spaces
2025-05-14 04:31:57 +00:00
set expandtab
2025-05-03 09:25:22 +00:00
"MACROS config
vnoremap <C-r> "hy:%s/<C-r>h//gc<left><left><left>
2025-05-14 04:31:57 +00:00
nnoremap <C-S> :w<CR>
2025-05-03 09:25:22 +00:00
"LaTEX config
vnoremap <C-b> c{\bfseries <C-r>"}<Esc>
2025-05-22 10:29:03 +00:00
vnoremap <C-t> c{\<C-r>"}<Esc>%2li<Space><Esc>i
2025-05-03 09:25:22 +00:00
"PLUGIN config
let g:NERDTreeNodeDelimiter = "\u00a0"
execute "set <M-n>=\en"
nnoremap <M-n> :NERDTree<CR>