aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/html.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/ftplugin/html.vim')
-rw-r--r--vim/after/ftplugin/html.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/after/ftplugin/html.vim b/vim/after/ftplugin/html.vim
index 5f7155bc..c4f2e35e 100644
--- a/vim/after/ftplugin/html.vim
+++ b/vim/after/ftplugin/html.vim
@@ -33,3 +33,8 @@ endif
nnoremap <buffer> <LocalLeader>r
\ :<C-U>call html#UrlLink()<CR>
let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>r'
+
+" Switch to PHP filetype for templated PHP
+nnoremap <buffer> <LocalLeader>f
+ \ :<C-U>setlocal filetype=php<CR>
+let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>f'