aboutsummaryrefslogtreecommitdiff
path: root/plugin
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 /plugin
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 'plugin')
-rw-r--r--plugin/novim_mode.vim6
1 files changed, 5 insertions, 1 deletions
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