Ubuntu configuration Vim supports Python programming

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.