#include <assert.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "nvim/ascii.h"
#include "nvim/buffer.h"
#include "nvim/charset.h"
#include "nvim/cursor.h"
#include "nvim/cursor_shape.h"
#include "nvim/diff.h"
#include "nvim/digraph.h"
#include "nvim/edit.h"
#include "nvim/eval.h"
#include "nvim/eval/typval.h"
#include "nvim/ex_cmds2.h"
#include "nvim/ex_docmd.h"
#include "nvim/ex_getln.h"
#include "nvim/ex_session.h"
#include "nvim/fileio.h"
#include "nvim/fold.h"
#include "nvim/garray.h"
#include "nvim/getchar.h"
#include "nvim/hardcopy.h"
#include "nvim/highlight.h"
#include "nvim/highlight_group.h"
#include "nvim/indent_c.h"
#include "nvim/keycodes.h"
#include "nvim/macros.h"
#include "nvim/mbyte.h"
#include "nvim/memfile.h"
#include "nvim/memline.h"
#include "nvim/memory.h"
#include "nvim/message.h"
#include "nvim/mouse.h"
#include "nvim/move.h"
#include "nvim/normal.h"
#include "nvim/option.h"
#include "nvim/os/os.h"
#include "nvim/os_unix.h"
#include "nvim/path.h"
#include "nvim/popupmnu.h"
#include "nvim/regexp.h"
#include "nvim/runtime.h"
#include "nvim/screen.h"
#include "nvim/spell.h"
#include "nvim/spellfile.h"
#include "nvim/strings.h"
#include "nvim/syntax.h"
#include "nvim/ui.h"
#include "nvim/ui_compositor.h"
#include "nvim/undo.h"
#include "nvim/vim.h"
#include "nvim/window.h"
#include "nvim/api/private/helpers.h"
#include "nvim/lua/executor.h"
#include "nvim/os/input.h"
#include "nvim/os/lang.h"
#include "nvim/quickfix.h"
Data Structures | |
struct | vimoption |
struct | langmap_entry_T |
Macros | |
#define | IN_OPTION_C |
#define | PV_BOTH 0x1000 |
#define | PV_WIN 0x2000 |
#define | PV_BUF 0x4000 |
#define | PV_MASK 0x0fff |
#define | OPT_WIN(x) (idopt_T)(PV_WIN + (int)(x)) |
#define | OPT_BUF(x) (idopt_T)(PV_BUF + (int)(x)) |
#define | OPT_BOTH(x) (idopt_T)(PV_BOTH + (int)(x)) |
#define | VAR_WIN ((char_u *)-1) |
#define | P_BOOL 0x01U |
#define | P_NUM 0x02U |
#define | P_STRING 0x04U |
#define | P_ALLOCED 0x08U |
#define | P_EXPAND 0x10U |
#define | P_NODEFAULT 0x40U |
#define | P_DEF_ALLOCED 0x80U |
#define | P_WAS_SET 0x100U |
#define | P_NO_MKRC 0x200U |
#define | P_RSTAT 0x1000U |
redraw status lines More... | |
#define | P_RWIN 0x2000U |
redraw current window and recompute text More... | |
#define | P_RBUF 0x4000U |
redraw current buffer and recompute text More... | |
#define | P_RALL 0x6000U |
redraw all windows More... | |
#define | P_RCLR 0x7000U |
clear and redraw all More... | |
#define | P_COMMA 0x8000U |
comma separated list More... | |
#define | P_ONECOMMA 0x18000U |
commas More... | |
#define | P_NODUP 0x20000U |
don't allow duplicate strings More... | |
#define | P_FLAGLIST 0x40000U |
list of single-char flags More... | |
#define | P_SECURE 0x80000U |
cannot change in modeline or secure mode More... | |
#define | P_GETTEXT 0x100000U |
expand default value with _() More... | |
#define | P_NOGLOB 0x200000U |
do not use local value for global vimrc More... | |
#define | P_NFNAME 0x400000U |
only normal file name chars allowed More... | |
#define | P_INSECURE 0x800000U |
option was set from a modeline More... | |
#define | P_PRI_MKRC 0x1000000U |
has side effects) More... | |
#define | P_NO_ML 0x2000000U |
not allowed in modeline More... | |
#define | P_CURSWANT 0x4000000U |
when there is a redraw flag More... | |
#define | P_NO_DEF_EXP 0x8000000U |
Do not expand default value. More... | |
#define | P_RWINONLY 0x10000000U |
only redraw current window More... | |
#define | P_NDNAME 0x20000000U |
only normal dir name chars allowed More... | |
#define | P_UI_OPTION 0x40000000U |
send option to remote ui More... | |
#define | P_MLE 0x80000000U |
under control of 'modelineexpr' More... | |
#define | HIGHLIGHT_INIT |
#define | OPTION_COUNT ARRAY_SIZE(options) |
#define | TCO_BUFFER_SIZE 8 |
#define | INC 20 |
#define | GAP 3 |
#define | COL_RULER 17 |
#define | COPY_OPT_SCTX(buf, bv) buf->b_p_script_ctx[bv] = options[buf_opt_idx[bv]].last_set |
Typedefs | |
typedef struct vimoption | vimoption_T |
Enumerations | |
enum | idopt_T { PV_NONE = 0, PV_MAXVAL = 0xffff } |
Functions | |
void | set_init_1 (bool clean_arg) |
void | set_number_default (char *name, long val) |
void | set_init_2 (bool headless) |
Initialize the options, part two: After getting Rows and Columns. More... | |
void | set_init_3 (void) |
Initialize the options, part three: After reading the .vimrc. More... | |
void | set_helplang_default (const char *lang) |
void | set_title_defaults (void) |
void | ex_set (exarg_T *eap) |
int | do_set (char_u *arg, int opt_flags) |
void | set_options_bin (int oldval, int newval, int opt_flags) |
int | get_shada_parameter (int type) |
char_u * | find_shada_parameter (int type) |
void | check_options (void) |
Check for string options that are NULL (normally only termcap options). More... | |
void | check_buf_options (buf_T *buf) |
Check string options in a buffer for NULL value. More... | |
void | free_string_option (char_u *p) |
void | clear_string_option (char_u **pp) |
int | was_set_insecurely (win_T *const wp, char *opt, int opt_flags) |
void | set_string_option_direct (const char *name, int opt_idx, const char_u *val, int opt_flags, int set_sid) |
bool | valid_spelllang (const char_u *val) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT |
Return true if "val" is a valid 'spelllang' value. More... | |
int | check_signcolumn (char_u *val) |
char * | check_colorcolumn (win_T *wp) |
void | check_blending (win_T *wp) |
char * | check_stl_option (char_u *s) |
int | findoption_len (const char *const arg, const size_t len) |
bool | is_tty_option (const char *name) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT |
bool | get_tty_option (const char *name, char **value) |
bool | set_tty_option (const char *name, char *value) |
void | set_tty_background (const char *value) |
int | get_option_value (const char *name, long *numval, char **stringval, int opt_flags) |
int | get_option_value_strict (char *name, int64_t *numval, char **stringval, int opt_type, void *from) |
char * | set_option_value (const char *const name, const long number, const char *const string, const int opt_flags) FUNC_ATTR_NONNULL_ARG(1) |
int | find_key_option_len (const char_u *arg_arg, size_t len, bool has_lt) |
void | ui_refresh_options (void) |
Send update to UIs with values of UI relevant options. More... | |
int | makeset (FILE *fd, int opt_flags, int local_only) |
int | makefoldset (FILE *fd) |
void | comp_col (void) |
void | unset_global_local_option (char *name, void *from) |
char_u * | get_equalprg (void) |
Get the value of 'equalprg', either the buffer-local one or the global one. More... | |
void | win_copy_options (win_T *wp_from, win_T *wp_to) |
void | copy_winopt (winopt_T *from, winopt_T *to) |
void | check_win_options (win_T *win) |
Check string options in a window for a NULL value. More... | |
void | clear_winopt (winopt_T *wop) |
Free the allocated memory inside a winopt_T. More... | |
void | didset_window_options (win_T *wp) |
void | buf_copy_options (buf_T *buf, int flags) |
void | reset_modifiable (void) |
Reset the 'modifiable' option and its default value. More... | |
void | set_iminsert_global (void) |
Set the global value for 'iminsert' to the local value. More... | |
void | set_imsearch_global (void) |
Set the global value for 'imsearch' to the local value. More... | |
void | set_context_in_set_cmd (expand_T *xp, char_u *arg, int opt_flags) |
int | ExpandSettings (expand_T *xp, regmatch_T *regmatch, int *num_file, char_u ***file) |
void | ExpandOldSetting (int *num_file, char_u ***file) |
int | langmap_adjust_mb (int c) |
Apply 'langmap' to multi-byte character "c" and return the result. More... | |
bool | has_format_option (int x) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT |
bool | shortmess (int x) |
void | vimrc_found (char *fname, char *envname) |
bool | option_was_set (const char *name) |
void | reset_option_was_set (const char *name) |
bool | can_bs (int what) |
void | save_file_ff (buf_T *buf) |
bool | file_ff_differs (buf_T *buf, bool ignore_empty) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT |
int | check_ff_value (char_u *p) |
return OK if "p" is a valid fileformat name, FAIL otherwise. More... | |
bool | tabstop_set (char_u *var, long **array) |
int | tabstop_padding (colnr_T col, long ts_arg, long *vts) |
int | tabstop_at (colnr_T col, long ts, long *vts) |
colnr_T | tabstop_start (colnr_T col, long ts, long *vts) |
void | tabstop_fromto (colnr_T start_col, colnr_T end_col, long ts_arg, long *vts, int *ntabs, int *nspcs) |
bool | tabstop_eq (long *ts1, long *ts2) |
int * | tabstop_copy (long *oldts) |
int | tabstop_count (long *ts) |
int | tabstop_first (long *ts) |
int | get_sw_value (buf_T *buf) |
long | get_sw_value_indent (buf_T *buf) |
long | get_sw_value_pos (buf_T *buf, pos_T *pos) |
long | get_sw_value_col (buf_T *buf, colnr_T col) |
int | get_sts_value (void) |
unsigned int | get_bkc_value (buf_T *buf) |
unsigned int | get_ve_flags (void) |
Get the local or global value of the 'virtualedit' flags. More... | |
char_u * | get_showbreak_value (win_T *const win) FUNC_ATTR_WARN_UNUSED_RESULT |
int | get_fileformat (const buf_T *buf) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL |
Return the current end-of-line type: EOL_DOS, EOL_UNIX or EOL_MAC. More... | |
int | get_fileformat_force (const buf_T *buf, const exarg_T *eap) FUNC_ATTR_NONNULL_ARG(1) |
int | default_fileformat (void) |
Return the default fileformat from 'fileformats'. More... | |
void | set_fileformat (int eol_style, int opt_flags) |
char_u * | skip_to_option_part (const char_u *p) |
Skip to next part of an option argument: skip space and comma. More... | |
size_t | copy_option_part (char_u **option, char_u *buf, size_t maxlen, char *sep_chars) |
int | csh_like_shell (void) |
Return true when 'shell' has "csh" in the tail. More... | |
bool | fish_like_shell (void) |
Return true when 'shell' has "fish" in the tail. More... | |
int | win_signcol_count (win_T *wp) |
int | win_signcol_configured (win_T *wp, int *is_fixed) |
Return the number of requested sign columns, based on user / configuration. More... | |
dict_T * | get_winbuf_options (const int bufopt) FUNC_ATTR_WARN_UNUSED_RESULT |
Get window or buffer local options. More... | |
long | get_scrolloff_value (win_T *wp) |
long | get_sidescrolloff_value (win_T *wp) |
Dictionary | get_vimoption (String name, Error *err) |
Dictionary | get_all_vimoptions (void) |
#define COL_RULER 17 |
Compute columns for ruler and shown command. 'sc_col' is also used to decide what the maximum length of a message on the status line can be. If there is a status line for the last window, 'sc_col' is independent of 'ru_col'.
#define GAP 3 |
#define HIGHLIGHT_INIT |
#define IN_OPTION_C |
#define INC 20 |
#define OPTION_COUNT ARRAY_SIZE(options) |
#define P_ALLOCED 0x08U |
#define P_BOOL 0x01U |
#define P_COMMA 0x8000U |
comma separated list
#define P_CURSWANT 0x4000000U |
when there is a redraw flag
update curswant required; not needed
#define P_DEF_ALLOCED 0x80U |
#define P_EXPAND 0x10U |
#define P_FLAGLIST 0x40000U |
list of single-char flags
#define P_GETTEXT 0x100000U |
expand default value with _()
#define P_INSECURE 0x800000U |
option was set from a modeline
#define P_MLE 0x80000000U |
under control of 'modelineexpr'
#define P_NDNAME 0x20000000U |
only normal dir name chars allowed
#define P_NFNAME 0x400000U |
only normal file name chars allowed
#define P_NO_DEF_EXP 0x8000000U |
Do not expand default value.
#define P_NO_MKRC 0x200U |
#define P_NO_ML 0x2000000U |
not allowed in modeline
#define P_NODEFAULT 0x40U |
#define P_NODUP 0x20000U |
don't allow duplicate strings
#define P_NOGLOB 0x200000U |
do not use local value for global vimrc
#define P_NUM 0x02U |
#define P_ONECOMMA 0x18000U |
commas
P_COMMA and cannot have two consecutive
#define P_PRI_MKRC 0x1000000U |
has side effects)
priority for :mkvimrc (setting option
#define P_RALL 0x6000U |
redraw all windows
#define P_RBUF 0x4000U |
redraw current buffer and recompute text
#define P_RCLR 0x7000U |
clear and redraw all
#define P_RSTAT 0x1000U |
redraw status lines
#define P_RWIN 0x2000U |
redraw current window and recompute text
#define P_RWINONLY 0x10000000U |
only redraw current window
#define P_SECURE 0x80000U |
cannot change in modeline or secure mode
#define P_STRING 0x04U |
#define P_UI_OPTION 0x40000000U |
send option to remote ui
#define P_WAS_SET 0x100U |
#define PV_BOTH 0x1000 |
#define PV_BUF 0x4000 |
#define PV_MASK 0x0fff |
#define PV_WIN 0x2000 |
#define TCO_BUFFER_SIZE 8 |
#define VAR_WIN ((char_u *)-1) |
typedef struct vimoption vimoption_T |
enum idopt_T |
Copy global option values to local options for one buffer. Used when creating a new buffer and sometimes when entering a buffer. flags: BCO_ENTER We will enter the buffer "buf". BCO_ALWAYS Always copy the options, but only set b_p_initialized when appropriate. BCO_NOHELP Don't copy the values to a help buffer.
bool can_bs | ( | int | what | ) |
Check if backspacing over something is allowed.
what | BS_INDENT, BS_EOL, BS_START, or BS_NOSTOP |
char* check_colorcolumn | ( | win_T * | wp | ) |
Handle setting 'colorcolumn' or 'textwidth' in window "wp".
int check_ff_value | ( | char_u * | p | ) |
return OK if "p" is a valid fileformat name, FAIL otherwise.
int check_signcolumn | ( | char_u * | val | ) |
Handle setting 'signcolumn' for value 'val'
char* check_stl_option | ( | char_u * | s | ) |
Check validity of options with the 'statusline' format. Return an untranslated error message or NULL.
Isolate one part of a string option separated by sep_chars
.
[in,out] | option | advanced to the next part |
[in,out] | buf | copy of the isolated part |
[in] | maxlen | length of buf |
[in] | sep_chars | chars that separate the option parts |
*option
Copy the options from one winopt_T to another. Doesn't free the old option values in "to", use clear_winopt() for that. The 'scroll' option is not copied, because it depends on the window height. The 'previewwindow' option is reset, there can be only one preview window.
int csh_like_shell | ( | void | ) |
Return true when 'shell' has "csh" in the tail.
int default_fileformat | ( | void | ) |
Return the default fileformat from 'fileformats'.
int do_set | ( | char_u * | arg, |
int | opt_flags | ||
) |
Parse 'arg' for option settings.
'arg' may be IObuff, but only when no errors can be present and option does not need to be expanded with option_expand(). "opt_flags": 0 for ":set" OPT_GLOBAL for ":setglobal" OPT_LOCAL for ":setlocal" and a modeline OPT_MODELINE for a modeline OPT_WINONLY to only set window-local options OPT_NOWIN to skip setting window-local options
arg | option string (may be written to!) |
int ExpandSettings | ( | expand_T * | xp, |
regmatch_T * | regmatch, | ||
int * | num_file, | ||
char_u *** | file | ||
) |
Return true if 'fileformat' and/or 'fileencoding' has a different value from when editing started (save_file_ff() called). Also when 'endofline' was changed and 'binary' is set, or when 'bomb' was changed and 'binary' is not set. Also when 'endofline' was changed and 'fixeol' is not set. When "ignore_empty" is true don't consider a new, empty buffer to be changed.
char_u* find_shada_parameter | ( | int | type | ) |
Find the parameter represented by the given character (eg ''', ':', '"', or '/') in the 'shada' option and return a pointer to the string after it. Return NULL if the parameter is not specified in the string.
int findoption_len | ( | const char *const | arg, |
const size_t | len | ||
) |
Find index for named option
[in] | arg | Option to find index for. |
[in] | len | Length of the option. |
Free the string allocated for an option. Checks for the string being empty_option. This may happen if we're out of memory, vim_strsave() returned NULL, which was replaced by empty_option by check_options(). Does NOT check for P_ALLOCED flag!
Dictionary get_all_vimoptions | ( | void | ) |
unsigned int get_bkc_value | ( | buf_T * | buf | ) |
Get the local or global value of 'backupcopy'.
buf | The buffer. |
Get the value of 'equalprg', either the buffer-local one or the global one.
int get_fileformat | ( | const buf_T * | buf | ) |
Return the current end-of-line type: EOL_DOS, EOL_UNIX or EOL_MAC.
Like get_fileformat(), but override 'fileformat' with "p" for "++opt=val" argument.
eap | can be NULL! |
int get_option_value | ( | const char * | name, |
long * | numval, | ||
char ** | stringval, | ||
int | opt_flags | ||
) |
Gets the value for an option.
stringval | NULL when only checking existence |
int get_option_value_strict | ( | char * | name, |
int64_t * | numval, | ||
char ** | stringval, | ||
int | opt_type, | ||
void * | from | ||
) |
long get_scrolloff_value | ( | win_T * | wp | ) |
Return the effective 'scrolloff' value for the current window, using the global value when appropriate.
int get_shada_parameter | ( | int | type | ) |
Find the parameter represented by the given character (eg ', :, ", or /), and return its associated value in the 'shada' string. Only works for number parameters, not for 'r' or 'n'. If the parameter is not specified in the string or there is no following number, return -1.
Get the local or global value of 'showbreak'.
win | If not NULL, the window to get the local option from; global otherwise. |
long get_sidescrolloff_value | ( | win_T * | wp | ) |
Return the effective 'sidescrolloff' value for the current window, using the global value when appropriate.
int get_sts_value | ( | void | ) |
Return the effective softtabstop value for the current buffer, using the shiftwidth value when 'softtabstop' is negative.
int get_sw_value | ( | buf_T * | buf | ) |
Return the effective shiftwidth value for current buffer, using the 'tabstop' value when 'shiftwidth' is zero.
long get_sw_value_indent | ( | buf_T * | buf | ) |
bool get_tty_option | ( | const char * | name, |
char ** | value | ||
) |
name | TUI-related option |
[out,allocated] | value option string value |
unsigned int get_ve_flags | ( | void | ) |
Get the local or global value of the 'virtualedit' flags.
Dictionary get_vimoption | ( | String | name, |
Error * | err | ||
) |
dict_T* get_winbuf_options | ( | const int | bufopt | ) |
Get window or buffer local options.
bool has_format_option | ( | int | x | ) |
Return true if format option 'x' is in effect. Take care of no formatting when 'paste' is set.
bool is_tty_option | ( | const char * | name | ) |
int langmap_adjust_mb | ( | int | c | ) |
Apply 'langmap' to multi-byte character "c" and return the result.
int makefoldset | ( | FILE * | fd | ) |
Generate set commands for the local fold options only. Used when 'sessionoptions' or 'viewoptions' contains "folds" but not "options".
int makeset | ( | FILE * | fd, |
int | opt_flags, | ||
int | local_only | ||
) |
Write modified options as ":set" commands to a file.
There are three values for "opt_flags": OPT_GLOBAL: Write global option values and fresh values of buffer-local options (used for start of a session file). OPT_GLOBAL + OPT_LOCAL: Idem, add fresh values of window-local options for curwin (used for a vimrc file). OPT_LOCAL: Write buffer-local option values for curbuf, fresh and local values for window-local options of curwin. Local values are also written when at the default value, because a modeline or autocommand may have set them when doing ":edit file" and the user has set them back at the default or fresh value. When "local_only" is true, don't write fresh values, only local values (for ":mkview"). (fresh value = value used for a new buffer or window for a local option).
Return FAIL on error, OK otherwise.
bool option_was_set | ( | const char * | name | ) |
Check whether global option has been set
[in] | name | Option name. |
void reset_option_was_set | ( | const char * | name | ) |
Reset the flag indicating option "name" was set.
[in] | name | Option name. |
Save the current values of 'fileformat' and 'fileencoding', so that we know the file must be considered changed when the value is different.
opt_flags | OPT_GLOBAL and/or OPT_LOCAL |
void set_fileformat | ( | int | eol_style, |
int | opt_flags | ||
) |
Set the current end-of-line type to EOL_UNIX, EOL_MAC, or EOL_DOS.
Sets 'fileformat'.
eol_style | End-of-line style. |
opt_flags | OPT_LOCAL and/or OPT_GLOBAL |
void set_helplang_default | ( | const char * | lang | ) |
When 'helplang' is still at its default value, set it to "lang". Only the first two characters of "lang" are used.
Initialize the options, first part.
Called only once from main(), just after creating the first buffer. If "clean_arg" is true, Nvim was started with –clean.
NOTE: ELOG() etc calls are not allowed here, as log location depends on env var expansion which depends on expression evaluation and other editor state initialized here. Do logging in set_init_2 or later.
void set_number_default | ( | char * | name, |
long | val | ||
) |
Set the Vi-default value of a number option. Used for 'lines' and 'columns'.
char* set_option_value | ( | const char *const | name, |
const long | number, | ||
const char *const | string, | ||
const int | opt_flags | ||
) |
Set the value of an option
[in] | name | Option name. |
[in] | number | New value for the number or boolean option. |
[in] | string | New value for string option. |
[in] | opt_flags | Flags: OPT_LOCAL, OPT_GLOBAL, or 0 (both). If OPT_CLEAR is set, the value of the option is cleared (the exact semantics of this depend on the option). |
void set_options_bin | ( | int | oldval, |
int | newval, | ||
int | opt_flags | ||
) |
set_options_bin - called when 'bin' changes value.
opt_flags | OPT_LOCAL and/or OPT_GLOBAL |
void set_string_option_direct | ( | const char * | name, |
int | opt_idx, | ||
const char_u * | val, | ||
int | opt_flags, | ||
int | set_sid | ||
) |
Set a string option to a new value (without checking the effect). The string is copied into allocated memory. if ("opt_idx" == -1) "name" is used, otherwise "opt_idx" is used. When "set_sid" is zero set the scriptID to current_sctx.sc_sid. When "set_sid" is SID_NONE don't set the scriptID. Otherwise set the scriptID to "set_sid".
opt_flags | OPT_FREE, OPT_LOCAL and/or OPT_GLOBAL |
'title' and 'icon' only default to true if they have not been set or reset in .vimrc and we can read the old value. When 'title' and 'icon' have been reset in .vimrc, we won't even check if they can be reset. This reduces startup time when using X on a remote machine.
void set_tty_background | ( | const char * | value | ) |
bool set_tty_option | ( | const char * | name, |
char * | value | ||
) |
bool shortmess | ( | int | x | ) |
Skip to next part of an option argument: skip space and comma.
int tabstop_at | ( | colnr_T | col, |
long | ts, | ||
long * | vts | ||
) |
int* tabstop_copy | ( | long * | oldts | ) |
int tabstop_count | ( | long * | ts | ) |
bool tabstop_eq | ( | long * | ts1, |
long * | ts2 | ||
) |
int tabstop_first | ( | long * | ts | ) |
void tabstop_fromto | ( | colnr_T | start_col, |
colnr_T | end_col, | ||
long | ts_arg, | ||
long * | vts, | ||
int * | ntabs, | ||
int * | nspcs | ||
) |
int tabstop_padding | ( | colnr_T | col, |
long | ts_arg, | ||
long * | vts | ||
) |
void vimrc_found | ( | char * | fname, |
char * | envname | ||
) |
vimrc_found() - Called when a vimrc or "VIMINIT" has been found.
Set the values for options that didn't get set yet to the defaults. When "fname" is not NULL, use it to set $"envname" when it wasn't set yet.
int was_set_insecurely | ( | win_T *const | wp, |
char * | opt, | ||
int | opt_flags | ||
) |
Return true when option "opt" was set from a modeline or in secure mode. Return false when it wasn't. Return -1 for an unknown option.
Copy options from one window to another. Used when splitting a window.
int win_signcol_configured | ( | win_T * | wp, |
int * | is_fixed | ||
) |
Return the number of requested sign columns, based on user / configuration.
int win_signcol_count | ( | win_T * | wp | ) |
Return the number of requested sign columns, based on current buffer signs and on user configuration.