feat(defaults): map Y to y$ #13268

rationale:
- consistent with D and Y
- long recommended by Vim's own ":help Y"

close #13268
close #416
ref #6289
This commit is contained in:
Matthieu Coudron
2021-08-16 06:24:59 +02:00
committed by GitHub
parent aa07d06bf4
commit 5a111c1b02
8 changed files with 26 additions and 6 deletions

View File

@@ -397,6 +397,11 @@ void init_normal_cmds(void)
nv_max_linear = i - 1;
}
void init_default_mappings(void)
{
add_map((char_u *)"Y y$", NORMAL | VISUAL);
}
/*
* Search for a command in the commands table.
* Returns -1 for invalid command.