commit 0a58798242fad6e9a65d29fc8fe3221d25a7ef28
parent 7d67c5ff3b7f10e55c00466059e9ef6c9b78169e
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Tue, 23 Apr 2019 15:24:32 +0200
Hide cursorline when in insert mode
Former-commit-id: 1168a4d683f20ee90fd5c2cde69ca6e3cb7d2087
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/vim/autocmd.vimrc b/vim/autocmd.vimrc
@@ -6,9 +6,11 @@ augroup configgroup
autocmd FileType vimwiki setlocal wrap shiftwidth=4 tabstop=4 softtabstop=4 breakindent breakindentopt=shift:3 | cabbrev table VimwikiTable
autocmd FileType tagbar setlocal nocursorline
autocmd FileType qf setlocal nocursorline
+ autocmd InsertEnter * setlocal nocursorline
+ autocmd InsertLeave * setlocal cursorline
augroup END
-augroup insertbinds
+augroup insertmaps
autocmd!
autocmd FileType markdown inoremap ;1 #
autocmd FileType markdown inoremap ;2 ##