Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | /* edit.c */ |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 2 | int edit(int cmdchar, int startln, long count); |
Bram Moolenaar | 7591bb3 | 2019-03-30 13:53:47 +0100 | [diff] [blame] | 3 | int ins_need_undo_get(void); |
| 4 | void ins_redraw(int ready); |
Bram Moolenaar | fc4ea2a | 2019-11-26 19:33:22 +0100 | [diff] [blame] | 5 | int decodeModifyOtherKeys(int c); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 6 | void edit_putchar(int c, int highlight); |
Bram Moolenaar | 077cc7a | 2020-09-04 16:35:35 +0200 | [diff] [blame] | 7 | char_u *buf_prompt_text(buf_T* buf); |
Bram Moolenaar | f273245 | 2018-06-03 14:47:35 +0200 | [diff] [blame] | 8 | char_u *prompt_text(void); |
| 9 | int prompt_curpos_editable(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 10 | void edit_unputchar(void); |
| 11 | void display_dollar(colnr_T col); |
Bram Moolenaar | b20b9e1 | 2019-09-21 20:48:04 +0200 | [diff] [blame] | 12 | void undisplay_dollar(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 13 | void truncate_spaces(char_u *line); |
| 14 | void backspace_until_column(int col); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 15 | int get_literal(void); |
| 16 | void insertchar(int c, int flags, int second_indent); |
Bram Moolenaar | 7591bb3 | 2019-03-30 13:53:47 +0100 | [diff] [blame] | 17 | void start_arrow(pos_T *end_insert_pos); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 18 | int stop_arrow(void); |
| 19 | void set_last_insert(int c); |
| 20 | void free_last_insert(void); |
| 21 | char_u *add_char2buf(int c, char_u *s); |
| 22 | void beginline(int flags); |
| 23 | int oneright(void); |
| 24 | int oneleft(void); |
| 25 | int cursor_up(long n, int upd_topline); |
| 26 | int cursor_down(long n, int upd_topline); |
| 27 | int stuff_inserted(int c, long count, int no_esc); |
| 28 | char_u *get_last_insert(void); |
| 29 | char_u *get_last_insert_save(void); |
| 30 | void replace_push(int c); |
| 31 | int replace_push_mb(char_u *p); |
Bram Moolenaar | 14c01f8 | 2019-10-09 22:53:08 +0200 | [diff] [blame] | 32 | void replace_join(int off); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 33 | int hkmap(int c); |
Bram Moolenaar | ec2da36 | 2017-01-21 20:04:22 +0100 | [diff] [blame] | 34 | int bracketed_paste(paste_mode_T mode, int drop, garray_T *gap); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 35 | void ins_scroll(void); |
| 36 | void ins_horscroll(void); |
Bram Moolenaar | 7591bb3 | 2019-03-30 13:53:47 +0100 | [diff] [blame] | 37 | int ins_eol(int c); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 38 | int ins_copychar(linenr_T lnum); |
Bram Moolenaar | f951416 | 2018-11-22 03:08:29 +0100 | [diff] [blame] | 39 | colnr_T get_nolist_virtcol(void); |
Bram Moolenaar | b20b9e1 | 2019-09-21 20:48:04 +0200 | [diff] [blame] | 40 | int get_can_cindent(void); |
| 41 | void set_can_cindent(int val); |
Bram Moolenaar | 7591bb3 | 2019-03-30 13:53:47 +0100 | [diff] [blame] | 42 | int ins_apply_autocmds(event_T event); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 43 | /* vim: set ft=c : */ |