Perhaps I'm not using the right terminology, but I'm struggling to try to find a way to add some key bindings for use while navigating the command line in vim.
An example would be the following command:
:e /really/long/path/that/I/dont/want/to/reenter
and realizing that I actually want to :tabe
instead of tab, or entering a long regex pattern and discovering a typo earlier in it.
Obviously things like ^
, 0
or b
would just be entered as characters, so what I'd like to do is add a few emacs bindings for command mappings such as <C-a>
to move to the beginning of the line, <C-e>
to move to the end of the line and some others to move between words (at least those that don't conflict with other useful bindings).
Is this possible?