syntax enable filetype plugin indent on colorscheme akr set encoding=utf-8 set showcmd set nocompatible set nocursorline set number set lazyredraw set ttyfast set mouse=a set t_Co=256 set shell=/bin/sh set sessionoptions-=options set directory=~/.vim/swap//,. set wrap set tabstop=4 shiftwidth=4 set backspace=indent,eol,start set listchars=tab:\ \ set list set linebreak set hlsearch set incsearch set ignorecase set smartcase let mapleader="," map s :let @/="" map c zz map d nmap :e# nmap f za nmap F zA autocmd InsertEnter * :setlocal nohlsearch autocmd InsertLeave * :setlocal hlsearch autocmd FileType scheme setlocal shiftwidth=2 tabstop=2 expandtab autocmd FileType lisp setlocal shiftwidth=2 tabstop=2 expandtab autocmd FileType racket setlocal shiftwidth=2 tabstop=2 expandtab autocmd FileType haskell setlocal shiftwidth=2 tabstop=4 softtabstop=2 shiftround expandtab autocmd FileType pandoc setlocal nonumber autoread autocmd FileType pandoc let g:airline#extensions#whitespace#checks=['indent', 'trailing', 'long'] autocmd FileType tex set conceallevel=2 " select previous line on file reload, useful when cycling file extensions autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | execute "normal! g`\" zz" | endif nnoremap :CounterpointNext nnoremap :CounterpointPrevious nnoremap gT nnoremap gt nnoremap @q nnoremap J } nnoremap K { nmap << nmap >> vmap >gv nmap [e nmap ]e vmap [egv vmap ]egv nnoremap h nnoremap l nnoremap k nnoremap j set laststatus=2 let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#show_buffers = 0 let g:airline#extensions#tabline#show_tab_type = 0 let g:airline#extensions#tabline#formatter = 'unique_tail_improved' let g:airline#extensions#tabline#buffer_idx_mode = 0 let g:airline#extensions#tabline#left_sep = '' let g:airline#extensions#tabline#left_alt_sep = '' let g:airline#extensions#tabline#right_sep = '' let g:airline#extensions#tabline#right_alt_sep = '' let g:airline#extensions#tabline#show_close_button = 0 let g:airline#extensions#tabline#show_splits = 0 let g:airline#extensions#tabline#show_tab_nr = 0 let g:airline#extensions#whitespace#mixed_indent_algo = 2 let g:gitgutter_enabled = 0 let g:gitgutter_highlight_lines = 1 let g:goyo_width = 90 let g:goyo_margin_top = 1 let g:goyo_margin_bottom = 0 nnoremap :UndotreeToggle nnoremap :GitGutterToggle nnoremap :set cursorline! nnoremap :TagbarToggle nnoremap :Goyo nnoremap :CtrlPBuffer nnoremap :CtrlPMixed nnoremap :CtrlPTag nnoremap :CtrlPBufTag let g:ctrlp_custom_ignore = { \ 'dir': '\.git$', \ 'file': '\.o$\|\.d$' \ } let g:undotree_SetFocusWhenToggle = 1 let g:tagbar_autoclose = 1 let g:tagbar_autopreview = 1 let g:tagbar_compact = 1 let g:tagbar_width = 70 let g:localvimrc_sandbox = 0 let g:localvimrc_persistent = 2