Skip to content

Vim syntax highlighting for the lf config. file (lfrc)

License

Notifications You must be signed in to change notification settings

andis-sprinkis/lf-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lf-vim

Vim syntax highlighting for the lf configuration file (lfrc).

Installation

  • Vundle:

    Plugin 'andis-sprinkis/lf-vim'
  • vim-plug:

    Plug 'andis-sprinkis/lf-vim'
  • lazy.nvim:

    { 'andis-sprinkis/lf-vim', event = { 'BufReadPre lfrc' } }
  • No plugin manager:

    Copy all of the directories in this repository to your ~/.vim/ directory (or to ${XDG_DATA_HOME:-~/.local/share}/nvim/plugged for Neovim users).

Shell syntax

For highlighting the shell commands this plugin uses the Vimscript syntax include pattern syntax/sh.vim (the sh, ksh, bash preset included in Vim).

It can be changed using the variables:

Setting Variable
The global setting g:lf_shell_syntax
A buffer-local setting b:lf_shell_syntax

For example:

" Vimscript
let g:lf_shell_syntax = "syntax/dosbatch.vim"
let b:lf_shell_syntax = "syntax/zsh.vim"
" Lua (Neovim)
lua vim.g.lf_shell_syntax = "syntax/dosbatch.vim"
lua vim.b.lf_shell_syntax = "syntax/zsh.vim"

See the $VIMRUNTIME/syntax directory for the available syntax options (:echo $VIMRUNTIME).

Screenshots

screenshotLf

screenshotShell

Colorscheme used for these screenshots: badwolf

About

Vim syntax highlighting for the lf config. file (lfrc)

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •