Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 968 Bytes

VIM.md

File metadata and controls

24 lines (18 loc) · 968 Bytes

VIM

Puppet functions

Vim plugin file - you can download it into your .vim/plugin directory:

mkdir -p $HOME/.vim/plugin
wget -O $HOME/.vim/plugin/puppet_helpers.vim \
  https://raw.githubusercontent.com/adidenko/dotfiles/master/.vim/plugin/puppet_helpers.vim
  • Parameters description In VISUAL mode select class parameters, press CTRL+P. Then in INSERT mode you can paste parameters description template by pressing CTRL+r and then p (or "pp in normal mode).

    ASCIINEMA DEMO

  • Parameters validation In VISUAL mode select class parameters (you can include class name in selection if you want to use Qualified Variable Names), press CTRL+O. Then in INSERT mode you can paste parameters validation functions pressing CTRL+r and then o (or "op in normal mode).

    ASCIINEMA DEMO