Last active
November 28, 2017 21:58
-
-
Save spudfkc/8248076 to your computer and use it in GitHub Desktop.
vim configuration file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| syntax on | |
| syntax enable | |
| set background=dark | |
| set cryptmethod=blowfish | |
| set nocompatible | |
| set relativenumber | |
| set number | |
| set t_Co=256 | |
| set expandtab | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| "set textwidth=120 | |
| set smarttab | |
| set smartindent | |
| set ruler | |
| "set relativenumber | |
| "set ttyfast | |
| set backspace=indent,eol,start | |
| set autoread | |
| set more | |
| set cursorline! | |
| " Make vim-airline appear all the time | |
| set laststatus=2 | |
| " figure out what these do | |
| filetype off | |
| "filetype plugin on | |
| "filetype indent on | |
| "set autowrite | |
| let g:ctrlp_show_hidden=1 | |
| let g:ctrlp_working_path_mode=0 | |
| let g:ctrlp_max_height=30 | |
| set wildignore+=*/.git/*,*/.hg/*,*/.svn/*.,*/.DS_Store | |
| " searching! | |
| set hlsearch | |
| set incsearch | |
| " Visualize tabs, trailing whitespaces and funny characters | |
| " " | |
| " http://www.reddit.com/r/programming/comments/9wlb7/proggitors_do_you_like_the_idea_of_indented/c0esam1 | |
| " " https://wincent.com/blog/making-vim-highlight-suspicious-characters | |
| set list | |
| set listchars=nbsp:¬,tab:»·,trail:· | |
| hi User1 ctermfg=196 guifg=#eea040 guibg=#222222 | |
| hi User2 ctermfg=75 guifg=#dd3333 guibg=#222222 | |
| hi User3 guifg=#ff66ff guibg=#222222 | |
| hi User4 ctermfg=239 guifg=#a0ee40 guibg=#222222 | |
| hi User5 guifg=#eeee40 guibg=#222222 | |
| " Statusline | |
| " https://github.com/pengwynn/dotfiles/blob/master/vim/vimrc.symlink#L160 | |
| set statusline= " Override default | |
| set statusline+=%1*%{fugitive#statusline()[4:-2]}%* " Show fugitive git info | |
| set statusline+=%2*\ %f\ %m\ %r%* " Show filename/path | |
| set statusline+=%3*%=%* " Set right-side status info after this line | |
| set statusline+=%4*%l/%L:%v%* " Set <line number>/<totallines>:<column> | |
| set statusline+=%5*\ %* " Set ending space | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'VundleVim/Vundle.vim' | |
| Bundle 'jistr/vim-nerdtree-tabs' | |
| Plugin 'kien/ctrlp.vim' | |
| Plugin 'skywind3000/asyncrun.vim' | |
| Plugin 'scrooloose/nerdcommenter' | |
| Plugin 'scrooloose/nerdtree' | |
| Plugin 'Yggdroot/indentLine' | |
| Plugin 'nathanaelkane/vim-indent-guides' | |
| Plugin 'Valloric/YouCompleteMe' | |
| Plugin 'mileszs/ack.vim' | |
| " Commenting out ale in favor of syntastic because ale was not picking up | |
| " local .eslintrc.json file | |
| "Plugin 'w0rp/ale' | |
| Plugin 'vim-syntastic/syntastic' | |
| Plugin 'flazz/vim-colorschemes' | |
| Plugin 'pangloss/vim-javascript' | |
| Plugin 'mxw/vim-jsx' | |
| Bundle 'w0ng/vim-hybrid' | |
| Bundle 'chriskempson/tomorrow-theme', {'rtp': 'vim/'} | |
| Bundle 'altercation/vim-colors-solarized' | |
| Bundle '29decibel/codeschool-vim-theme' | |
| Bundle 'nanotech/jellybeans.vim' | |
| Bundle 'nelstrom/vim-mac-classic-theme' | |
| Bundle 'bling/vim-airline' | |
| Bundle 'roman/golden-ratio' | |
| Bundle 'vim-scripts/LargeFile' | |
| Bundle 'indraniel/vim-github-colorscheme' | |
| Bundle 'Pychimp/vim-sol' | |
| Bundle 'baskerville/bubblegum' | |
| Bundle 'Lokaltog/vim-distinguished' | |
| Bundle 'matthewtodd/vim-twilight' | |
| Bundle 'jonathanfilip/vim-lucius' | |
| Bundle 'reedes/vim-pencil' | |
| Bundle 'morhetz/gruvbox' | |
| Bundle 'epeli/slimux' | |
| " Git Integrations | |
| " ---------------- | |
| if executable('git') | |
| Bundle 'tpope/vim-git' | |
| Bundle 'tpope/vim-fugitive' | |
| Bundle 'gregsexton/gitv' | |
| Bundle 'int3/vim-extradite' | |
| endif | |
| Bundle 'tpope/vim-eunuch' | |
| " Commands | |
| " -------- | |
| Bundle 'tpope/vim-surround' | |
| call vundle#end() | |
| filetype plugin indent on | |
| filetype plugin on | |
| try | |
| "colorscheme solarized | |
| colorscheme Monokai | |
| catch | |
| echo "Monokai colorscheme not found!" | |
| endtry | |
| let g:ackprg = 'ag --vimgrep --smart-case' | |
| cnoreabbrev ag Ack | |
| cnoreabbrev aG Ack | |
| cnoreabbrev Ag Ack | |
| cnoreabbrev AG Ack | |
| let g:syntastic_javascript_checkers = ['eslint'] | |
| map <leader>y :CtrlPBuffer<cr> | |
| autocmd BufWritePre * :%s/\s\+$//e | |
| let g:NERDTreeHijackNetrw = 1 | |
| au VimEnter NERD_tree_1 enew | execute 'NERDTree '.argv()[0] | |
| nnoremap <F7> :GoldenRatioToggle<CR> | |
| " tab shortcuts | |
| " ------------- | |
| nnoremap tt :tabnew<CR> " <normal mode> tt -- opens a new tab | |
| map <C-h> :tabp<CR> " CTRL + h -- moves one tab to the left | |
| map <C-l> :tabn<CR> " CTRL + l -- moves one tab to the right |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment