Code Monkey home page Code Monkey logo

salt-vim's Introduction

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:

You will also need to specify the following settings in your ~/.vimrc:

set nocompatible
filetype plugin indent on

Note: It's possible you may be presented with an error stating something similar to:

"E319: Sorry, the command is not available in this version: filetype plugin inden t on"

If you get this, specify the following settings in your ~/.vimrc instead:

set nocompatible
set tabstop=2
set shiftwidth=2
set expandtab

Alternately, 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

salt-vim's People

Contributors

whiteinge avatar thatch45 avatar cwood avatar terminalmage avatar tony avatar ingwa avatar

Watchers

Matthew Williams avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.