If Vim is not installed, use the following command to install:
sudo apt-get install vim
Create the. Vim directory under the user directory, under which the bundle directory is created:
mkdir. Vim\bundle
Install Bundle/vundle:
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
Create or edit the. vimrc file under the user directory to add the following:
Set Nocompatibleset rtp+=~/.vim/bundle/vundle/call VUNDLE#RC () "Let Vundle manage Vundle" required! Bundle ' Gmarik/vundle ' "The bundles you install would be listed Herebundle ' scrooloose/nerdtree ' Bundle ' davidhalter/jedi-v Im ' filetype plugin indent on "The rest of your config follows Here.augroup vimrc_autocmdsautocmd!" highlight characters PA St column 120autocmd FileType python highlight Excess ctermbg=darkgrey guibg=blackautocmd FileType python match Excess/\% 120v.*/autocmd FileType python set nowrapaugroup END "Nerdtree shortcut.map <f2>:nerdtreetoggle<cr>" Automatically change window's cwd to file ' s dirset autochdir "Prefer spaces to Tabsset tabstop=4set Shiftwidth=4set expand Tabset nu!
Open vim, type the command ": Bundleinstall" and wait for the auto-install plugin to complete ("done" shown below)
Type the command ": Bundlelist" in vim to view the installed plugins.
Ubuntu configuration vim supports Python programming