Last active
August 29, 2015 14:03
-
-
Save igor822/1b1b0600dcae9b9907ff to your computer and use it in GitHub Desktop.
Meu Vim
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
syntax enable | |
set encoding=utf-8 | |
set t_Co=256 | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set lazyredraw | |
set laststatus=2 | |
set nocompatible | |
set number | |
set linespace=0 | |
set nowrap | |
filetype off | |
set rtp+=$HOME/.local/lib/python2.7/site-packages/powerline/bindings/vim/ | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'bling/vim-airline' | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline_theme = 'molokai' | |
"let g:airline_left_sep = '' | |
"let g:airline_left_alt_sep = '' | |
let g:airline_powerline_fonts = 1 | |
if !exists('g:airline_symbols') | |
let g:airline_symbols = {} | |
endif | |
let g:airline_symbols.space = "\ua0" | |
let g:airline_left_sep = '»' | |
let g:airline_left_sep = '▶' | |
let g:airline_right_sep = '«' | |
let g:airline_right_sep = '◀' | |
let g:airline_symbols.linenr = '␊' | |
let g:airline_symbols.linenr = '' | |
let g:airline_symbols.linenr = '¶' | |
let g:airline_symbols.branch = '⎇' | |
let g:airline_symbols.paste = 'ρ' | |
let g:airline_symbols.paste = 'Þ' | |
let g:airline_symbols.paste = '∥' | |
let g:airline_symbols.whitespace = 'Ξ' | |
Bundle 'scrooloose/nerdtree' | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'kien/ctrlp.vim' | |
nnoremap <leader>f :CtrlP<CR> | |
let g:ctrlp_working_path_mode='' | |
Bundle 'majutsushi/tagbar' | |
Bundle 'Shougo/neocomplcache.vim' | |
let g:acp_enableAtStartup = 0 | |
let g:neocomplcache_enable_at_startup = 0 | |
let g:neocomplcache_enable_smart_case = 1 | |
let g:neocomplcache_min_syntax_length = 3 | |
" Enable heavy omni completion. | |
if !exists('g:neocomplcache_omni_patterns') | |
let g:neocomplcache_omni_patterns = {} | |
endif | |
let g:neocomplcache_omni_patterns.php = '[^. \t]->\h\w*\|\h\w*::' | |
Bundle 'Shougo/unite.vim' | |
call vundle#end() | |
filetype plugin indent on | |
call pathogen#infect() | |
nnoremap <C-t> :tabnew<CR> | |
nnoremap <C-S-c> :tabclose<CR> | |
map <F2> :NERDTreeToggle<CR> | |
map <C-J> :bnext<CR> | |
map <C-K> :bprev<CR> | |
map <C-L> :tabn<CR> | |
map <C-H> :tabp<CR> | |
nmap <F8> :TagbarToggle<CR> | |
" check if has xterm_clipboard with vim --version | grep "xterm_clipboard" or install vim-gnome | |
set clipboard=unnamed | |
vmap <C-c> "+y | |
map <C-v> "+p | |
let mapleader="\\" | |
nnoremap <silent> <Leader>m :Unite -buffer-name=recent -winheight=10 file_mru<cr> | |
nnoremap <Leader>b :Unite -buffer-name=buffers -winheight=10 buffer<cr> | |
map <unique> <buffer> <LocalLeader>i <Plug>PhpgetsetInsertBothGetterSetter<cr> | |
Bundle 'arnaud-lb/vim-php-namespace' | |
Bundle 'docteurklein/php-getter-setter.vim' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment