From cddf1fd6601c23d0cea99e15cac969932442d4db Mon Sep 17 00:00:00 2001 From: Jidbo Date: Wed, 3 Apr 2019 14:25:35 +0200 Subject: [PATCH] auto reload when writing .vimrc --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vimrc b/.vimrc index c8333e7..6df8178 100644 --- a/.vimrc +++ b/.vimrc @@ -115,6 +115,9 @@ set foldlevel=99 " remap code folding nnoremap g za +" auto reload .vimrc on write +autocmd BufWritePost .vimrc source % + " toggle hybrid number mode nnoremap h :set rnu! :augroup numbertoggle