Vim is open source text editor that can be obtained from several different sources or built yourself. Vim official website provides versions for all operating systems,  official Vim build don’t have Python enabled which is required for many plugins to work correctly. To get Vim with Python enabled we can compile our own version of Vim or download precompiled binaries, also Python 2.7 must be installed. To check if everything is configured correctly run vim (vim in command line) or gVim (graphical vim) and type: :echo has(“python”) if Python is configured correctly it should print 1.



To manage plugins we will use NeoBundle plugin manager and Git. Plugins and all Vim configurations have to be added to _vimrc file, this file might not exists and to get location where it should be created type in vim: :echo $HOME

Vim should have printed location where _vimrc should be placed also in same location create directory structure: .vim\bundle\neobundle.vim and in that directory place NeoBundle files.


To install plugins we need to add line NeoBundle ‘plugin name’ for plugin name we can use Github repository, e.g. for  we would write NeoBundle ‘kien/ctrlp.vim

Example _vimrc file content with one plugin to test NeoBundle:

set nocompatible " we're using Vim, not Vi

set backup
set backupdir=C:\WINDOWS\Temp
set backupskip=C:\WINDOWS\Temp\*
set directory=C:\WINDOWS\Temp
set writebackup

" ===============================================
" NeoBundle setup
" ===============================================
if has('vim_starting')
   set runtimepath+=~/.vim/bundle/neobundle.vim/

call neobundle#begin(expand('~/.vim/bundle/'))
NeoBundleFetch 'Shougo/neobundle.vim'

" Plugins
NeoBundle 'kien/ctrlp.vim'

call neobundle#end()
filetype plugin indent on


Restart Vim and  you should get message prompt:




Vim themes consist of single file that must be copied to colors folder which is in Vim installation folder, I used molokai theme.


To select theme update _vimrc file by adding:

syntax on
color molokai


Restart Vim to see changes:


Check out my other projects
Active forks newsletter
Get a glimpse on open source active forks. Weekly newsletter with selection of repositories and their active forks.


Comments are closed