diff options
author | Teddy Wing | 2019-12-05 02:16:30 +0100 |
---|---|---|
committer | Teddy Wing | 2019-12-05 02:16:30 +0100 |
commit | 03ac5871f7ea599a8ca945e277d1a2243f572e90 (patch) | |
tree | 19f1ae6d34eccb6895d924cfe2579c72142a823b /nohlslash.vim | |
parent | 47588e81201656b2892048aa8795cb5efd04fa6b (diff) | |
download | vim-nohai-03ac5871f7ea599a8ca945e277d1a2243f572e90.tar.bz2 |
New idea for 'nohlslash' search commands
Sort of working. Seems like the right approach.
Diffstat (limited to 'nohlslash.vim')
-rw-r--r-- | nohlslash.vim | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/nohlslash.vim b/nohlslash.vim deleted file mode 100644 index 9088cd1..0000000 --- a/nohlslash.vim +++ /dev/null @@ -1,17 +0,0 @@ -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 |