Skip to content

Instantly share code, notes, and snippets.

@uetiko
Last active May 27, 2016 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uetiko/d096987be74620c90ca1 to your computer and use it in GitHub Desktop.
Save uetiko/d096987be74620c90ca1 to your computer and use it in GitHub Desktop.
vimrc optimized for develop in php wirth Vundle
" File: .vimrc
" Autor: Uetiko
" Version: 0.2
" I like 4 spaces for indenting
set ts=8
set tabstop=8
set expandtab
set shiftwidth=8
set smarttab
" enable indenting file
set cindent
set ai
" Use Vim settings, rather then Vi settings (much better!).
set nocompatible
" set the commandheight
set cmdheight=2
" command line history
set history=100
" show cursor position
set ruler
" smart search
set scs
" utf8 encode
set encoding=utf-8
syntax on
" #########################################################
" # Python config
" #
" add pep8
au BufNewFile,BufRead *.py, *.php
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=79 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix
"au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
" make my code look pretty
let python_highlight_all=1
"python with virtualenv support
"py << EOF
" import os
" import sys
" if 'VIRTUAL_ENV' in os.environ:
" project_base_dir = os.environ['VIRTUAL_ENV']
" activate_this = os.path.join(project_base_dir, 'bin/activate_this.py')
" execfile(activate_this, dict(__file__=activate_this))
" EOF
au BufNewFile,BufRead *.js, *.html, *.css
\ set tabstop=2 |
\ set softtabstop=2 |
\ set shiftwidth=2
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'Vundle.vim'
Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdtree'
Plugin 'majutsushi/tagbar'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'Valloric/YouCompleteMe'
Plugin 'airblade/vim-gitgutter'
Plugin 'SirVer/ultisnips'
" "Plugin 'honza/vim-snippets'
Plugin 'jelera/vim-javascript-syntax'
Plugin 'ervandew/supertab'
Plugin 'shawncplus/phpcomplete.vim'
""Bundle 'm2mdas/phpcomplete-extended'
Bundle 'Shougo/vimproc'
Bundle 'Shougo/unite.vim'
Bundle 'wakatime/vim-wakatime'
Plugin 'klen/python-mode'
Plugin 'nvie/vim-flake8'
Plugin 'joonty/vdebug'
call vundle#end() " required
filetype plugin indent on " required
" " 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
"" Uetiko configs!
"" YouCompletme config
let g:ycm_key_list_select_completion=['<C-n>, <Down>']
let g:ycm_key_list_previus_completion=['C-p', '<Up>']
let g:SuperTabDefaultCompletionType='<C-n>'
"" ULTISNIPS
let g:UltiSnipsExpandTrigger="<tab>"
let g:UtilSnipsListSnippets="<C-tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<s-tab>"
let g:UltiSnipsEditSplit="vertical"
let g:airline_left_sep='>'
let g:airline_right_sep='<'
let g:airline_detect_modified=1
let g:airline_section_b = '%{strftime("%c")}'
let g:airline_section_y = 'BN: %{bufnr("%")}'
let g:airline_theme='dark'
highlight ColorColumn ctermbg=yellow
let &colorcolumn=80
map <F4> :call UpdateTitle()<cr>'s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment