Added a key binding to convert tabs to spaces, and one to remove search

highlighting
This commit is contained in:
Kevin 2014-03-28 16:30:38 -04:00
parent a2be154e41
commit 8821f922de

View file

@ -37,6 +37,8 @@
" <F12> | (A) -> toggle collapsed/folded rows " <F12> | (A) -> toggle collapsed/folded rows
" <Leader><C-f> | (N) -> format document and return to current line " <Leader><C-f> | (N) -> format document and return to current line
" <Leader><C-w> | (N) -> remove whitespace " <Leader><C-w> | (N) -> remove whitespace
" <Leader><C-t> | (N) -> convert tabs into spaces
" <Leader>\ | (N) -> remove search highlighting
" <Ctrl-Up> | (N) -> move to the beginning of the document " <Ctrl-Up> | (N) -> move to the beginning of the document
" <Ctrl-k> | (N) -> move to the beginning of the document " <Ctrl-k> | (N) -> move to the beginning of the document
" <Ctrl-Down> | (N) -> move to the end of the document " <Ctrl-Down> | (N) -> move to the end of the document
@ -151,6 +153,12 @@
"remove trailing white space from the document "remove trailing white space from the document
nnoremap <silent><expr> <Leader><C-w> ':FixWhitespace<CR>' nnoremap <silent><expr> <Leader><C-w> ':FixWhitespace<CR>'
"convert tabs to spaces
nnoremap <silent><expr> <Leader><C-t> ':retab<CR>:noh<CR>'
"remove search highlight
nnoremap <silent><expr> <Leader>/ ':noh<CR>'
"remap keys to scroll through text "remap keys to scroll through text
nnoremap <C-Up> gg0 nnoremap <C-Up> gg0
nnoremap <C-k> gg0 nnoremap <C-k> gg0