aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/php.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-08 16:21:30 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-08 16:21:30 +1200
commit42436d43a453ced475e3c76fb68eb51141571471 (patch)
treeaa13178f1b5657413a8e0abf5fff15fcfcddacce /vim/after/ftplugin/php.vim
parentMerge branch 'hotfix/v1.23.1' (diff)
parentBump VERSION (diff)
downloaddotfiles-42436d43a453ced475e3c76fb68eb51141571471.tar.gz
dotfiles-42436d43a453ced475e3c76fb68eb51141571471.zip
Merge branch 'release/v1.24.0'v1.24.0
* release/v1.24.0: Bump VERSION Add \T map to clear filetype Add .vimrc reload flag and message Add \R for filetype reloading Separate <Space> and <Backspace> maps Use :setglobal and :setlocal in .vimrc Keep more Vim history Add \N to toggle Vim 'ruler' Unmap PHP bracket maps Remove error suppression on Vim unmaps Restore Vim buffer mapping to unload script Arrange for Ctrl-C to remap over Escape Switch to \\ (double-backslash) for local leader Bind leader maps for delete and insert Map normal <Backspace> in Vim to Ctrl+B Update strip_trailing_whitespace.vim plugin Update Vim submodules
Diffstat (limited to 'vim/after/ftplugin/php.vim')
-rw-r--r--vim/after/ftplugin/php.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/vim/after/ftplugin/php.vim b/vim/after/ftplugin/php.vim
index 587062e5..70e92dfd 100644
--- a/vim/after/ftplugin/php.vim
+++ b/vim/after/ftplugin/php.vim
@@ -28,3 +28,10 @@ nnoremap <buffer> <LocalLeader>c
\ :<C-U>call compiler#Make('php')<CR>
let b:undo_ftplugin = b:undo_ftplugin
\ . '|nunmap <buffer> <LocalLeader>c'
+
+" Get rid of the core ftplugin's square-bracket maps on unload
+let b:undo_ftplugin = b:undo_ftplugin
+ \ . '|nunmap <buffer> [['
+ \ . '|ounmap <buffer> [['
+ \ . '|nunmap <buffer> ]]'
+ \ . '|ounmap <buffer> ]]'