Adding new :command
Jump to navigation
Jump to search
Adding a command[edit]
- Add it to
src/cmd_handlers.c - Think about command id (in
cmd_completion.h), its completion and whether this command should be whole-line kind of command. - Add it to
data/man/vifm.1(don't forget to update modification date). - Add it to
data/vim/doc/app/vifm-app.txt(don't forget to update modification date). - Regenerate
tags.cby runningmake. - add to
tests/test-data/syntax-highlight/syntax.vifm. - add it to
data/vim/syntax/vifm.vim(don't forget to update modification date). - Running
scripts/check-syntax-changesshould show changes in highlighting for new lines. - Remove from the
TODOfile. - Add to the
ChangeLogfile. - Add unit tests.
Map-command notes[edit]
- Consider the following variants
:X[un|nore]map. - Think whether
:[un|nore]mapor:[un|nore]map!commands should affect:Xmap.