Vim
In short Vim is a text editor that can be both used on a UNIX command line or via it graphical user interface. It is a free and open source software written by Bram Moolenarr.
Why Use Vim?
I recently started using Vim because its something I have wanted to learn for a few years now. The reason why I finally decided to give it a shot is because its so easy to customize. You can customize nearly every aspect of the application that you want through the .vimrc file. Vim also has many open source plug-ins that are being actively developed, and are all available up on GitHub.com.
Pathogen
Pathogen makes it extremely easy to manage your plug-ins in Vim.
You can grab it from GitHub, instillation instruction are also on GitHub: https://github.com/tpope/vim-pathogen
you can see how to invoke Pathogen in the .vimrc example at the bottom of the post.
Plug-ins
Plug-ins can be easily installed using git, or simply extracting the plug-ins zip folder into Vim’s bundle folder.
For example, lets say you want to add SuperTab to Vim.
- First change to the bundle directory:
- cd ~/.vim/bundle
- Use git to clone the contents from GitHub in the bundle folder.
- git clone https://github.com/ervandew/supertab.git
Thats it! You now have a new plug-in.
This is my bundle directory:

Favorite Plug-ins
- NerdTree
- SuperTab
- Syntastic
- SnipMate
- Surround
.vimrc Example!
The following is a .vimrc folder that i started working on the other day.
You can copy this into your .vimrc folder.
If you don’t have one yet, just make on in your home directory and copy the following:
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
“
” => Pathogen
“
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
execute pathogen#infect()
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
“
” => VIM Color Scheme
“
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
set t_Co=256 “Enable 256 Colors in terminal
let g:solarized_termcolors=256 “Enables 256 color package
syntax enable “Enable Syntax Highlighting
set background=dark “Enable Dark Color theme
colorscheme solarized “Enable the Solarized color theme
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
“
” => VIM Global Settings
“
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
” Lines
set number ” line numbers
set linebreak
” Command Line
set showmode
set showcmd
set cmdheight=1 ” command line one line high
set ruler ” show the line number on the bar
” Tabs
set cindent
set autoindent smartindent ” auto/smart indent
set smarttab ” tab and backspace are smart
set tabstop=4 ” 6 spaces
set shiftwidth=4 ” Size of indent
set softtabstop=4 ” Spaces and tabs uused to simulate tab stops at a width
set smarttab ” tab and backspace are smart
set expandtab ” expand Tabs to spaces
” History
set scrolloff=5 ” keep at least 5 lines above/below
set sidescrolloff=5 ” keep at least 5 lines left/right
set history=200
set undolevels=1000 ” 1000 undos
set updatecount=100 ” switch every 100 chars
” File Types
filetype on ” Enable filetype detection
filetype indent on ” Enable filetype-specific indenting
filetype plugin on ” Enable filetype-specific plugins
” Menu
set wildmode=longest:full
set wildmenu ” menu has tab completion
” Other
“set nocompatible ” vim, not vi
set cmdheight=1 ” command line one line high
set noerrorbells ” No error bells please
set autoread ” watch for file changes
set lazyredraw ” don’t redraw when don’t have to
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
“
” => VIM Search Settings
“
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
set incsearch ” incremental search
set ignorecase ” search ignoring case
set hlsearch ” highlight the search
set showmatch ” show matching bracket
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
“
” => VIM Backup Settings
“
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
set backup
set backup
set backupdir=~/.vim/backup
set directory=~/.vim/tmp
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
“
” => VIM Spelling Settings
“
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
if v:version >= 700
” Enable spell check for text files
autocmd BufNewFile,BufRead *.txt setlocal spell spelllang=en
endif
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
“
” => Key Bindings
“
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
” Allows for (shift + tab) to unindent
imap <S-Tab> <C-o><<
” Changes (shift + 🙂 to ( ; ) to get to command line
nore ; :
nore , ;