Skip to content

Instantly share code, notes, and snippets.

@asdrubalivan
Created February 22, 2015 15:25
Show Gist options
  • Save asdrubalivan/ec1bff8f22532471c1d2 to your computer and use it in GitHub Desktop.
Save asdrubalivan/ec1bff8f22532471c1d2 to your computer and use it in GitHub Desktop.
if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/home/asdrubalivan/.vim/bundle/neobundle.vim/
endif
" Required:
call neobundle#begin(expand('/home/asdrubalivan/.vim/bundle'))
" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'
" My NeoBundles here:
"
" original repos on GitHub
NeoBundle 'phpfolding.vim'
NeoBundle 'adoy/vim-php-refactoring-toolbox'
NeoBundle "maksimr/vim-jsbeautify"
NeoBundle 'tpope/vim-haml'
NeoBundle 'StanAngeloff/php.vim'
NeoBundle 'gorodinskiy/vim-coloresque'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'wizicer/vim-jison'
NeoBundle 'terryma/vim-multiple-cursors'
NeoBundle 'mileszs/ack.vim'
NeoBundle 'mattn/emmet-vim'
NeoBundle "MarcWeber/vim-addon-mw-utils"
NeoBundle "tomtom/tlib_vim"
NeoBundle "garbas/vim-snipmate"
NeoBundle 'honza/vim-snippets'
NeoBundle 'sirver/ultisnips'
NeoBundle 'scrooloose/syntastic'
NeoBundle 'Lokaltog/vim-easymotion'
NeoBundle 'tpope/vim-surround'
NeoBundle 'marijnh/tern_for_vim'
NeoBundle 'nathanaelkane/vim-indent-guides'
NeoBundle 'sickill/vim-pasta'
NeoBundle 'chrisbra/csv.vim'
NeoBundle 'L9'
NeoBundle 'SQLComplete.vim'
NeoBundle 'Valloric/YouCompleteMe'
NeoBundle 'ervandew/supertab'
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'joonty/vdebug'
NeoBundle 'bling/vim-airline'
NeoBundle 'majutsushi/tagbar'
NeoBundle 'shawncplus/phpcomplete.vim'
NeoBundle 'Shougo/vimproc'
NeoBundle 'Shougo/unite.vim'
NeoBundle 'Shougo/vimshell.vim'
NeoBundle 'kchmck/vim-coffee-script'
NeoBundle 'Raimondi/delimitMate'
NeoBundle 'tpope/vim-commentary'
NeoBundle 'kien/ctrlp.vim'
NeoBundle 'chrisbra/SudoEdit.vim'
NeoBundle 'evidens/vim-twig'
NeoBundle 'stephpy/vim-yaml'
NeoBundle 'elzr/vim-json'
" Required:
call neobundle#end()
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck
"End NeoBundle Scripts-------------------------
" IMPORTANT Config de Ultisnips
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
filetype plugin indent on
set expandtab
set showcmd
set smartindent
set autoindent
set cindent
set tabstop=4
set shiftwidth=4
set number
set colorcolumn=81
set cursorline
filetype off " required!
" Voy a usar una tecla <leader> para EasyMotion
let mapleader=" "
" Activamos vim-airline
let g:airline#extensions#tabline#enabled = 1
"Hacemos que la barra de airline aparezca todo el tiempo
set laststatus =2
" make YCM compatible with UltiSnips (using supertab)
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:SuperTabDefaultCompletionType = '<C-n>'
" better key bindings for UltiSnipsExpandTrigger
let g:UltiSnipsExpandTrigger = "<tab>"
let g:UltiSnipsJumpForwardTrigger = "<tab>"
let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"
" Config de syntax checker
let g:syntastic_php_checkers = ['php']
let g:syntastic_json_checkers = ['jsonlint']
" Configuración de ctags
let g:ycm_collect_identifiers_from_tags_files = 1
set tags+=./tags,~/.vim/tags/
let g:vdebug_options = {
\ 'server': '0.0.0.0'
\}
let g:phpcomplete_parse_docblock_comments = 1 " Quiero dockblocks en PHPComplete
filetype plugin indent on " required!
if has("gui_running")
colorscheme molokai
endif
" Para que indent-guide sirva
set background=dark
" Necesito que ésta sintaxis de PHP sirva
" para keywords que se encuentran en comentarios
function! PhpSyntaxOverride()
hi! def link phpDocTags phpDefine
hi! def link phpDocParam phpType
endfunction
augroup phpSyntaxOverride
autocmd!
autocmd FileType php call PhpSyntaxOverride()
augroup END
au BufRead,BufNewFile *.hai setfiletype hai
let php_folding=0
map <F8> <ESC>:EnableFastPHPFolds<Cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment