Go to the documentation of this file.
18 #define IOSIZE (1024 + 1) // file I/O and sprintf buffer size
20 #define MSG_BUF_LEN 480 // length of buffer for small messages
21 #define MSG_BUF_CLEN (MSG_BUF_LEN / 6) // cell length (worst case: utf-8
25 # define _PATHSEPSTR "\\"
27 # define _PATHSEPSTR "/"
31 # define FILETYPE_FILE "filetype.lua filetype.vim"
35 # define FTPLUGIN_FILE "ftplugin.vim"
39 # define INDENT_FILE "indent.vim"
43 # define FTOFF_FILE "ftoff.vim"
47 # define FTPLUGOF_FILE "ftplugof.vim"
51 # define INDOFF_FILE "indoff.vim"
54 #define DFLT_ERRORFILE "errors.err"
56 #ifndef SYS_VIMRC_FILE
57 # define SYS_VIMRC_FILE "$VIM" _PATHSEPSTR "sysinit.vim"
61 # define DFLT_HELPFILE "$VIMRUNTIME" _PATHSEPSTR "doc" _PATHSEPSTR "help.txt"
65 # define SYNTAX_FNAME "$VIMRUNTIME" _PATHSEPSTR "syntax" _PATHSEPSTR "%s.vim"
69 # define EXRC_FILE ".exrc"
73 # define VIMRC_FILE ".nvimrc"
79 } g_stats
INIT(= { 0, 0 });
82 #define NO_SCREEN 2 // no screen updating yet
83 #define NO_BUFFERS 1 // not all buffers loaded yet
91 #define DFLT_COLS 80 // default value for 'columns'
92 #define DFLT_ROWS 24 // default value for 'lines'
104 #if (defined(_MSC_VER) && (_MSC_VER >= 1300)) || defined(__MINGW32__)
105 typedef __int64
off_T;
107 # define vim_lseek lseek64
108 # define vim_fseek fseeko64
109 # define vim_ftell ftello64
111 # define vim_lseek _lseeki64
112 # define vim_fseek _fseeki64
113 # define vim_ftell _ftelli64
118 # define vim_lseek lseek
119 # define vim_ftell ftello
120 # define vim_fseek fseeko
122 # define vim_lseek lseek
123 # define vim_ftell ftell
124 # define vim_fseek(a, b, c) fseek(a, (long)b, c)
150 EXTERN bool cmdline_was_last_drawn
INIT(=
false);
176 #define CONT_ADDING 1 // "normal" or "adding" expansion
177 #define CONT_INTRPT (2 + 4) // a ^X interrupted the current expansion
179 #define CONT_N_ADDS 4 // next ^X<> will add-new or expand-current
180 #define CONT_S_IPOS 8 // next ^X<> will set initial_pos?
182 #define CONT_SOL 16 // pattern includes start of line, just for
184 #define CONT_LOCAL 32 // for ctrl_x_mode 0, ^X^P/^X^N do a local
227 #define globvarht globvardict.dv_hashtab
268 #define PROF_PAUSED 2
269 EXTERN int do_profiling INIT(= PROF_NONE);
327 EXTERN bool may_garbage_collect
INIT(=
false);
328 EXTERN int want_garbage_collect
INIT(=
false);
329 EXTERN int garbage_collect_at_exit
INIT(=
false);
332 #define SID_MODELINE (-1) // when using a modeline
333 #define SID_CMDARG (-2) // for "--cmd" argument
334 #define SID_CARG (-3) // for "-c" argument
335 #define SID_ENV (-4) // for sourcing environment variable
336 #define SID_ERROR (-5) // option was reset because of an error
337 #define SID_NONE (-6) // don't set scriptID
338 #define SID_WINLAYOUT (-7) // changing window size
339 #define SID_LUA (-8) // for Lua scripts/chunks
340 #define SID_API_CLIENT (-9) // for API clients
341 #define SID_STR (-10) // for sourcing a string with no script item
349 EXTERN uint64_t ui_client_channel_id
INIT(= 0);
351 EXTERN bool did_source_packages
INIT(=
false);
384 EXTERN int need_check_timestamps
INIT(=
false);
386 EXTERN int did_check_timestamps
INIT(=
false);
434 #define ONE_WINDOW (firstwin == lastwin)
435 #define FOR_ALL_FRAMES(frp, first_frame) \
436 for ((frp) = first_frame; (frp) != NULL; (frp) = (frp)->fr_next) // NOLINT
440 #define FOR_ALL_TAB_WINDOWS(tp, wp) \
442 FOR_ALL_WINDOWS_IN_TAB(wp, tp)
445 #define FOR_ALL_WINDOWS_IN_TAB(wp, tp) \
446 for (win_T *wp = ((tp) == curtab) \
447 ? firstwin : (tp)->tp_firstwin; wp != NULL; wp = wp->w_next)
467 #define FOR_ALL_TABS(tp) for (tabpage_T *(tp) = first_tabpage; (tp) != NULL; (tp) = (tp)->tp_next)
476 #define FOR_ALL_BUFFERS(buf) \
477 for (buf_T *buf = firstbuf; buf != NULL; buf = buf->b_next)
478 #define FOR_ALL_BUFFERS_BACKWARDS(buf) \
479 for (buf_T *buf = lastbuf; buf != NULL; buf = buf->b_prev)
482 #define FOR_ALL_SIGNS_IN_BUF(buf, sign) \
483 for ((sign) = (buf)->b_signlist; (sign) != NULL; (sign) = (sign)->se_next) // NOLINT
515 EXTERN volatile int full_screen
INIT(=
false);
618 #define DBCS_JPN 932 // japan
619 #define DBCS_JPNU 9932 // euc-jp
620 #define DBCS_KOR 949 // korea
621 #define DBCS_KORU 9949 // euc-kr
622 #define DBCS_CHS 936 // chinese
623 #define DBCS_CHSU 9936 // euc-cn
624 #define DBCS_CHT 950 // taiwan
625 #define DBCS_CHTU 9950 // euc-tw
626 #define DBCS_2BYTE 1 // 2byte-
627 #define DBCS_DEBUG (-1)
653 EXTERN bool pending_end_reg_executing
INIT(=
false);
686 #define SEA_NONE 0 // don't use dialog
687 #define SEA_DIALOG 1 // use dialog when possible
688 #define SEA_QUIT 2 // quit editing the file
689 #define SEA_RECOVER 3 // recover the file
692 EXTERN bool swap_exists_did_quit
INIT(=
false);
698 #if MAXPATHL > IOSIZE
728 EXTERN bool need_highlight_changed
INIT(=
true);
749 EXTERN bool need_start_insertmode
INIT(=
false);
751 #define MODE_MAX_LENGTH 4 // max mode length returned in get_mode(),
804 extern char *default_vim_dir;
805 extern char *default_vimruntime_dir;
806 extern char *default_lib_dir;
807 extern char_u *compiled_user;
808 extern char_u *compiled_sys;
839 #define STL_IN_ICON 1
840 #define STL_IN_TITLE 2
853 #ifdef BACKSLASH_IN_FILENAME
874 EXTERN char e_abort[]
INIT(=
N_(
"E470: Command aborted"));
875 EXTERN char e_afterinit[]
INIT(=
N_(
"E905: Cannot set this option after startup"));
876 EXTERN char e_api_spawn_failed[]
INIT(=
N_(
"E903: Could not spawn API job"));
877 EXTERN char e_argreq[]
INIT(=
N_(
"E471: Argument required"));
878 EXTERN char e_backslash[]
INIT(=
N_(
"E10: \\ should be followed by /, ? or &"));
879 EXTERN char e_cmdwin[]
INIT(=
N_(
"E11: Invalid in command-line window; <CR> executes, CTRL-C quits"));
880 EXTERN char e_curdir[]
INIT(=
N_(
"E12: Command not allowed from exrc/vimrc in current dir or tag search"));
881 EXTERN char e_command_too_recursive[]
INIT(=
N_(
"E169: Command too recursive"));
882 EXTERN char e_endif[]
INIT(=
N_(
"E171: Missing :endif"));
883 EXTERN char e_endtry[]
INIT(=
N_(
"E600: Missing :endtry"));
884 EXTERN char e_endwhile[]
INIT(=
N_(
"E170: Missing :endwhile"));
885 EXTERN char e_endfor[]
INIT(=
N_(
"E170: Missing :endfor"));
886 EXTERN char e_while[]
INIT(=
N_(
"E588: :endwhile without :while"));
887 EXTERN char e_for[]
INIT(=
N_(
"E588: :endfor without :for"));
888 EXTERN char e_exists[]
INIT(=
N_(
"E13: File exists (add ! to override)"));
889 EXTERN char e_failed[]
INIT(=
N_(
"E472: Command failed"));
890 EXTERN char e_internal[]
INIT(=
N_(
"E473: Internal error"));
891 EXTERN char e_intern2[]
INIT(=
N_(
"E685: Internal error: %s"));
893 EXTERN char e_invarg[]
INIT(=
N_(
"E474: Invalid argument"));
894 EXTERN char e_invarg2[]
INIT(=
N_(
"E475: Invalid argument: %s"));
895 EXTERN char e_invargval[]
INIT(=
N_(
"E475: Invalid value for argument %s"));
896 EXTERN char e_invargNval[]
INIT(=
N_(
"E475: Invalid value for argument %s: %s"));
897 EXTERN char e_duparg2[]
INIT(=
N_(
"E983: Duplicate argument: %s"));
898 EXTERN char e_invexpr2[]
INIT(=
N_(
"E15: Invalid expression: %s"));
899 EXTERN char e_invrange[]
INIT(=
N_(
"E16: Invalid range"));
900 EXTERN char e_invcmd[]
INIT(=
N_(
"E476: Invalid command"));
901 EXTERN char e_isadir2[]
INIT(=
N_(
"E17: \"%s\" is a directory"));
902 EXTERN char e_no_spell[]
INIT(=
N_(
"E756: Spell checking is not possible"));
903 EXTERN char e_invchan[]
INIT(=
N_(
"E900: Invalid channel id"));
904 EXTERN char e_invchanjob[]
INIT(=
N_(
"E900: Invalid channel id: not a job"));
905 EXTERN char e_jobtblfull[]
INIT(=
N_(
"E901: Job table is full"));
906 EXTERN char e_jobspawn[]
INIT(=
N_(
"E903: Process failed to start: %s: \"%s\""));
907 EXTERN char e_channotpty[]
INIT(=
N_(
"E904: channel is not a pty"));
908 EXTERN char e_stdiochan2[]
INIT(=
N_(
"E905: Couldn't open stdio channel: %s"));
909 EXTERN char e_invstream[]
INIT(=
N_(
"E906: invalid stream for channel"));
910 EXTERN char e_invstreamrpc[]
INIT(=
N_(
"E906: invalid stream for rpc channel, use 'rpc'"));
911 EXTERN char e_streamkey[]
INIT(=
N_(
"E5210: dict key '%s' already set for buffered stream in channel %" PRIu64));
912 EXTERN char e_libcall[]
INIT(=
N_(
"E364: Library call failed for \"%s()\""));
913 EXTERN char e_fsync[]
INIT(=
N_(
"E667: Fsync failed: %s"));
914 EXTERN char e_mkdir[]
INIT(=
N_(
"E739: Cannot create directory %s: %s"));
915 EXTERN char e_markinval[]
INIT(=
N_(
"E19: Mark has invalid line number"));
916 EXTERN char e_marknotset[]
INIT(=
N_(
"E20: Mark not set"));
917 EXTERN char e_modifiable[]
INIT(=
N_(
"E21: Cannot make changes, 'modifiable' is off"));
918 EXTERN char e_nesting[]
INIT(=
N_(
"E22: Scripts nested too deep"));
919 EXTERN char e_noalt[]
INIT(=
N_(
"E23: No alternate file"));
920 EXTERN char e_noabbr[]
INIT(=
N_(
"E24: No such abbreviation"));
921 EXTERN char e_nobang[]
INIT(=
N_(
"E477: No ! allowed"));
922 EXTERN char e_nogroup[]
INIT(=
N_(
"E28: No such highlight group name: %s"));
923 EXTERN char e_noinstext[]
INIT(=
N_(
"E29: No inserted text yet"));
924 EXTERN char e_nolastcmd[]
INIT(=
N_(
"E30: No previous command line"));
925 EXTERN char e_nomap[]
INIT(=
N_(
"E31: No such mapping"));
927 EXTERN char e_nomatch2[]
INIT(=
N_(
"E480: No match: %s"));
929 EXTERN char e_nopresub[]
INIT(=
N_(
"E33: No previous substitute regular expression"));
930 EXTERN char e_noprev[]
INIT(=
N_(
"E34: No previous command"));
931 EXTERN char e_noprevre[]
INIT(=
N_(
"E35: No previous regular expression"));
932 EXTERN char e_norange[]
INIT(=
N_(
"E481: No range allowed"));
933 EXTERN char e_noroom[]
INIT(=
N_(
"E36: Not enough room"));
934 EXTERN char e_notmp[]
INIT(=
N_(
"E483: Can't get temp file name"));
935 EXTERN char e_notopen[]
INIT(=
N_(
"E484: Can't open file %s"));
936 EXTERN char e_notopen_2[]
INIT(=
N_(
"E484: Can't open file %s: %s"));
937 EXTERN char e_notread[]
INIT(=
N_(
"E485: Can't read file %s"));
939 EXTERN char e_number_exp[]
INIT(=
N_(
"E39: Number expected"));
940 EXTERN char e_openerrf[]
INIT(=
N_(
"E40: Can't open errorfile %s"));
941 EXTERN char e_outofmem[]
INIT(=
N_(
"E41: Out of memory!"));
942 EXTERN char e_patnotf[]
INIT(=
N_(
"Pattern not found"));
943 EXTERN char e_patnotf2[]
INIT(=
N_(
"E486: Pattern not found: %s"));
944 EXTERN char e_positive[]
INIT(=
N_(
"E487: Argument must be positive"));
945 EXTERN char e_prev_dir[]
INIT(=
N_(
"E459: Cannot go back to previous directory"));
948 EXTERN char e_loclist[]
INIT(=
N_(
"E776: No location list"));
949 EXTERN char e_re_damg[]
INIT(=
N_(
"E43: Damaged match string"));
950 EXTERN char e_re_corr[]
INIT(=
N_(
"E44: Corrupted regexp program"));
951 EXTERN char e_readonly[]
INIT(=
N_(
"E45: 'readonly' option is set (add ! to override)"));
952 EXTERN char e_readonlyvar[]
INIT(=
N_(
"E46: Cannot change read-only variable \"%.*s\""));
953 EXTERN char e_stringreq[]
INIT(=
N_(
"E928: String required"));
954 EXTERN char e_dictreq[]
INIT(=
N_(
"E715: Dictionary required"));
955 EXTERN char e_blobidx[]
INIT(=
N_(
"E979: Blob index out of range: %" PRId64));
956 EXTERN char e_invalblob[]
INIT(=
N_(
"E978: Invalid operation for Blob"));
957 EXTERN char e_toomanyarg[]
INIT(=
N_(
"E118: Too many arguments for function: %s"));
958 EXTERN char e_dictkey[]
INIT(=
N_(
"E716: Key not present in Dictionary: \"%s\""));
959 EXTERN char e_listreq[]
INIT(=
N_(
"E714: List required"));
960 EXTERN char e_listblobreq[]
INIT(=
N_(
"E897: List or Blob required"));
961 EXTERN char e_listdictarg[]
INIT(=
N_(
"E712: Argument of %s must be a List or Dictionary"));
962 EXTERN char e_listdictblobarg[]
INIT(=
N_(
"E896: Argument of %s must be a List, Dictionary or Blob"));
963 EXTERN char e_readerrf[]
INIT(=
N_(
"E47: Error while reading errorfile"));
964 EXTERN char e_sandbox[]
INIT(=
N_(
"E48: Not allowed in sandbox"));
965 EXTERN char e_secure[]
INIT(=
N_(
"E523: Not allowed here"));
966 EXTERN char e_screenmode[]
INIT(=
N_(
"E359: Screen mode setting not supported"));
967 EXTERN char e_scroll[]
INIT(=
N_(
"E49: Invalid scroll size"));
968 EXTERN char e_shellempty[]
INIT(=
N_(
"E91: 'shell' option is empty"));
969 EXTERN char e_signdata[]
INIT(=
N_(
"E255: Couldn't read in sign data!"));
970 EXTERN char e_swapclose[]
INIT(=
N_(
"E72: Close error on swap file"));
971 EXTERN char e_tagstack[]
INIT(=
N_(
"E73: tag stack empty"));
972 EXTERN char e_toocompl[]
INIT(=
N_(
"E74: Command too complex"));
973 EXTERN char e_longname[]
INIT(=
N_(
"E75: Name too long"));
975 EXTERN char e_toomany[]
INIT(=
N_(
"E77: Too many file names"));
976 EXTERN char e_trailing[]
INIT(=
N_(
"E488: Trailing characters"));
977 EXTERN char e_trailing2[]
INIT(=
N_(
"E488: Trailing characters: %s"));
979 EXTERN char e_wildexpand[]
INIT(=
N_(
"E79: Cannot expand wildcards"));
980 EXTERN char e_winheight[]
INIT(=
N_(
"E591: 'winheight' cannot be smaller than 'winminheight'"));
981 EXTERN char e_winwidth[]
INIT(=
N_(
"E592: 'winwidth' cannot be smaller than 'winminwidth'"));
982 EXTERN char e_write[]
INIT(=
N_(
"E80: Error while writing"));
983 EXTERN char e_zerocount[]
INIT(=
N_(
"E939: Positive count required"));
984 EXTERN char e_usingsid[]
INIT(=
N_(
"E81: Using <SID> not in a script context"));
985 EXTERN char e_missingparen[]
INIT(=
N_(
"E107: Missing parentheses: %s"));
986 EXTERN char e_maxmempat[]
INIT(=
N_(
"E363: pattern uses more memory than 'maxmempattern'"));
987 EXTERN char e_emptybuf[]
INIT(=
N_(
"E749: empty buffer"));
988 EXTERN char e_nobufnr[]
INIT(=
N_(
"E86: Buffer %" PRId64
" does not exist"));
990 EXTERN char e_invalpat[]
INIT(=
N_(
"E682: Invalid search pattern or delimiter"));
991 EXTERN char e_bufloaded[]
INIT(=
N_(
"E139: File is loaded in another buffer"));
992 EXTERN char e_notset[]
INIT(=
N_(
"E764: Option '%s' is not set"));
993 EXTERN char e_invalidreg[]
INIT(=
N_(
"E850: Invalid register name"));
994 EXTERN char e_dirnotf[]
INIT(=
N_(
"E919: Directory not found in '%s': \"%s\""));
995 EXTERN char e_au_recursive[]
INIT(=
N_(
"E952: Autocommand caused recursive behavior"));
996 EXTERN char e_autocmd_close[]
INIT(=
N_(
"E813: Cannot close autocmd window"));
997 EXTERN char e_listarg[]
INIT(=
N_(
"E686: Argument of %s must be a List"));
998 EXTERN char e_unsupportedoption[]
INIT(=
N_(
"E519: Option not supported"));
999 EXTERN char e_fnametoolong[]
INIT(=
N_(
"E856: Filename too long"));
1000 EXTERN char e_float_as_string[]
INIT(=
N_(
"E806: using Float as a String"));
1001 EXTERN char e_cannot_edit_other_buf[]
INIT(=
N_(
"E788: Not allowed to edit another buffer now"));
1003 EXTERN char e_autocmd_err[]
INIT(=
N_(
"E5500: autocmd has thrown an exception: %s"));
1004 EXTERN char e_cmdmap_err[]
INIT(=
N_(
"E5520: <Cmd> mapping must end with <CR>"));
1005 EXTERN char e_cmdmap_repeated[]
1006 INIT(=
N_(
"E5521: <Cmd> mapping must end with <CR> before second <Cmd>"));
1008 EXTERN char e_api_error[]
INIT(=
N_(
"E5555: API call: %s"));
1010 EXTERN char e_luv_api_disabled[]
INIT(=
N_(
"E5560: %s must not be called in a lua loop callback"));
1012 EXTERN char e_floatonly[]
INIT(=
N_(
"E5601: Cannot close window, only floating window would remain"));
1013 EXTERN char e_floatexchange[]
INIT(=
N_(
"E5602: Cannot exchange or rotate float"));
1015 EXTERN char e_non_empty_string_required[]
INIT(=
N_(
"E1142: Non-empty string required"));
1017 EXTERN char e_cannot_define_autocommands_for_all_events[]
INIT(=
N_(
"E1155: Cannot define autocommands for ALL events"));
1019 EXTERN char e_resulting_text_too_long[]
INIT(=
N_(
"E1240: Resulting text too long"));
1021 EXTERN char e_line_number_out_of_range[]
INIT(=
N_(
"E1247: Line number out of range"));
1023 EXTERN char e_highlight_group_name_too_long[]
INIT(=
N_(
"E1249: Highlight group name too long"));
1025 EXTERN char e_undobang_cannot_redo_or_move_branch[]
1026 INIT(=
N_(
"E5767: Cannot use :undo! to redo or move to a different undo branch"));
1028 EXTERN char top_bot_msg[]
INIT(=
N_(
"search hit TOP, continuing at BOTTOM"));
1029 EXTERN char bot_top_msg[]
INIT(=
N_(
"search hit BOTTOM, continuing at TOP"));
1071 #define MIN_CD_SCOPE kCdScopeWindow
1072 #define MAX_CD_SCOPE kCdScopeGlobal
1083 EXTERN char windowsVersion[20]
INIT(= { 0 });
1085 #endif // NVIM_GLOBALS_H
TriState
Definition: types.h:29
EXTERN win_T * aucmd_win
Definition: globals.h:451
EXTERN char_u wim_flags[4]
Definition: globals.h:836
Definition: buffer_defs.h:1171
char * sourcing_name
Definition: globals.h:357
#define IOSIZE
Definition: globals.h:18
Definition: buffer_defs.h:942
EXTERN long sub_nsubs
Definition: globals.h:832
#define MSG_BUF_LEN
Definition: globals.h:20
EXTERN tabpage_T * curtab
Definition: globals.h:462
@ kCdScopeWindow
Affects one window.
Definition: globals.h:1066
handle_T NS
Definition: types.h:25
@ kCdScopeTabpage
Affects one tab page.
Definition: globals.h:1067
RedrawingDisabled
Definition: userfunc.c:996
EXTERN linenr_T sub_nlines
Definition: globals.h:833
current_sctx
Definition: userfunc.c:1094
@ kCdCauseManual
Using :cd, :tcd, :lcd or chdir().
Definition: globals.h:1077
EXTERN int vim_ignored
Definition: globals.h:1041
EXTERN except_T * current_exception
Definition: globals.h:274
@ MAXLNUM
Definition: pos.h:15
EXTERN int ru_col
Definition: globals.h:493
int64_t fsync
Definition: globals.h:77
EXTERN cmdmod_T cmdmod
Definition: globals.h:678
CdCause
What caused the current directory to change.
Definition: globals.h:1075
EXTERN linenr_T resel_VIsual_line_count
Definition: globals.h:555
@ kCdCauseOther
Definition: globals.h:1076
msg_scroll
Definition: message.c:2058
WorkingStatus
Definition: globals.h:1052
Definition: buffer_defs.h:296
@ WM_LIST
cmdline CTRL-D
Definition: globals.h:797
EXTERN int mouse_grid
Definition: globals.h:410
EXTERN int modified_was_set
Definition: globals.h:393
#define DFLT_ROWS
Definition: globals.h:92
EXTERN char_u NameBuff[MAXPATHL]
Buffer for expanding file names.
Definition: globals.h:695
CdScope
Definition: globals.h:1064
off_t off_T
Definition: globals.h:116
uint64_t disptick_T
Definition: buffer_defs.h:101
EXTERN linenr_T printer_page_num
Definition: globals.h:847
EXTERN pos_T where_paste_started
Definition: globals.h:560
EXTERN int sc_col
Definition: globals.h:495
EXTERN hlf_T edit_submode_highl
Definition: globals.h:190
Definition: regexp_defs.h:154
EXTERN int searchcmdlen
Definition: globals.h:736
char * autocmd_match
Definition: globals.h:357
@ kCdCauseWindow
Switching to another window.
Definition: globals.h:1078
EXTERN int arrow_used
Definition: globals.h:666
@ WM_SCROLLED
wildmenu showing with scroll
Definition: globals.h:796
@ kBroken
Definition: globals.h:1055
EXTERN tabpage_T * first_tabpage
Definition: globals.h:461
EXTERN colnr_T resel_VIsual_vcol
Definition: globals.h:556
sourcing_lnum
Definition: userfunc.c:999
int colnr_T
Column number type.
Definition: pos.h:10
Definition: globals.h:355
#define NUL
Definition: ascii.h:19
#define NO_SCREEN
Definition: globals.h:82
EXTERN frame_T * topframe
Definition: globals.h:456
EXTERN int called_emsg
Definition: globals.h:233
EXTERN char os_buf[IOSIZE]
Definition: globals.h:703
position in file or buffer
Definition: pos.h:29
@ kCdScopeGlobal
Affects the entire Nvim instance.
Definition: globals.h:1068
EXTERN char msg_buf[MSG_BUF_LEN]
Small buffer for messages.
Definition: globals.h:696
EXTERN int msg_col
Definition: globals.h:194
#define SEA_NONE
Definition: globals.h:686
#define N_(x)
Definition: gettext.h:21
EXTERN int ru_wid
Definition: globals.h:494
EXTERN linenr_T search_match_lines
Definition: globals.h:377
EXTERN int did_emsg
Definition: globals.h:228
EXTERN int cmdline_row
Definition: globals.h:143
EXTERN win_T * lastwin
Definition: globals.h:432
EXTERN int mouse_row
Definition: globals.h:411
@ kUnknown
Definition: globals.h:1053
EXTERN struct nvim_stats_s INIT(={ 0, 0 })
PROF_ values.
void * funccalp
Definition: globals.h:360
EXTERN win_T * curwin
Definition: globals.h:449
EXTERN struct caller_scope provider_caller_scope
EXTERN time_t starttime
Definition: globals.h:1034
EXTERN pos_T Insstart
Definition: globals.h:600
#define EXTERN
Definition: macros.h:9
EXTERN int stop_insert_mode
Definition: globals.h:717
EXTERN pos_T Insstart_orig
Definition: globals.h:606
linenr_T sourcing_lnum
Definition: globals.h:358
EXTERN int msg_row
Definition: globals.h:195
EXTERN dict_T vimvardict
Definition: globals.h:224
EXTERN tabpage_T * lastused_tabpage
Definition: globals.h:463
char * autocmd_fname
Definition: globals.h:357
int64_t redraw
Definition: globals.h:78
EXTERN dict_T globvardict
Definition: globals.h:225
EXTERN char_u langmap_mapchar[256]
Definition: globals.h:789
unsigned char char_u
Definition: types.h:12
Definition: buffer_defs.h:990
Definition: ex_cmds_defs.h:250
Definition: buffer_defs.h:13
@ kWorking
Definition: globals.h:1054
Definition: buffer_defs.h:324
Definition: buffer_defs.h:521
@ kCdCauseAuto
On 'autochdir'.
Definition: globals.h:1079
sourcing_name
Definition: userfunc.c:1013
@ kCdScopeInvalid
Definition: globals.h:1065
#define MODE_MAX_LENGTH
Definition: globals.h:751
sctx_T script_ctx
Definition: globals.h:356
EXTERN bool did_emsg_syntax
Definition: globals.h:231
#define MODE_NORMAL
Definition: vim.h:49
EXTERN int VIsual_reselect
Whether to restart the selection after a Select-mode mapping or menu.
Definition: globals.h:547
EXTERN int msg_scrolled
Definition: globals.h:196
#define DFLT_COLS
Definition: globals.h:91
Definition: coverity-model.c:40
EXTERN pos_T VIsual
Start position of active Visual selection.
Definition: globals.h:537
EXTERN win_T * firstwin
Definition: globals.h:431
#define MAXPATHL
Definition: os_defs.h:27
EXTERN colnr_T search_match_endcol
Definition: globals.h:378
@ kNone
Definition: types.h:30
EXTERN alist_T global_alist
Definition: globals.h:488
long linenr_T
Line number type.
Definition: pos.h:5
@ WM_SHOWN
wildmenu showing
Definition: globals.h:795
EXTERN int mouse_col
Definition: globals.h:412
EXTERN bool called_vim_beep
Definition: globals.h:230
return NULL
Definition: eval.c:9968
hlf_T
Definition: highlight_defs.h:55
EXTERN bool KeyTyped
Definition: globals.h:718
EXTERN int KeyStuffed
Definition: globals.h:719
int autocmd_bufnr
Definition: globals.h:359
EXTERN char_u IObuff[IOSIZE]
Buffer for sprintf, I/O, etc.
Definition: globals.h:694