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 --- plugin/novim_mode.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugin') diff --git a/plugin/novim_mode.vim b/plugin/novim_mode.vim index d5601b1..97d61c6 100644 --- a/plugin/novim_mode.vim +++ b/plugin/novim_mode.vim @@ -38,7 +38,11 @@ endfunction call s:init_settings(s:settings) " Plugin entry point -call novim_mode#StartNoVimMode() +if has('timers') + call g:novim_mode#StartNoVimMode() +else + echo 'Novim-mode will not work this version of Vim (no `timer` support).' +endif let &cpo = s:save_cpo unlet s:save_cpo -- cgit v1.2.3-70-g09d2