Permalink
Browse files

- Fixed: Make PHP settings local to buffer.

  • Loading branch information...
1 parent e66a4aa commit a6e38295cd2087b31fa52657036dab994d9a3ca6 @tobyS committed Apr 13, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 .vim/ftplugin/php.vim
View
@@ -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>

0 comments on commit a6e3829

Please sign in to comment.