Configure vim for python in ubuntu
Ubuntu 18.04 configures Nginx+php development environment.Ubuntu 14.04 configures the Java development environment on Vim.Ubuntu 16.04 configures the Java development environment.Ubuntu configures the C++ development environment and the configuration of Vim.Ubuntu 18.04 configures NodeJs development environment.
NERDTree can be turned off when pressing F2 (if you have a small screen), as follows:
CONFIGURE VIM FOR PYTHON IN UBUNTU HOW TO
Map :NERDTreeToggle " automatically change window’s cwd to file’s dirĪutocmd vimenter * NERDTree " 当打开vim时就显示 NERDTree 可以通过 F2来打开或关闭它 " Prefer spaces to tabsĮ Open vim, type the command ":BundleInstall", and wait for the automatic installation of the plugin to complete ("done" is displayed below) How to use F vimrc file in the user directory and add the following content: set nocompatibleĬall vundle #rc() " let Vundle manage Vundleīundle 'gmarik/vundle' " The bundles you install will be listed hereĪutocmd! " highlight characters past column 120Īutocmd FileType python highlight Excess ctermbg=DarkGrey guibg=BlackĪutocmd FileType python match Excess /\%120v.*/ 14.04 Configuring the Python Development Environment on Vim A Install Vim sudo apt-get install vim B Create a bundle folder in the user's home directory mkdir -p ~ /.vim/bundle C Install Vundle git clone.