Macros | Functions | Variables
version.c File Reference
#include <assert.h>
#include <inttypes.h>
#include <limits.h>
#include "nvim/api/private/helpers.h"
#include "nvim/ascii.h"
#include "nvim/buffer.h"
#include "nvim/charset.h"
#include "nvim/iconv.h"
#include "nvim/lua/executor.h"
#include "nvim/memline.h"
#include "nvim/memory.h"
#include "nvim/message.h"
#include "nvim/screen.h"
#include "nvim/strings.h"
#include "nvim/version.h"
#include "nvim/vim.h"
#include "auto/versiondef.h"

Macros

#define NVIM_VERSION_MEDIUM
 
#define NVIM_VERSION_LONG   "NVIM " NVIM_VERSION_MEDIUM
 

Functions

bool has_nvim_version (const char *const version_str) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL
 
bool has_vim_patch (int n) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT
 
Dictionary version_dict (void)
 
void ex_version (exarg_T *eap)
 
void list_in_columns (char_u **items, int size, int current)
 
void list_lua_version (void)
 
void list_version (void)
 
void maybe_intro_message (void)
 Show the intro message when not editing a file. More...
 
void intro_message (int colon)
 
void ex_intro (exarg_T *eap)
 

Variables

char * Version = VIM_VERSION_SHORT
 
char * longVersion = NVIM_VERSION_LONG
 
char * version_buildtype = "Build type: " NVIM_VERSION_BUILD_TYPE
 
char * version_cflags = "Compilation: " NVIM_VERSION_CFLAGS
 

Detailed Description

Nvim was forked from Vim 7.4.160. Vim originated from Stevie version 3.6 (Fish disk 217) by GRWalter (Fred).

Macro Definition Documentation

◆ NVIM_VERSION_LONG

#define NVIM_VERSION_LONG   "NVIM " NVIM_VERSION_MEDIUM

◆ NVIM_VERSION_MEDIUM

#define NVIM_VERSION_MEDIUM
Value:
"v" STR(NVIM_VERSION_MAJOR) \
"." STR(NVIM_VERSION_MINOR) "." STR(NVIM_VERSION_PATCH) \
NVIM_VERSION_PRERELEASE

Function Documentation

◆ ex_intro()

void ex_intro ( exarg_T eap)

":intro": clear screen, display intro screen and wait for return.

Parameters
eap

◆ ex_version()

void ex_version ( exarg_T eap)

◆ has_nvim_version()

bool has_nvim_version ( const char *const  version_str)

Compares a version string to the current Nvim version.

Parameters
versionVersion string like "1.3.42"
Returns
true if Nvim is at or above the version.

◆ has_vim_patch()

bool has_vim_patch ( int  n)

Checks whether a Vim patch has been included.

Parameters
nPatch number.
Returns
true if patch n has been included.

◆ intro_message()

void intro_message ( int  colon)

Give an introductory message about Vim. Only used when starting Vim on an empty file, without a file name. Or with the ":intro" command (for Sven :-).

Parameters
colonTRUE for ":intro"

◆ list_in_columns()

void list_in_columns ( char_u **  items,
int  size,
int  current 
)

List string items nicely aligned in columns. When "size" is < 0 then the last entry is marked with NULL. The entry with index "current" is inclosed in [].

◆ list_lua_version()

void list_lua_version ( void  )

◆ list_version()

void list_version ( void  )

◆ maybe_intro_message()

void maybe_intro_message ( void  )

Show the intro message when not editing a file.

◆ version_dict()

Dictionary version_dict ( void  )

Variable Documentation

◆ longVersion

char* longVersion = NVIM_VERSION_LONG

◆ Version

char* Version = VIM_VERSION_SHORT

◆ version_buildtype

char* version_buildtype = "Build type: " NVIM_VERSION_BUILD_TYPE

◆ version_cflags

char* version_cflags = "Compilation: " NVIM_VERSION_CFLAGS
STR
#define STR(x)
Definition: macros.h:136