diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-04-12 13:52:55 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-04-12 13:52:55 +0200 |
commit | f3d2a3161b93d28cb5ea09224ef6c5c525ba2c2c (patch) | |
tree | 125c2e4d985b52084102760525bba901b2e79023 /.vimrc | |
parent | cab69e1a3516293a01cd08bedaa3fbdf7441beb6 (diff) | |
download | dotfiles-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-- | .vimrc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |