Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
My configuration for spf13-vim distribution
set guifont=Monaco:h16
set transparency=0
"let g:spf13_bundle_groups=['general', 'neocomplcache', 'programming', 'php', 'javascript', 'twig', 'html', 'misc']
"let g:spf13_bundle_groups=['general', 'programming', 'twig', 'html', 'misc']
let g:spf13_bundle_groups=[]
let g:override_spf13_bundles=1
let g:spf13_no_autochdir = 1
Bundle 'veloce/vim-behat'
Bundle 'mileszs/ack.vim'
Bundle 'scrooloose/nerdtree'
Bundle 'altercation/vim-colors-solarized'
"Bundle 'spf13/vim-colors'
"Bundle 'tpope/vim-surround'
"Bundle 'Townk/vim-autoclose'
Bundle 'kien/ctrlp.vim'
"Bundle 'vim-scripts/sessionman.vim'
"Bundle ''
if (has("python") || has("python3")) && !exists('g:spf13_use_old_powerline')
Bundle 'Lokaltog/powerline', {'rtp':'/powerline/bindings/vim'}
Bundle 'Lokaltog/vim-powerline'
"Bundle 'Lokaltog/vim-easymotion'
"Bundle 'godlygeek/csapprox'
"Bundle 'jistr/vim-nerdtree-tabs'
"Bundle 'flazz/vim-colorschemes'
"Bundle 'mbbill/undotree'
"Bundle 'myusuf3/numbers.vim'
"Bundle 'nathanaelkane/vim-indent-guides'
"Bundle 'vim-scripts/restore_view.vim'
Bundle 'airblade/vim-gitgutter'
"Bundle 'tpope/vim-abolish.git'
"Bundle 'scrooloose/syntastic'
Bundle 'tpope/vim-fugitive'
"Bundle 'mattn/webapi-vim'
"Bundle 'mattn/gist-vim'
"Bundle 'scrooloose/nerdcommenter'
"Bundle 'godlygeek/tabular'
"if executable('ctags')
" Bundle 'majutsushi/tagbar'
"Bundle 'Valloric/YouCompleteMe'
"Bundle 'Shougo/neocomplcache'
Bundle 'Shougo/neocomplete'
Bundle 'Shougo/neosnippet'
Bundle 'honza/vim-snippets'
Bundle 'spf13/PIV'
Bundle 'arnaud-lb/vim-php-namespace'
"Bundle 'amirh/HTML-AutoCloseTag'
"Bundle 'hail2u/vim-css3-syntax'
"Bundle 'tpope/vim-haml'
Bundle 'tpope/vim-markdown'
Bundle 'spf13/vim-preview'
Bundle 'tpope/vim-cucumber'
"Bundle 'quentindecock/vim-cucumber-align-pipes'
"Bundle 'Puppet-Syntax-Highlighting'
Bundle 'beyondwords/vim-twig'
"Bundle 'joonty/vim-xdebug'
"Bundle 'doozr/Xdebug-for-Vim'
"Bundle 'greyblake/vim-preview'
"Bundle 'matthias-guenther/hammer'
"Bundle 'samsonw/vim-task'
"Bundle 'sjbach/lusty'
"Bundle 'docteurklein/php-getter-setter.vim'
"Bundle 'EvanDotPro/phpcomplete.vim'
"Bundle 'stephpy/vim-php-cs-fixer'
"Bundle 'vim-scripts/YankRing.vim'
"Bundle 'mnick/vim-pomodoro'
colorscheme solarized
set foldenable
let g:DisableAutoPHPFolding = 1
let g:pathMap = '/home/vagrant/'
let g:snips_author = 'Jakub Zalas <>'
"let g:ctrlp_working_path_mode = 0
let g:ackprg = 'ag --nogroup --nocolor --column'
autocmd Filetype cucumber setlocal tabstop=2 softtabstop=2 shiftwidth=2
imap <D-i> <C-O>:call PhpInsertUse()<CR>
map <D-i> :call PhpInsertUse()<CR>
imap <Leader><D-i> <C-O>:call PhpExpandClass()<CR>
map <Leader><D-i> :call PhpExpandClass()<CR>
"inoremap <silent> <buffer> <C-D-CR> <ESC>:call Toggle_task_status()<CR>i
"noremap <silent> <buffer> <C-D-CR> :call Toggle_task_status()<CR>
"autocmd BufNewFile,BufRead todo.txt,*.tasks setfiletype task
" Behat {
let g:feature_filetype='behat'
let g:behat_executables = ['bin/behat']
" if !exists('g:neocomplcache_omni_patterns')
" let g:neocomplcache_omni_patterns = {}
" endif
" let g:neocomplcache_omni_patterns.behat = '\(When\|Then\|Given\|And\)\s.*$'
" disable omni completion steps cache
" normally you don't want to do this because it's slow (and will prevent neocomplcache from working)
" let g:behat_disable_omnicompl_cache = 1
" }
" neocomplcache {
" let g:neocomplcache_enable_at_startup = 1
" let g:neocomplcache_enable_camel_case_completion = 0
" let g:neocomplcache_enable_underbar_completion = 0
" }
" neocomplete {
" Disable AutoComplPop.
let g:acp_enableAtStartup = 0
" Use neocomplete.
let g:neocomplete#enable_at_startup = 1
" Use smartcase.
let g:neocomplete#enable_smart_case = 1
" Set minimum syntax keyword length.
let g:neocomplete#sources#syntax#min_keyword_length = 3
let g:neocomplete#lock_buffer_name_pattern = '\*ku\*'
" SuperTab like snippets behavior.
imap <silent><expr><TAB> neosnippet#expandable() ?
\ "\<Plug>(neosnippet_expand_or_jump)" : (pumvisible() ?
\ "\<C-e>" : "\<TAB>")
smap <TAB> <Right><Plug>(neosnippet_jump_or_expand)
" Define dictionary.
let g:neocomplete#sources#dictionary#dictionaries = {
\ 'default' : '',
\ 'vimshell' : $HOME.'/.vimshell_hist',
\ 'scheme' : $HOME.'/.gosh_completions'
\ }
" Define keyword.
if !exists('g:neocomplete#keyword_patterns')
let g:neocomplete#keyword_patterns = {}
let g:neocomplete#keyword_patterns['default'] = '\h\w*'
imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump)
" Plugin key-mappings.
inoremap <expr><C-g> neocomplete#undo_completion()
inoremap <expr><C-l> neocomplete#complete_common_string()
inoremap <expr><CR> neocomplete#complete_common_string()
" Recommended key-mappings.
" <CR>: close popup and save indent.
inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
function! s:my_cr_function()
return neocomplete#smart_close_popup() . "\<CR>"
" For no inserting <CR> key.
"return pumvisible() ? neocomplete#close_popup() : "\<CR>"
" <TAB>: completion.
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
" <C-h>, <BS>: close popup and delete backword char.
inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>"
inoremap <expr><BS> neocomplete#smart_close_popup()."\<C-h>"
inoremap <expr><C-y> neocomplete#close_popup()
inoremap <expr><C-e> neocomplete#cancel_popup()
" Close popup by <Space>.
"inoremap <expr><Space> pumvisible() ? neocomplete#close_popup() : "\<Space>"
" For cursor moving in insert mode(Not recommended)
"inoremap <expr><Left> neocomplete#close_popup() . "\<Left>"
"inoremap <expr><Right> neocomplete#close_popup() . "\<Right>"
"inoremap <expr><Up> neocomplete#close_popup() . "\<Up>"
"inoremap <expr><Down> neocomplete#close_popup() . "\<Down>"
" Enable omni completion.
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete
" Enable heavy omni completion.
if !exists('g:neocomplete#omni_patterns')
let g:neocomplete#omni_patterns = {}
let g:neocomplete#omni_patterns.php = '[^. \t]->\h\w*\|\h\w*::'
let g:neocomplete#omni_patterns.perl = '\h\w*->\h\w*\|\h\w*::'
let g:neocomplete#omni_patterns.c = '[^.[:digit:] *\t]\%(\.\|->\)'
let g:neocomplete#omni_patterns.cpp = '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::'
let g:neocomplete#omni_patterns.ruby = '[^. *\t]\.\h\w*\|\h\w*::'
" Use honza's snippets.
let g:neosnippet#snippets_directory='~/.vim/bundle/vim-snippets/snippets'
" Enable neosnippet snipmate compatibility mode
let g:neosnippet#enable_snipmate_compatibility = 1
" For snippet_complete marker.
if has('conceal')
set conceallevel=2 concealcursor=i
" Disable the neosnippet preview candidate window
" When enabled, there can be too much visual noise
" especially when splits are used.
set completeopt-=preview
" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment