add 0/$ for sol/eol motions
This commit is contained in:
1 parent
05f745d3f2
commit
56f7fa7127
3 files changed
+13
-1
No files matched your search
@@ -62,6 +62,8 @@ public:
|
||||
FORWARD_ON_TO_CHAR,
|
||||
BACK_UP_TO_CHAR,
|
||||
BACK_ON_TO_CHAR,
|
||||
START_OF_LINE,
|
||||
END_OF_LINE,
|
||||
|
||||
/* These motions aren't command-mode sequences but are used
|
||||
* internally. */
|
||||
|
||||
@@ -13,6 +13,8 @@ void DefaultCommandMap::build()
|
||||
motion_map->add("f", Command::Motion::FORWARD_ON_TO_CHAR, nullptr, true);
|
||||
motion_map->add("T", Command::Motion::BACK_UP_TO_CHAR, nullptr, true);
|
||||
motion_map->add("F", Command::Motion::BACK_ON_TO_CHAR, nullptr, true);
|
||||
motion_map->add("0", Command::Motion::START_OF_LINE, nullptr, false);
|
||||
motion_map->add("$", Command::Motion::END_OF_LINE, nullptr, false);
|
||||
|
||||
dcm->add("$", Command::GO_END_OF_LINE, nullptr, false);
|
||||
dcm->add("0", Command::GO_START_OF_LINE, nullptr, false);
|
||||
|
||||
Reference in new issue
Block a user