diff options
author | Guangxiong Lin <[email protected]> | 2023-09-23 21:47:39 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2023-09-23 21:47:39 +0800 |
commit | cb54cf5c24e4910e15537d0cc33887176ac267da (patch) | |
tree | 2f7547dcf610d235a09392afc3b2145946f31a58 | |
parent | 90a1f06a74bf94e7f4d674f6dad592ee74753a26 (diff) | |
download | dotfiles-cb54cf5c24e4910e15537d0cc33887176ac267da.tar.gz dotfiles-cb54cf5c24e4910e15537d0cc33887176ac267da.tar.bz2 dotfiles-cb54cf5c24e4910e15537d0cc33887176ac267da.zip |
Autosave markdown files while editing
-rw-r--r-- | .vim/after/ftplugin/markdown.vim | 2 |
1 files changed, 2 insertions, 0 deletions
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 <buffer> j gj nmap <buffer> k gk +autocmd CursorHold,CursorHoldI <buffer> update + " setlocal formatoptions-=t " setlocal formatoptions-=c |