*/
/*
- * getchar.c
- *
- * functions related with getting a character from the user/mapping/redo/...
- *
- * manipulations with redo buffer and stuff buffer
- * mappings and abbreviations
+ * getchar.c: Code related to getting a character from the user or a script
+ * file, manipulations with redo buffer and stuff buffer.
*/
#include "vim.h"
keylen = KEYLEN_PART_KEY;
// If no termcode matched, try to include the modifier into the
- // key. This for when modifyOtherKeys is working.
+ // key. This is for when modifyOtherKeys is working.
if (keylen == 0 && !no_reduce_keys)
keylen = check_simplify_modifier(max_mlen + 1);
*/
/*
- * map.c: functions for maps and abbreviations
+ * map.c: Code for mappings and abbreviations.
*/
#include "vim.h"
// Find an entry in the maphash[] list that matches.
// For :unmap we may loop two times: once to try to unmap an entry with
// a matching 'from' part, a second time, if the first fails, to unmap
- // an entry with a matching 'to' part. This was done to allow ":ab foo
- // bar" to be unmapped by typing ":unab foo", where "foo" will be
- // replaced by "bar" because of the abbreviation.
+ // an entry with a matching 'to' part. This was done to allow
+ // ":ab foo bar" to be unmapped by typing ":unab foo", where "foo" will
+ // be replaced by "bar" because of the abbreviation.
for (round = 0; (round == 0 || maptype == 1) && round <= 1
&& !did_it && !got_int; ++round)
{