Macros | Functions | Variables
version.c File Reference
#include <inttypes.h>
#include <assert.h>
#include <limits.h>
#include "nvim/api/private/helpers.h"
#include "nvim/vim.h"
#include "nvim/ascii.h"
#include "nvim/iconv.h"
#include "nvim/version.h"
#include "nvim/charset.h"
#include "nvim/macros.h"
#include "nvim/memline.h"
#include "nvim/memory.h"
#include "nvim/message.h"
#include "nvim/screen.h"
#include "nvim/strings.h"
#include "nvim/lua/executor.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)
 
Dictionary version_dict (void)
 
void ex_version (exarg_T *eap)
 
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

#define NVIM_VERSION_LONG   "NVIM " NVIM_VERSION_MEDIUM
#define NVIM_VERSION_MEDIUM
Value:
"v" STR(NVIM_VERSION_MAJOR)\
"." STR(NVIM_VERSION_MINOR) "." STR(NVIM_VERSION_PATCH)\
NVIM_VERSION_PRERELEASE
#define STR(x)
Definition: macros.h:154

Function Documentation

void ex_intro ( exarg_T eap)

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

Parameters
eap
void ex_version ( exarg_T eap)
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.
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.
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"
void list_lua_version ( void  )
void list_version ( void  )
void maybe_intro_message ( void  )

Show the intro message when not editing a file.

Dictionary version_dict ( void  )

Variable Documentation

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