Functions
state.c File Reference
#include <assert.h>
#include "nvim/lib/kvec.h"
#include "nvim/ascii.h"
#include "nvim/log.h"
#include "nvim/state.h"
#include "nvim/vim.h"
#include "nvim/main.h"
#include "nvim/getchar.h"
#include "nvim/option_defs.h"
#include "nvim/ui.h"
#include "nvim/os/input.h"
#include "nvim/ex_docmd.h"
#include "nvim/edit.h"

Functions

void state_enter (VimState *s)
 
bool virtual_active (void)
 Return true if in the current mode we need to use virtual. More...
 
int get_real_state (void)
 
char * get_mode (void)
 

Function Documentation

char* get_mode ( void  )
Returns
[allocated] mode string
int get_real_state ( void  )

VISUAL, SELECTMODE and OP_PENDING State are never set, they are equal to NORMAL State with a condition. This function returns the real State.

void state_enter ( VimState s)
bool virtual_active ( void  )

Return true if in the current mode we need to use virtual.