Permalink
Browse files

Remap ctrl-] to horizontal split cscope lookup

I already use ctrl-space for autocomplete - sorry.

Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
  • Loading branch information...
1 parent 16c99cd commit 20d993129d5e26f652e96c676b8bdc3dfb2fdafc @chazy committed Apr 2, 2012
Showing with 16 additions and 16 deletions.
  1. +16 −16 plugin/cscope_maps.vim
View
@@ -106,14 +106,14 @@ if has("cscope")
" can be simulated roughly via:
" nmap <C-@>s <C-W><C-S> :cs find s <C-R>=expand("<cword>")<CR><CR>
- nmap <C-@>s :scs find s <C-R>=expand("<cword>")<CR><CR>
- nmap <C-@>g :scs find g <C-R>=expand("<cword>")<CR><CR>
- nmap <C-@>c :scs find c <C-R>=expand("<cword>")<CR><CR>
- nmap <C-@>t :scs find t <C-R>=expand("<cword>")<CR><CR>
- nmap <C-@>e :scs find e <C-R>=expand("<cword>")<CR><CR>
- nmap <C-@>f :scs find f <C-R>=expand("<cfile>")<CR><CR>
- nmap <C-@>i :scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
- nmap <C-@>d :scs find d <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-]>s :scs find s <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-]>g :scs find g <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-]>c :scs find c <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-]>t :scs find t <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-]>e :scs find e <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-]>f :scs find f <C-R>=expand("<cfile>")<CR><CR>
+ nmap <C-]>i :scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
+ nmap <C-]>d :scs find d <C-R>=expand("<cword>")<CR><CR>
" Hitting CTRL-space *twice* before the search type does a vertical
@@ -122,14 +122,14 @@ if has("cscope")
" (Note: you may wish to put a 'set splitright' in your .vimrc
" if you prefer the new window on the right instead of the left
- nmap <C-@><C-@>s :vert scs find s <C-R>=expand("<cword>")<CR><CR>
- nmap <C-@><C-@>g :vert scs find g <C-R>=expand("<cword>")<CR><CR>
- nmap <C-@><C-@>c :vert scs find c <C-R>=expand("<cword>")<CR><CR>
- nmap <C-@><C-@>t :vert scs find t <C-R>=expand("<cword>")<CR><CR>
- nmap <C-@><C-@>e :vert scs find e <C-R>=expand("<cword>")<CR><CR>
- nmap <C-@><C-@>f :vert scs find f <C-R>=expand("<cfile>")<CR><CR>
- nmap <C-@><C-@>i :vert scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
- nmap <C-@><C-@>d :vert scs find d <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-]><C-]>s :vert scs find s <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-]><C-]>g :vert scs find g <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-]><C-]>c :vert scs find c <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-]><C-]>t :vert scs find t <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-]><C-]>e :vert scs find e <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-]><C-]>f :vert scs find f <C-R>=expand("<cfile>")<CR><CR>
+ nmap <C-]><C-]>i :vert scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
+ nmap <C-]><C-]>d :vert scs find d <C-R>=expand("<cword>")<CR><CR>
""""""""""""" key map timeouts

0 comments on commit 20d9931

Please sign in to comment.