tbls/vim-tbls
Dozens B. McCuzzins 7ec9978919 helium 2024-08-03 17:09:10 -06:00
..
ftdetect helium 2024-08-03 17:09:10 -06:00
ftplugin helium 2024-08-03 17:09:10 -06:00
syntax helium 2024-08-03 17:09:10 -06:00
README.md helium 2024-08-03 17:09:10 -06:00

README.md

vim-tbls

syntax, filtetype detection, folding, and navigation for tbls files

installing

  1. find out where your syntax and ftdetect files are. e.g. $HOME/.config/nvim/ or $HOME/.vim/.

  2. copy syntax/tbls.vim and ftdetect/tbls.vim to the appropriate folders

after installing, any .tbl file should be detected.

to use syntax for, e.g. a .txt file, in vim do :set filetype=tbls

using

the syntax defines a foldable table block as the region between a :: header and a blank line. all folding commands should work. (e.g. zj and zk to jump to next fold. see :help fold.) the plugin file sets the foldmethod to syntax, so your tables should start out folded if folding in enabled.

the plugin file also maps ]] and [[ (next section and previous section, respectively) to jump between table headers.