From 011565e21dcf2ec0898aafecce5b236936dd7fc2 Mon Sep 17 00:00:00 2001 From: shmibs Date: Sat, 20 Dec 2014 23:21:15 -0700 Subject: add highlighting for unwanted space also delete old tab mappings --- .vimrc | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 4bc3d4d..e95eb38 100644 --- a/.vimrc +++ b/.vimrc @@ -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 (EasyAlign) " MAPPINGS " """""""""""""" -"buffer / tab controls -nnoremap :bn -nnoremap :bp -nnoremap :buffers:b -nnoremap :tabn -nnoremap :tabp -nnoremap sT -nnoremap :tabm +1 -nnoremap :tabm -1 - "insert lines below nnoremap ++ == nnoremap = Oaj -- cgit v1.2.3