Adding new :command

From Vifm Wiki
Jump to: navigation, search

Adding a command[edit]

  1. Add it to commands.c.
  2. Think about command id (in commands_completion.h), command completion and whether this command should be whole-line kind of command.
  3. Add it to vifm.1 (don't forget to update modification date).
  4. Add it to data/vim/doc/app/vifm-app.txt (don't forget to update modification date).
  5. Regenerate tags.c (run make).
  6. Add it to data/vim/syntax/vifm.vim (don't forget to update modification date).
  7. Remove from the TODO file.
  8. Add to the ChangeLog file.

Map-command notes[edit]

  1. Consider the following variants :X[un|nore]map.
  2. Think whether :[un|nore]map or :[un|nore]map! commands should affect :Xmap.