40 lines
671 B
VimL
40 lines
671 B
VimL
"VIEW config
|
|
syntax off
|
|
filetype off
|
|
set number
|
|
|
|
|
|
"INDENT config
|
|
filetype plugin indent on
|
|
"" show existing tab with 8 spaces width
|
|
set tabstop=8
|
|
"
|
|
"" when indenting with '>', use 4 spaces width
|
|
set shiftwidth=4
|
|
"
|
|
"" On pressing tab, insert 4 spaces
|
|
set expandtab
|
|
set autoindent
|
|
|
|
|
|
"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>
|
|
|
|
"PLUGIN config
|
|
let g:NERDTreeNodeDelimiter = "\u00a0"
|
|
execute "set <M-n>=\en"
|
|
nnoremap <M-n> :NERDTree<CR>
|
|
|
|
|
|
"MACROS
|
|
"PASCAL
|
|
:iab fii <Esc>^ifunction <Esc>eli(<Esc>lxea: integer): integer;<CR>
|
|
\begin<CR>
|
|
\end;<Esc>O<BS>
|
|
|