Created
December 22, 2017 01:08
-
-
Save suryakun/c6388e3280f1eaed7d8e204f54360fdb to your computer and use it in GitHub Desktop.
This file contains 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 " be iMproved, required | |
filetype off " required | |
set exrc | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" ==== PLUGINS ==== | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'vim-scripts/L9' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'easymotion/vim-easymotion' | |
Plugin 'tpope/vim-surround' | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'SirVer/ultisnips' | |
Plugin 'dracula/vim' | |
Plugin 'scrooloose/nerdcommenter' | |
Plugin 'townk/vim-autoclose' | |
" ===== CtrlP ===== | |
let g:ctrlp_map = '<c-p>' | |
let g:ctrlp_cmd = 'CtrlP' | |
" ==== End CtrlP ===== | |
" ==== PLUGIN THEMES ==== | |
Plugin 'morhetz/gruvbox' | |
" ==== END PLUGIN THEMES ==== | |
" ==== PLUGIN SYNTAXES ==== | |
Plugin 'cakebaker/scss-syntax.vim' | |
Plugin 'othree/yajs.vim' | |
Plugin 'mitsuhiko/vim-jinja' | |
" === END PLUGIN SYNTAXES ==== | |
" ==== END PLUGINS ==== | |
call vundle#end() | |
filetype plugin indent on | |
" ==== BASIC ==== | |
colorscheme gruvbox | |
"colorscheme dracula | |
set guifont=Monospace\ 10 | |
set fillchars+=vert:\$ | |
syntax enable | |
set background=dark | |
set ruler | |
set hidden | |
set number | |
set relativenumber | |
set laststatus=2 | |
set smartindent | |
set st=4 sw=4 et | |
set shiftwidth=4 | |
set tabstop=4 | |
:set guioptions-=m "remove menu bar | |
:set guioptions-=T "remove toolbar | |
:set guioptions-=r "remove right-hand scroll bar | |
:set guioptions-=L "remove left-hand scroll bar | |
:set lines=999 columns=999 | |
" ==== NERDTREE ==== | |
let NERDTreeIgnore = ['\.pyc$', '\.o$', '\.so$', '\.a$', '\.swp', '*\.swp', '\.swo', '\.swn', '\.swh', '\.swm', '\.swl', '\.swk', '\.sw*$', '[a-zA-Z]*egg[a-zA-Z]*', '[a-zA-Z]*cache[a-zA-Z]*'] | |
let NERDTreeShowHidden=1 | |
let g:NERDTreeWinPos="left" | |
let g:NERDTreeDirArrows=0 | |
let mapleader = " " | |
map <C-t> :NERDTreeToggle<CR> | |
" ==== Syntastic ==== | |
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 | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_javascript_checkers = ['eslint'] | |
let g:syntastic_javascript_mri_args = "--config=$HOME/.jshintrc" | |
let g:syntastic_python_checkers = [ 'pylint', 'flake8', 'pep8', 'pyflakes', 'python'] | |
let g:syntastic_yaml_checkers = ['jsyaml'] | |
let g:syntastic_html_tidy_exec = 'tidy5' | |
" === flake8 ==== | |
let g:flake8_show_in_file=1 | |
" ==== Snips ==== | |
let g:UltiSnipsExpandTrigger="<A-ENTER>" | |
let g:UltiSnipsJumpForwardTrigger="<A-ENTER>" | |
let g:UltiSnipsJumpBackwardTrigger="<A-BACKSPACE>" | |
" If you want :UltiSnipsEdit to split your window. | |
let g:UltiSnipsEditSplit="vertical" | |
" ==== Easymotion ==== | |
let g:EasyMotion_do_mapping = 0 | |
let g:EasyMotion_smartcase = 1 | |
nmap f <Plug>(easymotion-s) | |
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> | |
command JsonPretty execute ":%!python -m json.tool" | |
set secure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment