aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorThomas Buckley-Houston2017-06-22 06:13:57 +0000
committerThomas Buckley-Houston2017-06-22 06:21:47 +0000
commit15cae587a4725ebae9231be9b4a7b295ecdf19fc (patch)
tree904b57cbb39d3bfd3b0167cb8cb060f7550bbe44 /autoload
parentd64b2c002a51e99bafb54c6cc0dfe59f8de958dc (diff)
Lessons learned from original Vim in the terminal
* Removed `Esc` keybinding for deselecting found text (not that important anyway). Because it was causing arrows key to output escaped portion of their internal code. * Added `ALT+c` combination as companion to `ALT+;`. * Don't load plugin if Vim doesn't support `timers`. * Recommended use of `vim-fixkey` for terminal Vim. * Added better notes about disabling `CTRL+S` terminal suspension. Touches #3
Diffstat (limited to 'autoload')
-rw-r--r--autoload/novim_mode.vim9
1 files changed, 5 insertions, 4 deletions
diff --git a/autoload/novim_mode.vim b/autoload/novim_mode.vim
index 549210e..445b2c3 100644
--- a/autoload/novim_mode.vim
+++ b/autoload/novim_mode.vim
@@ -92,7 +92,9 @@ function! g:SetNoVimModeShortcuts()
" ALT+; for command prompt
inoremap <M-;> <C-O>:
+ inoremap <M-c> <C-O>:
nnoremap <M-;> :
+ nnoremap <M-c> :
" <ALT+o> replaces native <C-O> for one-time normal mode commands.
inoremap <M-o> <C-O>
@@ -164,7 +166,7 @@ function! g:SetNoVimModeShortcuts()
" Indenting
if g:novim_mode_use_indenting == 1
- " TODO: TAB doesn't work in mswin selection mode, but SHIFT+TAB does??
+ " TODO: In Neovim TAB doesn't work in mswin selection mode, but SHIFT+TAB does??
snoremap <Tab> <C-O>>gv
inoremap <M-]> <C-T>
snoremap <M-]> <C-O>>gv
@@ -185,9 +187,6 @@ function! g:SetNoVimModeShortcuts()
inoremap <S-F3> <C-O>N
" Find and replace
inoremap <C-H> <C-O>:%s/[FIND]/[REPLACE]/g
- " Clears highlighting.
- " NB. Overriding ESC makes it harder to get into NORMAL mode.
- inoremap <silent> <Esc> <C-O>:noh<CR>
endif
" Undo/redo
@@ -211,10 +210,12 @@ function! g:SetNoVimModeShortcuts()
" text.
if g:novim_mode_use_text_tricks == 1
" CTRL+ALTt+k deletes the current line under the cursor
+ " TODO: Doesn't work in terminal vim, even with vim-fixkey
inoremap <silent> <C-M-K> <C-O>"_dd
" CTRL+ALT+d duplicates current line.
" NB. Uses the named 'd' register.
+ " TODO: Doesn't work in terminal vim, even with vim-fixkey
inoremap <silent> <C-M-D> <C-O>"dyy<C-O>"dp
" CTRL+DOWN/UP moves the current/selected line(s) up and down