Procházet zdrojové kódy

change shortcuts for clearsearch and qf navigation away from tab

Found out that remapping tab has been the setting interfering with ctrl-I to
move forward through the jumplist.
Weiyi Lou před 12 roky
rodič
revize
43b4d4675e
1 změnil soubory, kde provedl 6 přidání a 6 odebrání
  1. 6 6
      vim/vimrc

+ 6 - 6
vim/vimrc

@@ -206,7 +206,7 @@ nmap <silent> <space>     @=(foldlevel('.')?'za':"\<space>")<CR>
 " Tab to CLEAR CURRENT SEARCH (and stop highlighting) in normal mode
 " TODO would love to use <ESC> (more intuitive), but there are issues at vim
 " startup
-nmap <silent> <TAB>    :call ClearSearch()<CR>
+nmap <silent> \    :call ClearSearch()<CR>
 
 nmap <silent> <leader>n    :set number!<CR>
 nmap <silent> <leader>w    :set wrap!<CR>
@@ -235,7 +235,7 @@ nmap <silent> <leader>u    :GundoToggle<CR>
 
 " Git commands with Fugitive
 nmap <silent> <leader>gs   :Gstatus<CR>
-nmap <silent> <leader>gc   :Gcommit<CR>
+nmap <silent> <leader>gc   :Gcommit -v<CR>
 nmap <silent> <leader>gl   :Glog<CR><CR>
 nmap <silent> <leader>gap  :Git add -p<CR>
 nmap <silent> <leader>b    :Gblame<CR>
@@ -366,11 +366,11 @@ endfunction
 
 function! MapQfPrevNext()
   " jump to the next/previous instance in Quickfix window
-  exec "nmap <silent> <TAB> :cprev<CR>"
-  exec "nmap <silent> <Bslash> :cnext<CR>"
+  exec "nmap <silent> [ :cprev<CR>"
+  exec "nmap <silent> ] :cnext<CR>"
 endfunction
 
 function! UnmapQfPrefNext()
-  exec "nunmap <TAB>"
-  exec "nunmap <Bslash>"
+  exec "nunmap ["
+  exec "nunmap ]"
 endfunction