Skip to content

filetype plugin for CliFM's configuration files

Notifications You must be signed in to change notification settings

harriott/vim-clifm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim: se fdl=3:

Maintainer: harriott.

vim-clifm

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.

installation

I install this in pack/.../opt/, then packadd vim-clifm somewhere in my vimrc.

(You can also just place the ftplugin & syntax files individually.)

The NERD Commenter

If you're using scrooloose's nerdcommenter, include this in your vimrc,

let g:NERDCustomDelimiters = { 'clifm': { 'left': '#' }, }

before CliFM v1.6.1

Note: from CliFM v1.6.1 upwards you can ignore this part.

filetype detection fix

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.

About

filetype plugin for CliFM's configuration files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published