Git Product home page Git Product logo

vim-formula's Introduction

vim-formula

Travis CI Build Status Semantic Release

Formula to set up and configure vim.

See the full SaltStack Formulas installation and usage instructions.

If you are interested in writing or contributing to formulas, please pay attention to the Writing Formula Section.

If you want to use this formula, please pay attention to the FORMULA file and/or git tag, which contains the currently released version. This formula is versioned according to Semantic Versioning.

See Formula Versioning Section for more details.

Commit message formatting is significant!!

Please see How to contribute for more details.

Installs and configures the vim package.

Add the global plugins for editing sls files

Add nerdtree plugin globally for vim

Add pyflakes detection globaly for salt (may require installing gvim on some platforms)

Ensure vim is purged.

Linux testing is done with kitchen-salt.

  • Ruby
  • Docker
$ gem install bundler
$ bundle install
$ bin/kitchen test [platform]

Where [platform] is the platform name defined in kitchen.yml, e.g. debian-9-2019-2-py3.

Creates the docker instance and runs the vim main state, ready for testing.

Runs the inspec tests on the actual instance.

Removes the docker instance.

Runs all of the stages above in one go: i.e. destroy + converge + verify + destroy.

Gives you SSH access to the instance for manual testing.

vim-formula's People

Contributors

aboe76 avatar alcarithemad avatar alinefr avatar azulinho avatar baby-gnu avatar boileaum avatar codekoala avatar dafyddj avatar devster31 avatar evasdk avatar frots avatar gravyboat avatar imran1008 avatar lesar avatar myii avatar n-rodriguez avatar nmadhok avatar noelmcloughlin avatar puneetk avatar sd-rpr-test avatar semantic-release-bot avatar stasjok avatar stp-ip avatar supertux88 avatar techhat avatar thatch45 avatar tibold avatar utahdave avatar whiteinge avatar wwentland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-formula's Issues

The formula is broken on Debian

Hi! When running the vim state, this error happens:

          ID: /etc/vim/vimrc
    Function: file.managed
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1843, in call
                  **cdata['kwargs'])
                File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1795, in wrapper
                  return f(*args, **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/states/file.py", line 2313, in managed
                  **kwargs
                File "/usr/lib/python2.7/dist-packages/salt/modules/file.py", line 4407, in check_managed_changes
                  **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/modules/file.py", line 3901, in get_managed
                  **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/utils/templates.py", line 167, in render_tmpl
                  output = render_str(tmplstr, context, tmplpath)
                File "/usr/lib/python2.7/dist-packages/salt/utils/templates.py", line 431, in render_jinja_tmpl
                  buf=tmplstr)
              SaltRenderError: Jinja variable 'str object' has no attribute 'get'
     Started: 01:49:39.019781
    Duration: 305.084 ms
     Changes:   

make vimrc management optional

With the latest pull request vim formula will manage vimrc

can this be optional: something like managed: True or False in map.jijnja

Wrong syntax in /etc/vim/syntax/sls.vim

After a sudo salt '*' state.apply vim.salt tested on Ubuntu 16.04, running vim throws:

$ vi top.sl
"top.sls" 182 lines, 3879 characters
Error detected while processing /etc/vim/syntax/sls.vim:
line   26:
E15: Invalid expression: 
E15: Invalid expression: { 
line   27:
E10: \ should be followed by /, ? or &
line   28:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue

vim.editor doesn't work on debian

vim.editor doesn't work on debian as /usr/bin/vim is already an alias to /etc/alternatives/vim
which goes by default to /usr/bin/vim.basic

Thanks for fixing that.

Can't install formula on freeBSD


      ID: /etc/vimrc
Function: file.managed
  Result: False
 Comment: Group root is not available
 Started: 11:27:50.317168
Duration: 1.336 ms
 Changes:   

plugins/indent not enabled by default on Ubuntu 13.04

I had to uncomment

_/usr/share/vim/vimfiles/vimrc:_

if has("autocmd")
  filetype plugin indent on
endif

in order to get vim.salt to work properly on Ubuntu 13.04. I'm not sure if this is specifically an issue that needs a fix, but I thought I'd bring it up for discussion :)

vim.editor not working - possibly incomplete?

I'm new at salt - so I'm not sure if I'm doing something wrong or if the feature simply isn't complete.

When attempting to use vim.editor I get the following error:

Rendering SLS 'base:vim.editor' failed: Jinja variable 'map' is undefined

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.