diff options
Diffstat (limited to 'vim/ftplugin')
-rw-r--r-- | vim/ftplugin/textarea.vim | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/vim/ftplugin/textarea.vim b/vim/ftplugin/textarea.vim index 5cdb2bba..4db97b58 100644 --- a/vim/ftplugin/textarea.vim +++ b/vim/ftplugin/textarea.vim @@ -1,13 +1,12 @@ +" Set mail message as an alternative filetype +if !exists('b:alternate_filetypes') + let b:alternate_filetypes = [&filetype, 'mail'] +endif + " Stop here if the user doesn't want ftplugin mappings if exists('no_plugin_maps') || exists('no_textarea_maps') finish endif -" Local mapping to switch to mail filetype, just because that's very often the -" contents of text areas I edit using TextEditorAnywhere -nnoremap <buffer> <LocalLeader>f - \ :<C-U>setlocal filetype=mail<CR> -let b:undo_ftplugin = 'nunmap <buffer> <LocalLeader>f' - " #s expands to the #signature tag used in Cerb inoreabbrev #s #signature |