Install Vundle.vim
- mkdir ~/.vim/bundle
- git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/vundle.vim
- Create. VIMRC If it is not exist. Add the following setting into. vimrc
1Set nocompatible"Be improved, required2FileType off"Required3 4 "set the runtime path to include Vundle and initialize5Set rtp+=~/.vim/bundle/Vundle.vim6 Call Vundle#begin ()7 8 "Let Vundle manage Vundle, required9Plugin'Gmarik/vundle.vim'Ten One "All of your Plugins must is added before the following line ACall Vundle#end ()"Required -FileType plugin indent on"Required
Install Vim-better-whitespace Git:https://github.com/ntpeters/vim-better-whitespace
Add:plugin ' Ntpeters/vim-better-whitespace ' to. VIMRC between Vundle#begin () and Vundle#end ()
' Ntpeters/vim-better-whitespace '
Then rum vim::P lugininstall
If you want to auto delete whitespace if can add the following cmd into your. VIMRC
Autocmd Bufwritepre * Stripwhitespace
Vim highlight whitespace at end of line and auto delete them