vim: se fdl=3:
Maintainer: harriott.
Beginnings of a filetype plugin for CliFM configuration files.
When I use vim
to look at configuration files, I like them to be at least nicely syntax highlighted, so I've created this tiny plugin to get things going, defining vim
filetype clifm
.
I install this in pack/.../opt/
, then packadd vim-clifm
somewhere in my vimrc
.
(You can also just place the ftplugin
& syntax
files individually.)
If you're using scrooloose's nerdcommenter
, include this in your vimrc
,
let g:NERDCustomDelimiters = { 'clifm': { 'left': '#' }, }
Note: from CliFM v1.6.1
upwards you can ignore this part.
Configuration files were *.cfm
, which is detected in filetype.vim as filetype cf
, managed by cf.vim (for ColdFusion Markup Language), which you wouldn't want.
So if you're still at this version of CliFM
, you can, in your vimrc
,
let g:detect_cfm_as_clifm = 1
which overrides filetype.vim
, setting filetype clifm
for configuration files named *.cfm
.