Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Fixed: Make PHP settings local to buffer.

  • Loading branch information...
commit a6e38295cd2087b31fa52657036dab994d9a3ca6 1 parent e66a4aa
@tobyS authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 .vim/ftplugin/php.vim
View
5 .vim/ftplugin/php.vim
@@ -18,7 +18,7 @@ setlocal smartindent
" Linewidth to 79, because of the formatoptions this is only valid for
" comments
setlocal textwidth=79
-set formatoptions=qrocb
+setlocal formatoptions=qrocb
" Do not wrap lines automatically
setlocal nowrap
@@ -75,12 +75,13 @@ vnoremap <buffer> <C-c> :call PhpUnComment()<CR>
" More common in PEAR coding standard
" inoremap <buffer> { {<CR>}<C-O>O
" Maybe this way in other coding standards
-inoremap { {<CR>}<C-O>O
+inoremap <buffer> { {<CR>}<C-O>O
inoremap <buffer> [ []<LEFT>
" Standard mapping after PEAR coding standard
inoremap <buffer> ( ( )<LEFT><LEFT>
+" inoremap <buffer> ( ()<LEFT>
" Maybe this way in other coding standards
" inoremap ( ( )<LEFT><LEFT>
Please sign in to comment.
Something went wrong with that request. Please try again.