diff options
Diffstat (limited to 'snippets/vim_autoevent_for_visual_mode')
-rw-r--r-- | snippets/vim_autoevent_for_visual_mode | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/snippets/vim_autoevent_for_visual_mode b/snippets/vim_autoevent_for_visual_mode new file mode 100644 index 0000000..998a584 --- /dev/null +++ b/snippets/vim_autoevent_for_visual_mode | |||
@@ -0,0 +1,5 @@ | |||
1 | augroup VisualEvent | ||
2 | autocmd! | ||
3 | autocmd ModeChanged *:[vV\x16]* :echom 'VisualEnter' | ||
4 | autocmd Modechanged [vV\x16]*:* :echom 'VisualLeave' | ||
5 | augroup END | ||