aboutsummaryrefslogtreecommitdiff
path: root/vim/filetype.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-03-28 15:26:31 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-03-28 15:26:31 +1300
commit80b398502a752dafdbb8187f72e85d8c1f7fc5ae (patch)
tree9ada42a4d274b46fa28af8a277a087ec02f6ffa0 /vim/filetype.vim
parentCorrect short :setf to :setfiletype command (diff)
downloaddotfiles-80b398502a752dafdbb8187f72e85d8c1f7fc5ae.tar.gz
dotfiles-80b398502a752dafdbb8187f72e85d8c1f7fc5ae.zip
Add textarea filetype
This custom filetype is just a hook to hang functionality for TextEditorAnywhere documents under Windows. Most of the time, it's me writing email, or comments that benefit from email formatting, so I've configured <LocalLeader>f to switch to the mail filetype. This switching could probably benefit from a plugin, actually.
Diffstat (limited to 'vim/filetype.vim')
-rw-r--r--vim/filetype.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim
index 8a86ac1d..8a477ecc 100644
--- a/vim/filetype.vim
+++ b/vim/filetype.vim
@@ -384,6 +384,10 @@ augroup filetypedetect
autocmd BufNewFile,BufRead
\ ?*.ti
\ setfiletype terminfo
+ " TextEditorAnywhere text field
+ autocmd BufNewFile,BufRead
+ \ TextEditorAnywhere_??_??_??.txt
+ \ setfiletype textarea
" Tidy config
autocmd BufNewFile,BufRead
\ .tidyrc