Skip to content

roxit/salt-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vim files for working on Salt files

Installing

cp -r ftdetect ftplugin syntax  ~/.vim/

Or (preferably) use one of the popular tools to (sanely) manage plugins:

Files can be copied into any other directory where vim looks for its runtime files, like /etc/vim/.

Command :set runtimepath will show all such paths. Read :help runtimepath for more info.

Files

syntax/sls.vim
syntax file for editing yaml + jinja sls files.
ftplugin/sls.vim

Filetype plugin with good default config for SLS files. Configures suitable wrapping, folding and indenting. Added features:

  • All tabs are converted to spaces.
  • Tab key indents by 2 spaces.
  • Commets will be hardwrapped (with added leading #) This is done by setting formatoptions.
  • <Space> key will try to fold/unfold an area.
  • Visually selected block might be indented and unindented by keys '<' and '>', keeping the visual selection selected.
  • Improved indenting of yaml expressions with custom indenting function/
  • Visual warning for non-ascii characters (which are not allowed in yaml)
ftdetect/sls.vim
Detect SLS file by postfix .sls

Other VIM plugins you might find interesting

About

Vim files for editing Salt files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%