summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-04-12 13:52:55 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-04-12 13:52:55 +0200
commitf3d2a3161b93d28cb5ea09224ef6c5c525ba2c2c (patch)
tree125c2e4d985b52084102760525bba901b2e79023 /.vimrc
parentcab69e1a3516293a01cd08bedaa3fbdf7441beb6 (diff)
downloaddotfiles-f3d2a3161b93d28cb5ea09224ef6c5c525ba2c2c.tar.gz
dotfiles-f3d2a3161b93d28cb5ea09224ef6c5c525ba2c2c.tar.xz
new vim plugins
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 59681e1..f02d389 100644
--- a/.vimrc
+++ b/.vimrc
@@ -93,13 +93,15 @@ NeoBundle 'SudoEdit'
NeoBundle 'rking/ag.vim'
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'majutsushi/tagbar'
+NeoBundle 'adoy/vim-php-refactoring-toolbox'
+NeoBundle 'shawncplus/phpcomplete.vim'
NeoBundleCheck
"aliases
cnorea w!! w !sudo tee "%" > /dev/null
cnorea qpd %!perl -pe 's/\=([0-9A-Fa-f]{2})/chr(hex($1))/ge; s/\=\n//;'
-function Filebin(start, end)
+function! Filebin(start, end)
let range = expand(a:start) . "," . expand(a:end)
silent exe expand(range) . "w !fb -n " . expand("%:t") . " -e " . expand(&ft)
redraw!
@@ -240,6 +242,7 @@ 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 php set omnifunc=phpcomplete#CompletePHP
autocmd FileType php set foldmethod=syntax
autocmd FileType php set foldlevelstart=2 foldnestmax=2
autocmd FileType php let g:php_folding=1