From cb54cf5c24e4910e15537d0cc33887176ac267da Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 23 Sep 2023 21:47:39 +0800 Subject: Autosave markdown files while editing --- .vim/after/ftplugin/markdown.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to '.vim/after') diff --git a/.vim/after/ftplugin/markdown.vim b/.vim/after/ftplugin/markdown.vim index cdbc002..b7cd446 100644 --- a/.vim/after/ftplugin/markdown.vim +++ b/.vim/after/ftplugin/markdown.vim @@ -1,5 +1,7 @@ nmap j gj nmap k gk +autocmd CursorHold,CursorHoldI update + " setlocal formatoptions-=t " setlocal formatoptions-=c -- cgit v1.2.3