diff options
author | Franck Cuny <franckcuny@gmail.com> | 2015-07-25 08:34:38 -0700 |
---|---|---|
committer | Franck Cuny <franckcuny@gmail.com> | 2015-07-25 08:34:38 -0700 |
commit | 37523cabd393e9aff0ce885b2d94c744a7e8ea84 (patch) | |
tree | 6b78feab8535335033cde8fd574e76fd00c2e5cd | |
parent | [tmux] enable status (diff) | |
download | emacs.d-37523cabd393e9aff0ce885b2d94c744a7e8ea84.tar.gz |
[vim] misc stuff
-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 |