diff --git a/vim/.vimrc b/vim/.vimrc index 65e9d6f..08af6d9 100755 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -8,6 +8,9 @@ set encoding=utf-8 " syntax on syntax on +" switch buffers without writing to file +set hidden + " remove trailing spaces on save autocmd BufWritePre * :%s/\s\+$//e