execute pathogen#infect() let mapleader=" " syntax on filetype plugin indent on if &t_Co == 256 colorscheme Benokai endif " On arch linux install the following: " otf-powerline-symbols-git " powerline-fonts-git let g:airline_powerline_fonts = 1 if !exists('g:airline_symbols') let g:airline_symbols = {} endif let g:airline_symbols.space = "\ua0" set number set hlsearch set list set modeline set relativenumber set background=dark set foldmethod=indent set listchars=trail:·,tab:▸\ ,eol:¬ set scrolloff=1 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! " vim: set ts=8 sw=8 tw=78 noet :