set encoding=utf-8 " The encoding displayed. set fileencoding=utf-8 " The encoding written to file. set colorcolumn=80 " Apparently there are security issues with this? set nomodeline execute pathogen#infect('bundle/{}', 'themes/{}') " Allow me to hide buffers w/o saving set hidden " Persistent undo set undofile set undodir=~/.vimundo set undolevels=1000 set undoreload=10000 " lots of history, it's always nice to find old nasty command that happen " to be really useful set history=10000 " " Keep the newbs from using arrow keys inoremap inoremap inoremap inoremap " Always show status line " set laststatus=2 " Case insensitive searching by default set ic " Highlight my searches by default set hls " No more swap files set updatecount=0 " Vi in-compatibility set nocompatible " Bring down the tab spacing set tabstop=4 set shiftwidth=4 set noexpandtab " Maily for the ability to match HTML tags with '%' " Apparently this is apart of the mainline vim install? Cool. runtime macros/matchit.vim " Omni completion filetype plugin on set omnifunc=syntaxcomplete#Complete autocmd Filetype python call SetPythonOptions() autocmd Filetype htmldjango call SethtmldjangoOptions() autocmd Filetype json call SetJsonOptions() autocmd Filetype javascript call SetjavascriptOptions() autocmd Filetype php call SetPHPOptions() autocmd Filetype html call SetHTMLOptions() autocmd Filetype sh call SetShellOptions() autocmd Filetype go call SetGoOptions() autocmd Filetype yaml call SetYamlOptions() autocmd Filetype markdown call SetMarkdownOptions() function SetMarkdownOptions() set spell set tabstop=4 set shiftwidth=4 set expandtab endfunction function SetPythonOptions() set tabstop=4 set shiftwidth=4 set expandtab filetype indent on set smartindent endfunction function SetjavascriptOptions() set tabstop=2 set shiftwidth=2 set expandtab filetype indent on set smartindent endfunction function SetJsonOptions() set tabstop=3 set shiftwidth=3 set expandtab filetype indent on set smartindent endfunction function SethtmldjangoOptions() set tabstop=2 set shiftwidth=2 set expandtab filetype indent on set smartindent endfunction function SetPHPOptions() set colorcolumn=120 set tabstop=4 set shiftwidth=4 set expandtab filetype indent on set smartindent endfunction function SetHTMLOptions() set colorcolumn=120 set tabstop=2 set shiftwidth=2 set expandtab filetype indent on set smartindent endfunction function SetShellOptions() set tabstop=4 set shiftwidth=4 set noexpandtab filetype indent on set smartindent endfunction function SetGoOptions() syntax off set nolist set noic set nolist endfunction function SetYamlOptions() set expandtab set tabstop=2 set noic endfunction function! PhpSyntaxOverride() hi! def link phpDocTags phpDefine hi! def link phpDocParam phpType endfunction " Backslash l nmap l :set list! " If you want listchars set list " set listchars=tab:\|\ set listchars=tab:\|\ ,eol:¬,trail:• " set listchars=tab:▸\ ,eol:¬,trail:• " set listchars=tab:▸\ ,eol:¬ " set listchars=tab:\|\ ,eol:↴ " set listchars=tab:\|\ ,eol:$ " set listchars=tab:\⇒\ ,eol:↴ " Tabs show up as MARCON, aka 0xC2 0xAF " Misc symbols for tabs: ¯ ⇒ ⇥ ⇨ ⇏ ⇸ → " Be smart about the mouse set mouse+=a if &term =~ '^screen' " tmux knows the extended mouse mode set ttymouse=xterm2 endif let s:hidden_all = 1 set noshowmode set noruler set laststatus=0 set noshowcmd function! ToggleHiddenAll() if s:hidden_all == 0 let s:hidden_all = 1 set noshowmode set noruler set laststatus=0 set noshowcmd else let s:hidden_all = 0 set showmode set ruler set laststatus=2 set showcmd endif endfunction nnoremap :call ToggleHiddenAll() " Line numbers set nu " Derp set background=dark syntax on " syntax off " colorscheme distinguished