1
I'm using a workaround on this topic. I have a function in my library plugin where I register all the filetypes I've encountered that relates to text, IOW they are non-programming filetypes.
" Function: lh#ft#is_text(...) {{{3
function! lh#ft#is_text(...)
let ft = a:0 == 0 ? &ft : (a:1)
return ft =~ '^$\|text\|latex\|tex\|html\|docbk\|help\|mail\...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
filetype × 151autocmd × 32
vimrc × 23
syntax-highlighting × 16
indentation × 11
vimscript × 9
neovim × 8
key-bindings × 7
plugin-system × 7
filetype-tex × 6
syntax × 5
filetype-markdown × 4
command-line × 3
buffers × 3
folding × 3
filetype-python × 3
binary-file × 3
ftplugin × 3
gvim × 2
autocompletion × 2
formatting × 2
netrw × 2
statusline × 2
comments × 2
wrapping × 2