execute pathogen#infect() let mapleader=" " syntax on filetype plugin indent on if &t_Co == 256 colorscheme Benokai endif set number set hlsearch set list set modeline set background=dark set foldmethod=indent set listchars=trail:·,tab:▸\ ,eol:¬ autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif function! AppendModeline() let l:modeline = printf(" vim: set ts=%d sw=%d tw=%d %set :", \ &tabstop, &shiftwidth, &textwidth, &expandtab ? '' : 'no') let l:modeline = substitute(&commentstring, "%s", l:modeline, "") call append(line("$"), l:modeline) endfunction nnoremap ml :call AppendModeline() map j map k map h map l noremap "" noremap! noremap "" noremap! noremap "" noremap! noremap "" noremap!