annotate src/proto/map.pro @ 20506:aee0b72ca6d6 v8.2.0807

patch 8.2.0807: cannot easily restore a mapping Commit: https://github.com/vim/vim/commit/4c9243f9fb708c9010867d3cc8e928f36b58509a Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 22 13:10:44 2020 +0200 patch 8.2.0807: cannot easily restore a mapping Problem: Cannot easily restore a mapping. Solution: Add mapset().
author Bram Moolenaar <Bram@vim.org>
date Fri, 22 May 2020 13:15:04 +0200
parents ec4248c4b92c
children 634aed775408
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17576
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 /* map.c */
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 mapblock_T *get_maphash_list(int state, int c);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 mapblock_T *get_buf_maphash_list(int state, int c);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 int is_maphash_valid(void);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 int do_map(int maptype, char_u *arg, int mode, int abbrev);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 void map_clear_int(buf_T *buf, int mode, int local, int abbr);
17946
ec4248c4b92c patch 8.1.1969: popup window filter is used in all modes
Bram Moolenaar <Bram@vim.org>
parents: 17940
diff changeset
7 int mode_str2flags(char_u *modechars);
17576
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 int map_to_exists(char_u *str, char_u *modechars, int abbr);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 int map_to_exists_mode(char_u *rhs, int mode, int abbr);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 char_u *set_context_in_map_cmd(expand_T *xp, char_u *cmd, char_u *arg, int forceit, int isabbrev, int isunmap, cmdidx_T cmdidx);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 int ExpandMappings(regmatch_T *regmatch, int *num_file, char_u ***file);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 int check_abbr(int c, char_u *ptr, int col, int mincol);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 char_u *eval_map_expr(char_u *str, int c);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 char_u *vim_strsave_escape_csi(char_u *p);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 void vim_unescape_csi(char_u *p);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 int makemap(FILE *fd, buf_T *buf);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 int put_escstr(FILE *fd, char_u *strstart, int what);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 void check_map_keycodes(void);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 char_u *check_map(char_u *keys, int mode, int exact, int ign_mod, int abbr, mapblock_T **mp_ptr, int *local_ptr);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 void get_maparg(typval_T *argvars, typval_T *rettv, int exact);
20506
aee0b72ca6d6 patch 8.2.0807: cannot easily restore a mapping
Bram Moolenaar <Bram@vim.org>
parents: 17946
diff changeset
21 void f_mapset(typval_T *argvars, typval_T *rettv);
17576
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 void init_mappings(void);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 void add_map(char_u *map, int mode);
17940
079e10a49ea1 patch 8.1.1966: some code in options.c fits better elsewhere
Bram Moolenaar <Bram@vim.org>
parents: 17576
diff changeset
24 int langmap_adjust_mb(int c);
079e10a49ea1 patch 8.1.1966: some code in options.c fits better elsewhere
Bram Moolenaar <Bram@vim.org>
parents: 17576
diff changeset
25 void langmap_init(void);
079e10a49ea1 patch 8.1.1966: some code in options.c fits better elsewhere
Bram Moolenaar <Bram@vim.org>
parents: 17576
diff changeset
26 void langmap_set(void);
17576
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27 void ex_abbreviate(exarg_T *eap);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 void ex_map(exarg_T *eap);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29 void ex_unmap(exarg_T *eap);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30 void ex_mapclear(exarg_T *eap);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31 void ex_abclear(exarg_T *eap);
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32 /* vim: set ft=c : */