Skip to content

Instantly share code, notes, and snippets.

@sucotronic
Last active July 6, 2016 12:09
Show Gist options
  • Save sucotronic/7b500f38abae6b305e1447d8d7c1b05a to your computer and use it in GitHub Desktop.
Save sucotronic/7b500f38abae6b305e1447d8d7c1b05a to your computer and use it in GitHub Desktop.
.vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=$HOME/.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'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'scrooloose/syntastic'
Plugin 'shawncplus/phpcomplete.vim'
Plugin 'ervandew/supertab'
Plugin 'joonty/vdebug.git'
Plugin 'stephpy/vim-php-cs-fixer'
Plugin 'IN3D/vim-raml'
" 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
" Open nerdtree on console and gui startup
let g:nerdtree_tabs_open_on_console_startup=1
let g:nerdtree_tabs_open_on_gui_startup=1
nnoremap <C-Right> :tabn<CR>
nnoremap <C-Left> :tabp<CR>
" Dark background
set bg=dark
" Show numbers
set number
set mouse=a
" conemu windows
if !has("gui_running")
set term=xterm
endif
" airline theme
let g:airline_theme='base16'
" syntastic
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
let g:syntastic_php_phpcs_args='--standard=~/phpcs_ruleset.xml'
" Auto complete
autocmd FileType php setlocal omnifunc=phpcomplete#CompletePHP
set completeopt=longest,menuone
let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
" Column 80 marker
highlight OverLength ctermbg=darkred ctermfg=white guibg=#660000
match OverLength /\%81v.\+/
" No tabs, only spaces at
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
" smartindent and autoindent
set autoindent
set smartindent
" resaltado de sintaxis
syntax on
color desert
nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment