From 208d6392514d7c0233b8e56f7abe759406d50b6c Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Tue, 29 May 2018 09:50:37 +0800 Subject: [PATCH] Add auto space between words - https://github.com/hotoo/pangu.vim Signed-off-by: Ein Verne --- .vim/startup/vundle_vimrc | 1 + .vimrc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.vim/startup/vundle_vimrc b/.vim/startup/vundle_vimrc index 7a5b6e6..a34ec3c 100644 --- a/.vim/startup/vundle_vimrc +++ b/.vim/startup/vundle_vimrc @@ -45,6 +45,7 @@ Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' " syntax highlight for Dockerfile Plugin 'ekalinin/Dockerfile.vim' +Plugin 'hotoo/pangu.vim' " Git plugin not hosted on GitHub Plugin 'git://git.wincent.com/command-t.git' diff --git a/.vimrc b/.vimrc index 42d3389..6f38be1 100644 --- a/.vimrc +++ b/.vimrc @@ -267,6 +267,8 @@ autocmd BufReadPost * \ exe "normal! g`\"" | \ endif +autocmd BufWritePre *.markdown,*.md,*.text,*.txt,*.wiki,*.cnx call PanGuSpacing() + set diffexpr=MyDiff() function! MyDiff() let opt = '-a --binary '