Commits

Skirmantas Jurgaitis committed 05871b4

Vim: highlight extra whitespaces, vpaste shortcut

Comments (0)

Files changed (1)

 set background=dark
 set backspace=indent,start,eol
 set backup
-set backupdir=~/.tmp/vimbackup
-set directory=~/.tmp/vimswap
+set backupdir=~/.vim/temp
+set directory=~/.vim/temp
 set encoding=utf-8
 set fileencodings=ucs-bom,utf-8,windows-1257
 set foldmethod=marker
 
 let g:syntastic_enable_signs=0
 let g:syntastic_auto_loc_list=0
+
+map vp :exec "w !vpaste ft=".&ft<CR>
+vmap vp <ESC>:exec "'<,'>w !vpaste ft=".&ft<CR>
+
+highlight ExtraWhitespace ctermbg=red guibg=red
+autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red
+match ExtraWhitespace /\s\+$/
+match ExtraWhitespace /\s\+$\| \+\ze\t/
+match ExtraWhitespace /[^\t]\zs\t\+/