Difference between revisions of "Adding new :command"
Jump to navigation
Jump to search
(Initial version of the page) |
(→Adding a command: Update name of cmd_completion.h) |
||
Line 2: | Line 2: | ||
# Add it to <code>commands.c</code>. | # Add it to <code>commands.c</code>. | ||
− | # Think about command id (in <code> | + | # Think about command id (in <code>cmd_completion.h</code>), command completion and whether this command should be whole-line kind of command. |
# Add it to <code>vifm.1</code> (don't forget to update modification date). | # Add it to <code>vifm.1</code> (don't forget to update modification date). | ||
# Add it to <code>data/vim/doc/app/vifm-app.txt</code> (don't forget to update modification date). | # Add it to <code>data/vim/doc/app/vifm-app.txt</code> (don't forget to update modification date). |
Revision as of 10:53, 20 August 2017
Adding a command
- Add it to
commands.c
. - Think about command id (in
cmd_completion.h
), command completion and whether this command should be whole-line kind of command. - Add it to
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.c
(runmake
). - Add it to
data/vim/syntax/vifm.vim
(don't forget to update modification date). - Remove from the
TODO
file. - Add to the
ChangeLog
file.
Map-command notes
- Consider the following variants
:X[un|nore]map
. - Think whether
:[un|nore]map
or:[un|nore]map!
commands should affect:Xmap
.