Skip to content

Instantly share code, notes, and snippets.

@pobsuwan
Last active June 7, 2017 04:13
Show Gist options
  • Save pobsuwan/9afc9afbe3b1672865cfabbfbba91b5a to your computer and use it in GitHub Desktop.
Save pobsuwan/9afc9afbe3b1672865cfabbfbba91b5a to your computer and use it in GitHub Desktop.
my vimrc
set shell=/bin/bash " set for fish shell
set nocompatible " be iMproved, required
filetype off " required
execute pathogen#infect()
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" ==== MY PLUGIN ====
Plugin 'tpope/vim-fugitive'
Plugin 'fatih/vim-go'
Plugin 'Shougo/neocomplete.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/syntastic'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'valloric/youcompleteme'
Plugin 'godlygeek/tabular'
" ==== PLUGIN THEMES ====
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" ==== PLUGIN SCHEME ====
Plugin 'morhetz/gruvbox'
call vundle#end() " required
filetype plugin indent on " required
" ==== BASIC ====
syntax on
colorscheme gruvbox
set number
set background=dark
set ruler
set hidden
set number
set laststatus=2
set smartindent
set st=4 sw=4 et
" let &colorcolumn="80"
:set lines=999 columns=999
" mapping for moving between windows
map <C-k> <C-w><Up>
map <C-j> <C-w><Down>
map <C-l> <C-w><Right>
map <C-h> <C-w><Left>
" ==== NERDTREE ====
let NERDTreeIgnore = ['\.pyc$', '\.o$', '\.so$', '\.a$', '[a-zA-Z]*egg[a-zA-Z]*', '[a-zA-Z]*cache[a-zA-Z]*']
let g:NERDTreeWinPos="left"
let g:NERDTreeDirArrows=0
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'
" ==== Neocomplete ====
let g:neocomplete#enable_at_startup = 0
" ==== AIRLINE ====
let g:airline_theme='powerlineish'
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#left_sep = ' '
let g:airline#extensions#tabline#left_alt_sep = '|'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment