aboutsummaryrefslogtreecommitdiffhomepage
path: root/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'snippets')
-rw-r--r--snippets/vim_autoevent_for_visual_mode5
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 @@
1augroup VisualEvent
2 autocmd!
3 autocmd ModeChanged *:[vV\x16]* :echom 'VisualEnter'
4 autocmd Modechanged [vV\x16]*:* :echom 'VisualLeave'
5augroup END