From b6d06394afdf314540399c68b9540c0715ada8d6 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 19 Dec 2018 11:45:14 +1300 Subject: Make f to toggle HTML/PHP I'm thinking I might make this a generic mapping for "alternate filetype". --- vim/after/ftplugin/html.vim | 5 +++++ vim/after/ftplugin/php.vim | 5 +++++ 2 files changed, 10 insertions(+) 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 r \ :call html#UrlLink() let b:undo_ftplugin .= '|nunmap r' + +" Switch to PHP filetype for templated PHP +nnoremap f + \ :setlocal filetype=php +let b:undo_ftplugin .= '|nunmap f' 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 f + \ :setlocal filetype=html +let b:undo_ftplugin .= '|nunmap f' -- cgit v1.2.3 From 420ee7798b9c769cb022d5f00c5c8ea7e4ce46ac Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 19 Dec 2018 11:45:43 +1300 Subject: Bump VERSION --- VERSION | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 2addfdb6..2d48a922 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -tejr dotfiles v3.3.0 -Tue Dec 18 22:11:42 UTC 2018 +tejr dotfiles v3.4.0 +Tue Dec 18 22:45:43 UTC 2018 -- cgit v1.2.3