Skip to content

Instantly share code, notes, and snippets.

@jacobandresen
Created February 25, 2014 09:14
Show Gist options
  • Save jacobandresen/9205514 to your computer and use it in GitHub Desktop.
Save jacobandresen/9205514 to your computer and use it in GitHub Desktop.
syntastic nerdtree
colorscheme darkblue
execute pathogen#infect()
autocmd vimenter * NERDTree
let g:syntastic_enable_signs=1
let g:syntastic_auto_loc=1
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
set nocompatible
set title
set ttyfast
set ruler
syntax on
set showcmd
set backspace=2
set nowrap
map gf :split <cfile><CR>
set tabstop=4
set shiftwidth=4
set expandtab
filetype on
filetype indent on
filetype plugin on
set bufhidden=hide
set foldmethod=indent
set visualbell
set noautowrite
set ignorecase
set incsearch
se hlsearch
set nu
set ai
set bg=dark
autocmd BufEnter * lcd %:p:h
:nmap ,t :!(cd %:p:h;ctags *.php)&
autocmd BufEnter *.tex set tw=80
:nmap <ESC>1 :confirm :b1 <CR>
:nmap <ESC>2 :confirm :b2 <CR>
:nmap <ESC>3 :confirm :b3 <CR>
:nmap <ESC>4 :confirm :b4 <CR>
:nmap <ESC>5 :confirm :b5 <CR>
:nmap <ESC>6 :confirm :b6 <CR>
:nmap <ESC>7 :confirm :b7 <CR>
:nmap <ESC>8 :confirm :b8 <CR>
:nmap <ESC>9 :confirm :b9 <CR>
:nmap <ESC>0 :confirm :b10 <CR>
set showmatch
set laststatus=2
set statusline=%<%f\%h%m%r%=%-20.(line=%l\ \ col=%c%V\ \ totlin=%L%)\ \ \%h%m%r%=%-40(bytval=0x%B,%n%Y%)\%P
highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /\s\+$/
set wildmode=longest,list:longest,full
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment