mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00:00
Ex mode: use getexline() instead of getexmodeline()
This changes Ex mode (Q, -e) to work like Vim's "improved Ex mode" (gQ, -E). That brings some small behavior differences, but should not impact most Ex scripts (unless, for example, they depend on mappings being disabled--but that can be solved for -e by skipping user config). Before this change: * the screen test hangs. After this change: * Q acts like gQ. * -e/-es differs from -E/-Es only in its treatment of stdin. This moves towards potentially removing getexmodeline(). (HINT: That does NOT mean "removing Ex mode", it means removing the Vi-compatible Ex mode, which differs from Vim's "improved Ex mode" only in some minor details (e.g. mappings are disabled).) ref #1089 :-)~
This commit is contained in:
@@ -872,7 +872,7 @@ static void command_line_scan(mparm_T *parmp)
|
||||
exmode_active = EXMODE_NORMAL;
|
||||
break;
|
||||
}
|
||||
case 'E': { // "-E" Improved Ex mode
|
||||
case 'E': { // "-E" Ex mode
|
||||
exmode_active = EXMODE_VIM;
|
||||
break;
|
||||
}
|
||||
@@ -1896,8 +1896,8 @@ static void usage(void)
|
||||
mch_msg("\n");
|
||||
mch_msg(_(" -b Binary mode\n"));
|
||||
mch_msg(_(" -d Diff mode\n"));
|
||||
mch_msg(_(" -e, -E Ex mode, Improved Ex mode\n"));
|
||||
mch_msg(_(" -es Silent (batch) mode\n"));
|
||||
mch_msg(_(" -e, -E Ex mode\n"));
|
||||
mch_msg(_(" -es, -Es Silent (batch) mode\n"));
|
||||
mch_msg(_(" -h, --help Print this help message\n"));
|
||||
mch_msg(_(" -i <shada> Use this shada file\n"));
|
||||
mch_msg(_(" -m Modifications (writing files) not allowed\n"));
|
||||
|
Reference in New Issue
Block a user