diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-03-28 15:32:54 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-03-28 15:32:54 +1300 |
commit | 4b72e339c6fe1fee22a81af7388afb73f66a9441 (patch) | |
tree | 28daa82484eee45df673efc633c1ec7cd82be672 /vim/ftplugin/textarea.vim | |
parent | Merge branch 'release/v4.16.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-4b72e339c6fe1fee22a81af7388afb73f66a9441.tar.gz dotfiles-4b72e339c6fe1fee22a81af7388afb73f66a9441.zip |
Merge branch 'release/v4.17.0'v4.17.0
* release/v4.17.0:
Bump VERSION
Add a note with a plugin idea
Add textarea filetype
Correct short :setf to :setfiletype command
Diffstat (limited to 'vim/ftplugin/textarea.vim')
-rw-r--r-- | vim/ftplugin/textarea.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vim/ftplugin/textarea.vim b/vim/ftplugin/textarea.vim new file mode 100644 index 00000000..b5c5ca98 --- /dev/null +++ b/vim/ftplugin/textarea.vim @@ -0,0 +1,10 @@ +" Stop here if the user doesn't want ftplugin mappings +if exists('g:no_plugin_maps') || exists('g:no_textarea_maps') + finish +endif + +" 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' |