aboutsummaryrefslogtreecommitdiffstats
path: root/nohlslash.vim
diff options
context:
space:
mode:
Diffstat (limited to 'nohlslash.vim')
-rw-r--r--nohlslash.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/nohlslash.vim b/nohlslash.vim
new file mode 100644
index 0000000..9088cd1
--- /dev/null
+++ b/nohlslash.vim
@@ -0,0 +1,17 @@
+let s:nohlslash = 0
+
+function! s:setup_nohlslash()
+ let s:nohlslash = !s:nohlslash
+endfunction
+
+nnoremap <silent> <leader>a :call <SID>setup_nohlslash()<cr>
+
+
+augroup nohlslash
+ autocmd!
+ autocmd CmdwinLeave *
+ \ if s:nohlslash |
+ \ echom 'test'
+ \ nohlsearch
+ \ endif
+augroup END