From 16d02202157154d55a2efa2c17a057a7f19da3e9 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Fri, 4 Jul 2014 16:37:16 +0600 Subject: Vimrc cleanup. --- files/.vimrc | 13 +++++++++---- 1 file 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 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 noremap noremap +nnoremap d "_d +vnoremap d "_d + nnoremap / /\v vnoremap / /\v @@ -180,6 +180,11 @@ map gf :e imap O imap o +inoremap u +inoremap u + +nnoremap :cnextz. +nnoremap :cpreviousz. " Plugins{{{1 " Surround{{{2 -- cgit v1.2.3