aboutsummaryrefslogtreecommitdiffhomepage
path: root/snippets/vim_autoevent_for_visual_mode
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-07-04 19:31:38 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-07-04 19:31:38 +0800
commit6d7c95e031bb193e4700a5a9d58e0fa27efe0c30 (patch)
tree05e6cbe4eec2bdce2d2c5299afd2fbebed8d0357 /snippets/vim_autoevent_for_visual_mode
parent464d830c38d6c11258c60782ef9b4fb9de406957 (diff)
Update
Diffstat (limited to 'snippets/vim_autoevent_for_visual_mode')
-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