From 15cae587a4725ebae9231be9b4a7b295ecdf19fc Mon Sep 17 00:00:00 2001 From: Thomas Buckley-Houston Date: Thu, 22 Jun 2017 13:13:57 +0700 Subject: 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 --- autoload/novim_mode.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'autoload') 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 : + inoremap : nnoremap : + nnoremap : " replaces native for one-time normal mode commands. inoremap @@ -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 >gv inoremap snoremap >gv @@ -185,9 +187,6 @@ function! g:SetNoVimModeShortcuts() inoremap N " Find and replace inoremap :%s/[FIND]/[REPLACE]/g - " Clears highlighting. - " NB. Overriding ESC makes it harder to get into NORMAL mode. - inoremap :noh 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 "_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 "dyy"dp " CTRL+DOWN/UP moves the current/selected line(s) up and down -- cgit v1.2.3-70-g09d2