diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-19 11:45:44 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-19 11:45:44 +1300 |
commit | 468b225f50107d192d69bde191a554395b2fe12d (patch) | |
tree | 14bffd3b0d80afea277324cb69047c767678b69e /vim/after/ftplugin/php.vim | |
parent | Merge branch 'release/v3.3.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-468b225f50107d192d69bde191a554395b2fe12d.tar.gz dotfiles-468b225f50107d192d69bde191a554395b2fe12d.zip |
Merge branch 'release/v3.4.0'v3.4.0
* release/v3.4.0:
Bump VERSION
Make <LocalLeader>f to toggle HTML/PHP
Diffstat (limited to 'vim/after/ftplugin/php.vim')
-rw-r--r-- | vim/after/ftplugin/php.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/after/ftplugin/php.vim b/vim/after/ftplugin/php.vim index 688166ba..ee0ce5c8 100644 --- a/vim/after/ftplugin/php.vim +++ b/vim/after/ftplugin/php.vim @@ -16,3 +16,8 @@ let b:undo_ftplugin .= '|setlocal keywordprg<' if exists('g:no_plugin_maps') || exists('g:no_php_maps') finish endif + +" Switch to HTML filetype for templated PHP +nnoremap <buffer> <LocalLeader>f + \ :<C-U>setlocal filetype=html<CR> +let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>f' |