Created
January 21, 2016 11:45
-
-
Save jnbdz/328be3a737c1d7919631 to your computer and use it in GitHub Desktop.
.vimrc 2016
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 " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'StanAngeloff/php.vim' | |
"Plugin 'joonty/vim-phpqa' | |
"Plugin 'thinca/vim-localrc' | |
Plugin 'joonty/vim-sauce.git' | |
Plugin 'joonty/vdebug' | |
Plugin 'kballard/vim-swift' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'altercation/vim-colors-solarized' | |
Plugin 'rking/ag.vim' | |
Plugin 'kien/ctrlp.vim' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" To ignore plugin indent changes, instead use: | |
"filetype plugin on | |
" | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
syntax on | |
set relativenumber | |
"set number | |
command W :execute ':silent w !sudo tee % > /dev/null' | :edit! | |
command Unsetnum :execute ':set relativenumber& | set number&' | |
command Resetnum :execute ':set relativenumber | set number' | |
set backspace=2 " make backspace work like most other apps (http://vim.wikia.com/wiki/Backspace_and_delete_problems) | |
set viminfo='10,\"100,:20,%,n~/.viminfo | |
function! ResCur() | |
if line("'\"") <= line("$") | |
normal! g`" | |
return 1 | |
endif | |
endfunction | |
augroup resCur | |
autocmd! | |
autocmd BufWinEnter * call ResCur() | |
augroup END | |
set tabstop=4 shiftwidth=4 expandtab | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
"set background=dark | |
"colorscheme solarized | |
" | |
" 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 | |
"let g:tagdefaults = | |
"let g:tagcommands = { | |
" \ php : {"tagfile":".php.tags","args":"-R"}, | |
" \ javascript : {"tagfile":".js.tags","args":"-R"}, | |
" \ python : {"tagfile":".python.tags","args":"-R"} | |
" \} | |
set wildignore+=*/tmp/*,*.so,*.swp,*.zip | |
" Put at the very end of your .vimrc file. | |
function! PhpSyntaxOverride() | |
hi! def link phpDocTags phpDefine | |
hi! def link phpDocParam phpType | |
endfunction | |
augroup phpSyntaxOverride | |
autocmd! | |
autocmd FileType php call PhpSyntaxOverride() | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment