blob: 5caa85921484e580f3733cc0946a85a8eccf35a5 [file] [log] [blame]
Bram Moolenaarb66bab32019-08-01 14:28:24 +02001/* map.c */
2mapblock_T *get_maphash_list(int state, int c);
3mapblock_T *get_buf_maphash_list(int state, int c);
4int is_maphash_valid(void);
5int do_map(int maptype, char_u *arg, int mode, int abbrev);
6void map_clear_int(buf_T *buf, int mode, int local, int abbr);
Bram Moolenaar581ba392019-09-03 22:08:33 +02007int mode_str2flags(char_u *modechars);
Bram Moolenaarb66bab32019-08-01 14:28:24 +02008int map_to_exists(char_u *str, char_u *modechars, int abbr);
9int map_to_exists_mode(char_u *rhs, int mode, int abbr);
10char_u *set_context_in_map_cmd(expand_T *xp, char_u *cmd, char_u *arg, int forceit, int isabbrev, int isunmap, cmdidx_T cmdidx);
Ernie Rael09661202022-04-25 14:40:44 +010011int ExpandMappings(char_u *pat, regmatch_T *regmatch, int *numMatches, char_u ***matches);
Bram Moolenaarb66bab32019-08-01 14:28:24 +020012int check_abbr(int c, char_u *ptr, int col, int mincol);
Bram Moolenaar19db9e62022-01-11 11:58:19 +000013char_u *eval_map_expr(mapblock_T *mp, int c);
Bram Moolenaarb66bab32019-08-01 14:28:24 +020014char_u *vim_strsave_escape_csi(char_u *p);
15void vim_unescape_csi(char_u *p);
16int makemap(FILE *fd, buf_T *buf);
17int put_escstr(FILE *fd, char_u *strstart, int what);
18void check_map_keycodes(void);
19char_u *check_map(char_u *keys, int mode, int exact, int ign_mod, int abbr, mapblock_T **mp_ptr, int *local_ptr);
Ernie Rael09661202022-04-25 14:40:44 +010020void f_maplist(typval_T *argvars, typval_T *rettv);
Yegappan Lakshmanan4a155042021-07-30 21:32:45 +020021void f_maparg(typval_T *argvars, typval_T *rettv);
22void f_mapcheck(typval_T *argvars, typval_T *rettv);
Bram Moolenaar4c9243f2020-05-22 13:10:44 +020023void f_mapset(typval_T *argvars, typval_T *rettv);
Bram Moolenaarb66bab32019-08-01 14:28:24 +020024void init_mappings(void);
zeertzjq44068e92022-06-16 11:14:55 +010025void add_map(char_u *map, int mode, int nore);
Bram Moolenaare677df82019-09-02 22:31:11 +020026int langmap_adjust_mb(int c);
27void langmap_init(void);
28void langmap_set(void);
Bram Moolenaarb66bab32019-08-01 14:28:24 +020029void ex_abbreviate(exarg_T *eap);
30void ex_map(exarg_T *eap);
31void ex_unmap(exarg_T *eap);
32void ex_mapclear(exarg_T *eap);
33void ex_abclear(exarg_T *eap);
34/* vim: set ft=c : */