diff options
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 5 |
1 files changed, 4 insertions, 1 deletions
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 <buffer> Fmt |