aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-09-23 21:47:39 +0800
committerGuangxiong Lin <[email protected]>2023-09-23 21:47:39 +0800
commitcb54cf5c24e4910e15537d0cc33887176ac267da (patch)
tree2f7547dcf610d235a09392afc3b2145946f31a58
parent90a1f06a74bf94e7f4d674f6dad592ee74753a26 (diff)
downloaddotfiles-cb54cf5c24e4910e15537d0cc33887176ac267da.tar.gz
dotfiles-cb54cf5c24e4910e15537d0cc33887176ac267da.tar.bz2
dotfiles-cb54cf5c24e4910e15537d0cc33887176ac267da.zip
Autosave markdown files while editing
-rw-r--r--.vim/after/ftplugin/markdown.vim2
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