Browse Source

Update Ctrl-Enter mappings to work in both terminal and Gvim

pull/1/head
Harish.K 11 years ago
parent
commit
6b9906fa7e
  1. 7
      home/.gvimrc
  2. 4
      home/.nvim/nvimrc
  3. 4
      home/.vimrc

7
home/.gvimrc

@ -49,3 +49,10 @@ imap ¸ <ESC>8gti
" }
" Ctrl-Enter in insert mode will append ';' to the line and insert a new line
imap <C-CR> <ESC>A;<CR>
" Ctrl-Enter in normal mode will jump to tag definition using cscope
nmap <C-CR> :vert scs f g <C-R><C-W><CR>

4
home/.nvim/nvimrc

@ -35,10 +35,10 @@ nmap <leader>sc :SessionClose<CR>
" }
" Ctrl-Enter in insert mode will append ';' to the line and insert a new line
imap <C-CR> <ESC>A;<CR>
imap <NL> <ESC>A;<CR>
" Ctrl-Enter in normal mode will jump to tag definition using cscope
nmap <C-CR> :vert scs f g <C-R><C-W><CR>
nmap <NL> :vert scs f g <C-R><C-W><CR>
" Ctrl-? in normal mode will jump to tag references using cscope
nmap <C-?> :vert scs f t <C-R><C-W><CR>

4
home/.vimrc

@ -36,10 +36,10 @@ nmap <leader>sc :SessionClose<CR>
" }
" Ctrl-Enter in insert mode will append ';' to the line and insert a new line
imap <C-CR> <ESC>A;<CR>
imap <NL> <ESC>A;<CR>
" Ctrl-Enter in normal mode will jump to tag definition using cscope
nmap <C-CR> :vert scs f g <C-R><C-W><CR>
nmap <NL> :vert scs f g <C-R><C-W><CR>
" Ctrl-? in normal mode will jump to tag references using cscope
nmap <C-?> :vert scs f t <C-R><C-W><CR>

Loading…
Cancel
Save