diff options
| author | Anton Bobov <abobov@gmail.com> | 2014-07-04 16:37:16 +0600 |
|---|---|---|
| committer | Anton Bobov <abobov@gmail.com> | 2014-07-04 16:37:16 +0600 |
| commit | 16d02202157154d55a2efa2c17a057a7f19da3e9 (patch) | |
| tree | 2edc652be7ba4e016d81a1c4d4653e57c1963f11 /files/.vimrc | |
| parent | 7f4af55a1508757478a7fcd5bfc87c3866e509c3 (diff) | |
Vimrc cleanup.
Diffstat (limited to 'files/.vimrc')
| -rw-r--r-- | files/.vimrc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/files/.vimrc b/files/.vimrc index 39ceab4..5386c48 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -119,9 +119,7 @@ set directory=$HOME/tmp,$TEMP,. " Map <Leader> to comma let mapleader="," -" -" Автоматические действия -" +" Autocommands{{{1 if has('autocmd') " TODO перенести в ftplugin autocmd FileType tex setlocal spell spelllang=ru,en textwidth=79 @@ -134,7 +132,6 @@ if has('autocmd') au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif au BufRead,BufNewFile /etc/nginx/* if &ft == "" | setfiletype nginx | endif endif - " Mappings {{{1 " Vim rocks! nnoremap ; : @@ -149,6 +146,9 @@ noremap <Down> <Nop> noremap <Left> <Nop> noremap <Right> <Nop> +nnoremap <Leader>d "_d +vnoremap <Leader>d "_d + nnoremap / /\v vnoremap / /\v @@ -180,6 +180,11 @@ map gf :e <cfile><CR> imap <S-Enter> O imap <C-Enter> o +inoremap <C-u> <C-g>u<C-u> +inoremap <C-w> <C-g>u<C-w> + +nnoremap <C-n> :cnext<CR>z. +nnoremap <C-p> :cprevious<CR>z. " Plugins{{{1 " Surround{{{2 |
