"""Weird tmux settings let &t_Co=256 """ Load plugins call plug#begin('~/.vim/plugged') Plug 'whatyouhide/vim-gotham' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'Shougo/unite.vim' Plug 'devjoe/vim-codequery' Plug 'mileszs/ack.vim' call plug#end() """" General Settings "" leader let mapleader="," "" vim-airline if !exists('g:airline_symbols') let g:airline_symbols = {} endif let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#left_sep = ' ' let g:airline#extensions#tabline#left_alt_sep = '|' let g:airline#extensions#tabline#formatter = 'jsformatter' let g:airline_left_sep = '»' let g:airline_left_sep = '▶' let g:airline_right_sep = '«' let g:airline_right_sep = '◀' let g:airline_symbols.linenr = '␊' let g:airline_symbols.linenr = '␤' let g:airline_symbols.linenr = '¶' let g:airline_symbols.maxlinenr = '' let g:airline_symbols.branch = '⎇' let g:airline_symbols.paste = 'ρ' let g:airline_symbols.paste = 'Þ' let g:airline_symbols.paste = '∥' let g:airline_symbols.spell = 'Ꞩ' let g:airline_symbols.notexists = '∄' let g:airline_symbols.whitespace = 'Ξ' let g:airline_theme='jellybeans' "" vim-codequery nnoremap c :CodeQueryMenu Unite Full nnoremap s :CodeQuery Symbol nnoremap l :CodeQuery Call nnoremap r :CodeQuery Caller nnoremap e :CodeQuery Callee "" Set tabs to 4 spaces set tabstop=4 set shiftwidth=4 set expandtab "" Stupid backspace setting set backspace=2 "" Remember location in file if has("autocmd") au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif endif "" Line numbers set number "" Autoindent set autoindent "" Colors syntax enable set background=dark colorscheme gotham256 filetype plugin on "" Ctags set path+=;/ set tags+=c_tags;/ " By default ^W ^] splits horizontal, so now ^] splits vertically map :vsp :exec("tag ".expand("")) "" Window stuff map h map j map k map l "" Buffer Stuff noremap d : bd noremap 1 : 1b noremap 2 : 2b noremap 3 : 3b noremap 4 : 4b noremap 5 : 5b noremap 6 : 6b noremap 7 : 7b noremap 8 : 8b noremap 9 : 9b noremap 10 : 10b