Skip to content

Instantly share code, notes, and snippets.

@cnu
Created March 10, 2013 02:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cnu/5126894 to your computer and use it in GitHub Desktop.
Save cnu/5126894 to your computer and use it in GitHub Desktop.
Vimrc sachet and error message
set nocompatible
" Pathogen
call pathogen#infect()
call pathogen#helptags()
set statusline=%<\ %n:%f\ %m%r%y%=%-35.(line:\ %l\ of\ %L,\ col:\ %c%V\ (%P)%)
filetype plugin indent on
syntax on
set number
set hlsearch
set showmatch
set incsearch
set ignorecase
set nowrap
set autoindent
set history=1000
set cursorline
set expandtab
set shiftwidth=4
set tabstop=4
set softtabstop=4
" Nerdtree
autocmd vimenter * NERDTree
let NERDTreeShowBookmarks=1
let NERDTreeChDirMode=0
let NERDTreeQuitOnOpen=1
let NERDTreeMouseMode=2
let NERDTreeShowHidden=1
let NERDTreeIgnore=['\.pyc','\~$','\.swo$','\.swp$','\.git','\.hg','\.svn','\.bzr']
let NERDTreeKeepTreeInNewTab=1
let g:nerdtree_tabs_open_on_gui_startup=0
colorscheme Tomorrow-Night
$ vim
Error detected while processing /Users/cnu/.vimrc:
line 4:
E117: Unknown function: pathogen#infect
line 5:
E117: Unknown function: pathogen#helptags
line 37:
E185: Cannot find color scheme Tomorrow-Night
Press ENTER or type command to continue
Error detected while processing VimEnter Auto commands for "*":
E492: Not an editor command: NERDTree
Press ENTER or type command to continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment