mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-22 06:44:09 -05:00
Added a key binding to convert tabs to spaces, and one to remove search
highlighting
This commit is contained in:
parent
a2be154e41
commit
8821f922de
1 changed files with 8 additions and 0 deletions
|
@ -37,6 +37,8 @@
|
|||
" <F12> | (A) -> toggle collapsed/folded rows
|
||||
" <Leader><C-f> | (N) -> format document and return to current line
|
||||
" <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-k> | (N) -> move to the beginning of the document
|
||||
" <Ctrl-Down> | (N) -> move to the end of the document
|
||||
|
@ -151,6 +153,12 @@
|
|||
"remove trailing white space from the document
|
||||
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
|
||||
nnoremap <C-Up> gg0
|
||||
nnoremap <C-k> gg0
|
||||
|
|
Loading…
Reference in a new issue