aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/html.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-19 11:45:14 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-19 11:45:14 +1300
commitb6d06394afdf314540399c68b9540c0715ada8d6 (patch)
tree4e2a93d0ba7909060f53139912f5977616718940 /vim/after/ftplugin/html.vim
parentMerge branch 'release/v3.3.0' into develop (diff)
downloaddotfiles-b6d06394afdf314540399c68b9540c0715ada8d6.tar.gz
dotfiles-b6d06394afdf314540399c68b9540c0715ada8d6.zip
Make <LocalLeader>f to toggle HTML/PHP
I'm thinking I might make this a generic mapping for "alternate filetype".
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'