State your commandments and run them from a menu.
Install aonemd/decalogue.vim
using a plugin manger such as:
vim-plug,
NeoBundle,
Vundle, or
Pathogen.
- 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
andDecalogueSilent
. They can be used through key maps:- run commands in the foreground using:
<leader>dc
- run commands in the background (silently) using:
<leader>ds
- run commands in the foreground using:
decalogue.vim
also defines a general Vim command to run anything in silently:and can be triggered through the key mapDecalogueRunSilent echo "hello world"
<leader>dr
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'
See LICENSE.