mirror of
https://github.com/harish2704/dotFiles.git
synced 2026-09-10 15:21:09 +00:00
Update Ctrl-Enter mappings to work in both terminal and Gvim
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -35,10 +35,10 @@ nmap <leader>sc :SessionClose<CR>
|
|||||||
" }
|
" }
|
||||||
|
|
||||||
" Ctrl-Enter in insert mode will append ';' to the line and insert a new line
|
" 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
|
" 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
|
" Ctrl-? in normal mode will jump to tag references using cscope
|
||||||
nmap <C-?> :vert scs f t <C-R><C-W><CR>
|
nmap <C-?> :vert scs f t <C-R><C-W><CR>
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -36,10 +36,10 @@ nmap <leader>sc :SessionClose<CR>
|
|||||||
" }
|
" }
|
||||||
|
|
||||||
" Ctrl-Enter in insert mode will append ';' to the line and insert a new line
|
" 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
|
" 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
|
" Ctrl-? in normal mode will jump to tag references using cscope
|
||||||
nmap <C-?> :vert scs f t <C-R><C-W><CR>
|
nmap <C-?> :vert scs f t <C-R><C-W><CR>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user