Skip to content

State your commandments and run them from a menu from inside Vim

License

Notifications You must be signed in to change notification settings

aonemd/decalogue.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

decalogue.vim

State your commandments and run them from a menu.

Installation

Install aonemd/decalogue.vim using a plugin manger such as: vim-plug, NeoBundle, Vundle, or Pathogen.

Usage

  • Define your commandments in your ~/.vimrc:
      let g:decalogue_commandments = {
            \ 'Git status': '!git status',          "shell command
            \ 'Git push': '!git push origin HEAD',
            \ 'Rust test': 'term cargo t',          "vim command
            \ 'Rust check': 'term cargo c',
            \ }
  • decalogue.vim defines two Vim commands: Decalogue and DecalogueSilent. They can be used through key maps:
    • run commands in the foreground using: <leader>dc
    • run commands in the background (silently) using: <leader>ds
  • decalogue.vim also defines a general Vim command to run anything in silently:
    DecalogueRunSilent echo "hello world"
    and can be triggered through the key map <leader>dr

Customization

All commands can be set to customized key maps:

  • Decalogue command through:
    let g:decalogue_command = 'key'
    
  • DecalogueSilent command through:
    let g:decalogue_command_silent = 'key'
    
  • DecalogueRunSilent command through:
    let g:decalogue_command_run_silent = 'key'
    

License

See LICENSE.

About

State your commandments and run them from a menu from inside Vim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published