Created
July 5, 2017 14:20
-
-
Save zer0tonin/38e3eb78201b703a57980bf415c5c8b4 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
" plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'scrooloose/nerdtree' | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'StanAngeloff/php.vim' | |
Plug 'Valloric/YouCompleteMe' | |
Plug 'vim-syntastic/syntastic' | |
Plug 'cocopon/iceberg.vim' | |
Plug 'mileszs/ack.vim' | |
Plug 'jiangmiao/auto-pairs' | |
Plug 'jistr/vim-nerdtree-tabs' | |
Plug 'pangloss/vim-javascript' | |
Plug 'mxw/vim-jsx' | |
Plug 'vim-airline/vim-airline' | |
Plug 'tpope/vim-sleuth' | |
Plug 'lumiliet/vim-twig' | |
Plug 'tmhedberg/matchit' | |
Plug 'xolox/vim-notes' | |
Plug 'xolox/vim-misc' | |
Plug 'tpope/vim-fugitive' | |
Plug 'ternjs/tern_for_vim' | |
call plug#end() | |
" NERDTree on startup | |
let g:nerdtree_tabs_open_on_console_startup=1 | |
autocmd VimEnter * wincmd p | |
" exit NERDTress if it's the only window left | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
" Easy window switching | |
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> | |
" Syntastic settings | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 0 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_javascript_checkers = ["eslint"] | |
" theme | |
colorscheme iceberg | |
" disable POSIX new line | |
set nofixeol | |
" allow JSX in .js | |
let g:jsx_ext_required = 0 | |
" display line numbers | |
set number | |
" horizontal scrolling | |
set nowrap | |
set sidescroll=1 | |
" tabs | |
set tabstop=2 | |
set softtabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
" disable preview window for autocomplete | |
set completeopt-=preview | |
" escape terminal mode with ESC | |
tnoremap <Esc> <C-\><C-n> | |
" allow project specific config files | |
set exrc | |
" tern config | |
let g:tern_map_keys=1 | |
let g:tern_show_argument_hints='on_hold' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment