Skip to content

Instantly share code, notes, and snippets.

@pratikmallya
Forked from taylor/README.mkd
Created December 10, 2013 18:58
Show Gist options
  • Save pratikmallya/7896092 to your computer and use it in GitHub Desktop.
Save pratikmallya/7896092 to your computer and use it in GitHub Desktop.

Quick Vim Setup

Simple vim setup with some essential plugins

Install Instructions:

mkdir -p ~/.vim/autoload ~/.vim/bundle
cd ~/.vim/bundle
git clone https://github.com/tpope/vim-pathogen.git
git clone https://github.com/scrooloose/nerdtree.git
git clone https://github.com/tpope/vim-fugitive.git
git clone https://github.com/vim-scripts/taglist.vim.git
cd ~/.vim/autoload ; ln -s ../bundle/vim-pathogen/autoload/pathogen.vim
mkdir -p ~/.vim/autoload ~/.vim/bundle
cd ~/.vim/bundle
git clone https://github.com/tpope/vim-pathogen.git
git clone https://github.com/scrooloose/nerdtree.git
git clone https://github.com/tpope/vim-fugitive.git
git clone https://github.com/vim-scripts/taglist.vim.git
cd ~/.vim/autoload ; ln -s ../bundle/vim-pathogen/autoload/pathogen.vim
" Simple vim setup with some essential plugins
"
" pathogen - https://github.com/tpope/vim-pathogen
" taglist.vim - http://www.vim.org/scripts/script.php?script_id=273
" NERD Tree - http://www.vim.org/scripts/script.php?script_id=1658
" fugitive.vim -- http://www.vim.org/scripts/script.php?script_id=2975
"
" INSTALL INSTRUCTIONS:
" mkdir -p ~/.vim/autoload ~/.vim/bundle
" cd ~/.vim/bundle
" git clone https://github.com/tpope/vim-pathogen.git
" git clone https://github.com/scrooloose/nerdtree.git
" git clone https://github.com/tpope/vim-fugitive.git
" git clone https://github.com/vim-scripts/taglist.vim.git
" cd ~/.vim/autoload ; ln -s ../bundle/vim-pathogen/autoload/pathogen.vim
if filereadable(expand("$HOME/.vim/autoload/pathogen.vim"))
silent! call pathogen#infect()
endif
syntax on
filetype plugin indent on
set timeoutlen=450 " Time to wait after ESC (default causes an annoying delay)
set ts=2
set sw=2
set expandtab
" Don't use Ex mode, use Q for formatting
map Q gq
let maplocalleader = ","
""""" Settings for NERDTree
let NERDTreeIgnore=['\~$', '^\.git', '\.swp$', '\.DS_Store$']
let NERDTreeShowHidden=1
nmap <LocalLeader>nn :NERDTreeToggle<cr>
" ---------------------------------------------------------------------------
""""" Settings for taglist.vim
let Tlist_Use_Right_Window=1
let Tlist_Auto_Open=0
let Tlist_Enable_Fold_Column=0
let Tlist_Compact_Format=0
let Tlist_WinWidth=28
let Tlist_Exit_OnlyWindow=1
let Tlist_File_Fold_Auto_Close = 1
nmap <LocalLeader>tt :Tlist<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment