From 37523cabd393e9aff0ce885b2d94c744a7e8ea84 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 25 Jul 2015 08:34:38 -0700 Subject: [vim] misc stuff --- vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 8627b27..eb6d241 100644 --- a/vimrc +++ b/vimrc @@ -31,6 +31,8 @@ set smarttab set autoindent set nocindent +set fillchars+=vert:\ " yes, it's a trailing white space + highlight ExtraWhitespace ctermbg=red guibg=red match ExtraWhitespace /\s\+$/ @@ -52,4 +54,5 @@ au FileType python setlocal keywordprg=pydoc shiftwidth=2 softtabstop=2 tabsto au FileType make setlocal shiftwidth=8 tabstop=8 noexpandtab au FileType markdown setlocal tw=100 au FileType sh setlocal shiftwidth=2 softtabstop=2 tabstop=2 tw=80 -au FileType go setlocal tw=101 noexpandtab tabstop=4 shiftwidth=4 nolist +au FileType go setlocal tw=100 noexpandtab tabstop=4 shiftwidth=4 nolist +au FileType go autocmd BufWritePre Fmt -- cgit 1.4.1