aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshmibs <shmibs@gmail.com>2014-12-20 23:21:15 -0700
committershmibs <shmibs@gmail.com>2014-12-20 23:21:15 -0700
commit011565e21dcf2ec0898aafecce5b236936dd7fc2 (patch)
treea0cb231fe93aa9e077f21ffd56d879b1b74adf79
parent93c26bf08c29b1157c10fe3b109b757887781a4d (diff)
downloaddotfiles-011565e21dcf2ec0898aafecce5b236936dd7fc2.tar.gz
add highlighting for unwanted space
also delete old tab mappings
-rw-r--r--.vimrc17
1 files changed, 7 insertions, 10 deletions
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 <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