set number set modeline set modelines=5 if &term =~ '^screen' " tmux will send xterm-style keys when its xterm-keys option is on execute "set =\e[1;*A" execute "set =\e[1;*B" execute "set =\e[1;*C" execute "set =\e[1;*D" endif set hlsearch set noexpandtab set tabstop=4 set shiftwidth=4 set softtabstop=0 set wildmode=full set mouse= set foldmethod=indent set foldlevelstart=99 set cursorcolumn set cursorline imap kj set undodir=~/.vim/undodir set undofile " Vim Plug " call plug#begin('~/.vim/plugged') Plug 'valloric/MatchTagAlways' Plug 'tyru/caw.vim' Plug 'airblade/vim-gitgutter' Plug 'jiangmiao/auto-pairs' " For func argument completion Plug 'christoomey/vim-conflicted' Plug 'yggdroot/indentline' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'cespare/vim-toml' Plug 'ctrlpvim/ctrlp.vim' Plug 'pangloss/vim-javascript' Plug 'mxw/vim-jsx' Plug 'tpope/vim-surround' Plug 'thanethomson/vim-jenkinsfile' Plug 'vim-scripts/indentpython.vim' Plug 'simnalamburt/vim-mundo' Plug 'tpope/vim-unimpaired' call plug#end() autocmd BufWritePre * %s/\s\+$//e autocmd FileType markdown setlocal formatoptions+=at nnoremap :noh inoremap :nohi nnoremap - :e. nnoremap dA d$ nnoremap Y y$ map gcc imap gcci nnoremap ' :vspl:e.:CtrlP inoremap ' :vspl:e.:CtrlP nnoremap " :spj:e.:CtrlP inoremap " :spj:e.:CtrlP nnoremap g :vsp inoremap g :vsp nnoremap G :sp inoremap G :sp nnoremap :ll:lprevious nnoremap :ll:lnext nnoremap :tabnext nnoremap :tabprevious nnoremap :tabnew nnoremap :tabnew:e. nnoremap ; : iabbrev let g:indentLine_char = '▏' set termguicolors set colorcolumn=80 colorscheme Tomorrow-Night-Bright let g:gitgutter_sign_added = '▐ ' let g:gitgutter_sign_modified = '▐ ' let g:gitgutter_sign_removed = '▐ ' let g:gitgutter_sign_removed_first_line = '▐▌' let g:gitgutter_sign_modified_removed = '▐▌' let g:netrw_banner=0 let g:airline_powerline_fonts = 1 let g:airline_theme='wombat' let g:airline#extensions#tabline#enabled = 1 " Ignore files in .gitignore let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard'] " Toggle spell checking on and off with `,s` let mapleader = "," nmap s :set spell! nmap v :tabedit $MYVIMRC nmap u :MundoToggle " Restore cursor position autocmd BufReadPost * \ if line("'\"") > 1 && line("'\"") <= line("$") | \ exe "normal! g`\"" | \ endif let g:airline_section_error = '%{airline#util#wrap(airline#extensions#coc#get_error(),0)}' let g:airline_section_warning = '%{airline#util#wrap(airline#extensions#coc#get_warning(),0)}'