https://github.com/andis-sprinkis/lf-vim
Vim syntax highlighting for the lf config. file (lfrc) (Now part of Vim/Neovim)
https://github.com/andis-sprinkis/lf-vim
lf lfrc neovim nvim plugin syntax-highlighting vim
Last synced: about 1 month ago
JSON representation
Vim syntax highlighting for the lf config. file (lfrc) (Now part of Vim/Neovim)
- Host: GitHub
- URL: https://github.com/andis-sprinkis/lf-vim
- Owner: andis-sprinkis
- License: gpl-2.0
- Created: 2019-06-02T04:26:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-28T18:16:17.000Z (about 1 month ago)
- Last Synced: 2025-03-28T19:23:46.219Z (about 1 month ago)
- Topics: lf, lfrc, neovim, nvim, plugin, syntax-highlighting, vim
- Language: Vim Script
- Homepage:
- Size: 56.6 KB
- Stars: 22
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lf-vim
Vim syntax highlighting for the [lf](https://github.com/gokcehan/lf) configuration file (`lfrc`).
## Now part of Vim and Neovim
**This plugin has been merged in Vim (9.1.0778 and newer) and Neovim (0.11 and newer), so it should work out of the box with the recent versions of these programs.**
This GitHub repository tracks the latest development version of the plugin. You can raise the issues and pull requests here, for the changes to be later submitted to the Vim repository.
## Installation
- Vundle:
```vim
Plugin 'andis-sprinkis/lf-vim'
```- vim-plug:
```vim
Plug 'andis-sprinkis/lf-vim'
```- lazy.nvim:
```lua
{ '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:
```vim
" 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


Colorscheme used for these screenshots: [badwolf](https://github.com/sjl/badwolf "badwolf on github")