summaryrefslogtreecommitdiff
path: root/src/ex_cmds.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-18 17:45:38 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-18 17:45:38 +0200
commita494f56f885876c98a276f7acfa386bfbb344680 (patch)
tree64fdbf4180e8b761bb267fbaa5d3b63f7a49f476 /src/ex_cmds.h
parent2695de63e370235c4d3d73e3fe07cc1006de3460 (diff)
downloadvim-git-a494f56f885876c98a276f7acfa386bfbb344680.tar.gz
patch 8.2.0593: finding a user command is not optimalv8.2.0593
Problem: Finding a user command is not optimal. Solution: Start further down in the list of commands.
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r--src/ex_cmds.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index 2e35c8d5f..0c158e1bd 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -1775,7 +1775,7 @@ EXCMD(CMD_z, "z", ex_z,
EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_FLAGS|EX_TRLBAR|EX_CMDWIN,
ADDR_LINES),
-// commands that don't start with a lowercase letter
+// commands that don't start with a letter
EXCMD(CMD_bang, "!", ex_bang,
EX_RANGE|EX_WHOLEFOLD|EX_BANG|EX_FILES|EX_CMDWIN,
ADDR_LINES),
@@ -1800,6 +1800,11 @@ EXCMD(CMD_rshift, ">", ex_operators,
EXCMD(CMD_at, "@", ex_at,
EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_TRLBAR|EX_CMDWIN,
ADDR_LINES),
+EXCMD(CMD_tilde, "~", do_sub,
+ EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_CMDWIN|EX_MODIFY,
+ ADDR_LINES),
+
+// commands that start with an uppercase letter
EXCMD(CMD_Next, "Next", ex_previous,
EX_EXTRA|EX_RANGE|EX_COUNT|EX_BANG|EX_CMDARG|EX_ARGOPT|EX_TRLBAR,
ADDR_OTHER),
@@ -1809,9 +1814,6 @@ EXCMD(CMD_Print, "Print", ex_print,
EXCMD(CMD_X, "X", ex_X,
EX_TRLBAR,
ADDR_NONE),
-EXCMD(CMD_tilde, "~", do_sub,
- EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_CMDWIN|EX_MODIFY,
- ADDR_LINES),
#undef EXCMD