diff options
author | shmibs <shmibs@gmail.com> | 2014-12-20 23:21:15 -0700 |
---|---|---|
committer | shmibs <shmibs@gmail.com> | 2014-12-20 23:21:15 -0700 |
commit | 011565e21dcf2ec0898aafecce5b236936dd7fc2 (patch) | |
tree | a0cb231fe93aa9e077f21ffd56d879b1b74adf79 | |
parent | 93c26bf08c29b1157c10fe3b109b757887781a4d (diff) | |
download | dotfiles-011565e21dcf2ec0898aafecce5b236936dd7fc2.tar.gz |
add highlighting for unwanted space
also delete old tab mappings
-rw-r--r-- | .vimrc | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -26,6 +26,13 @@ set guioptions=aegimt highlight Column80 ctermbg=black call matchadd('Column80', '\%81v', 100) +"highlight space before tab +highlight SpaceBeforeTab ctermbg=234 +call matchadd('SpaceBeforeTab', '^\ \+\t') + +"highlight trailing spaces +highlight TrailingSpace ctermbg=234 +call matchadd('TrailingSpace', '\S\s\+$') """"""""""""" " ALIASES " @@ -59,16 +66,6 @@ nmap ga <Plug>(EasyAlign) " MAPPINGS " """""""""""""" -"buffer / tab controls -nnoremap <C-j> :bn<CR> -nnoremap <C-k> :bp<CR> -nnoremap <C-g> :buffers<CR>:b<Space> -nnoremap <C-n> :tabn<CR> -nnoremap <C-p> :tabp<CR> -nnoremap <C-t> <C-w>s<C-w>T -nnoremap <C-w><C-n> :tabm +1<CR> -nnoremap <C-w><C-p> :tabm -1<CR> - "insert lines below nnoremap ++ == nnoremap = Oa<C-u><Esc>j |