Created
July 21, 2016 11:57
-
-
Save psy-q/c6bf3363b7ca12e5870dacd6a67b8f0a to your computer and use it in GitHub Desktop.
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
| set nocompatible | |
| filetype off | |
| call plug#begin('~/.vim/plugged') | |
| " Color schemes | |
| "Plug 'zeis/vim-kolor' | |
| "Plug 'altercation/vim-colors-solarized' | |
| "Plug 'chriskempson/base16-vim' | |
| Plug 'NLKNguyen/papercolor-theme' | |
| " Language modes | |
| Plug 'tpope/vim-cucumber' | |
| Plug 'vim-ruby/vim-ruby' | |
| Plug 'jelera/vim-javascript-syntax' | |
| Plug 'pangloss/vim-javascript' | |
| Plug 'othree/html5.vim' | |
| Plug 'briancollins/vim-jst' | |
| Plug 'helino/vim-json' | |
| "Plug 'hhvm/vim-hack' | |
| Plug 'stephpy/vim-yaml' | |
| Plug 'vim-perl/vim-perl', { 'for': 'perl', 'do': 'make clean carp dancer highlight-all-pragmas moose test-more try-tiny' } | |
| " Seems buggy | |
| "Plug 'pearofducks/ansible-vim' | |
| "" Language modes: Clojure | |
| "Plug 'tpope/vim-classpath' | |
| "Plug 'tpope/vim-fireplace' | |
| "Plug 'guns/vim-clojure-static' | |
| "Plug 'tpope/vim-leiningen' | |
| " Validators, linters, etc | |
| Plug 'scrooloose/syntastic' | |
| Plug 'ternjs/tern_for_vim', {'do':'npm install'} | |
| " Text editing stuff | |
| Plug 'Lokaltog/vim-easymotion' | |
| "Plug 'bling/vim-airline' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'vim-airline/vim-airline-themes' | |
| Plug 'tpope/vim-surround' | |
| "Plug 'godlygeek/tabular' | |
| " Code completion | |
| Plug 'ervandew/supertab' | |
| " Everything else | |
| "Plug 'amdt/vim-niji' " No longer exists | |
| Plug 'scrooloose/nerdtree' | |
| Plug 'scrooloose/nerdcommenter' | |
| Plug 'kien/ctrlp.vim' | |
| Plug 'tpope/vim-eunuch' | |
| Plug 'hughbien/md-vim' | |
| Plug 'kchmck/vim-coffee-script' | |
| Plug 'tpope/vim-fugitive' | |
| Plug '907th/vim-auto-save' | |
| Plug 'vim-scripts/gnupg.vim' | |
| Plug 'moll/vim-bbye' | |
| "slowish | |
| "Plug 'maciakl/vim-neatstatus' | |
| call plug#end() | |
| " Airline configuration | |
| let g:airline#extensions#tabline#enabled = 1 | |
| set laststatus=2 | |
| if !exists('g:airline_symbols') | |
| let g:airline_symbols = {} | |
| endif | |
| let g:airline_left_sep = '»' | |
| let g:airline_left_sep = '▶' | |
| let g:airline_right_sep = '«' | |
| let g:airline_right_sep = '◀' | |
| let g:airline_symbols.branch = '⎇' | |
| let g:airline_symbols.linenr = '¶' | |
| let g:airline_symbols.paste = 'ρ' | |
| let g:airline_symbols.paste = '∥' | |
| let g:airline_symbols.whitespace = 'Ξ' | |
| "let g:airline_theme = 'bubblegum' | |
| "let g:airline_theme = 'luna' | |
| let g:airline_theme = 'lucius' | |
| " Autosave configuration | |
| let g:auto_save_in_insert_mode = 0 " do not save while in insert mode | |
| " Syntastic configuration | |
| let g:syntastic_ruby_checkers = ['mri','rubocop'] | |
| set statusline+=%#warningmsg# | |
| set statusline+=%{SyntasticStatuslineFlag()} | |
| set statusline+=%* | |
| "let g:syntastic_always_populate_loc_list = 1 | |
| "let g:syntastic_auto_loc_list = 1 | |
| let g:syntastic_check_on_open = 1 | |
| let g:syntastic_check_on_wq = 0 | |
| " Solarized configuration | |
| let g:solarized_contrast="high" "default value is normal | |
| let g:solarized_visibility="high" "default value is normal | |
| syntax on | |
| set hidden | |
| filetype plugin indent on | |
| " The default is \, which is awkward on non-US keyboards. | |
| let mapleader="," | |
| " == Indentation == | |
| set autoindent | |
| set smarttab | |
| set expandtab | |
| " Display tabs and trailing spaces visually | |
| set listchars=tab:▸\ ,eol:¬ | |
| "set list | |
| " == Extra matchers for % == | |
| runtime macros/matchit.vim | |
| " == Folds == | |
| set foldmethod=indent "fold based on indent | |
| set foldnestmax=3 "deepest fold is 3 levels | |
| set nofoldenable "dont fold by default | |
| " == Scrolling | |
| set scrolloff=4 "Start scrolling when we're 4 lines away from margins | |
| " == Backup files | |
| set nobackup | |
| set nowb | |
| " == Search settings == | |
| set incsearch | |
| set hlsearch | |
| " == Line numbering == | |
| set number | |
| " == Colors == | |
| colorscheme PaperColor | |
| set background=dark | |
| " == Mousymouse | |
| set mouse=a | |
| set ttymouse=xterm2 | |
| " == Open NERDTree on entering? == | |
| "autocmd vimenter * NERDTree | |
| " == Easily navigate split windows == | |
| nmap <silent> <A-Up> :wincmd k<CR> | |
| nmap <silent> <A-Down> :wincmd j<CR> | |
| nmap <silent> <A-Left> :wincmd h<CR> | |
| nmap <silent> <A-Right> :wincmd l<CR> | |
| " == Easily jump between buffers | |
| nmap <silent> <C-J> :bprevious<CR> | |
| nmap <silent> <C-K> :bnext<CR> | |
| " == Easily jump between tabs | |
| nnoremap <C-Left> :tabprevious<CR> | |
| nnoremap <C-Right> :tabnext<CR> | |
| " == Fonts, encoding == | |
| set guifont=Hack\ 12 | |
| set encoding=utf-8 | |
| " == Markdown extension == | |
| au BufNewFile,BufRead *.md set ft=md | |
| " == SuperTab configuration == | |
| autocmd FileType javascript let g:SuperTabDefaultCompletionType = "<c-x><c-o>" | |
| set completeopt-=preview | |
| " == XML folding | |
| augroup XML | |
| autocmd! | |
| autocmd FileType xml setlocal foldmethod=indent foldlevelstart=999 foldminlines=0 | |
| augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment