Macros | Functions
ex_session.c File Reference
#include <assert.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "nvim/ascii.h"
#include "nvim/buffer.h"
#include "nvim/cursor.h"
#include "nvim/edit.h"
#include "nvim/eval.h"
#include "nvim/ex_cmds2.h"
#include "nvim/ex_docmd.h"
#include "nvim/ex_getln.h"
#include "nvim/ex_session.h"
#include "nvim/file_search.h"
#include "nvim/fileio.h"
#include "nvim/fold.h"
#include "nvim/getchar.h"
#include "nvim/globals.h"
#include "nvim/keymap.h"
#include "nvim/misc1.h"
#include "nvim/move.h"
#include "nvim/option.h"
#include "nvim/os/input.h"
#include "nvim/os/os.h"
#include "nvim/os/time.h"
#include "nvim/path.h"
#include "nvim/vim.h"
#include "nvim/window.h"

Macros

#define PUTLINE_FAIL(s)   do { if (FAIL == put_line(fd, (s))) { return FAIL; } } while (0)
 

Functions

void ex_loadview (exarg_T *eap)
 ":loadview [nr]" More...
 
void ex_mkrc (exarg_T *eap)
 
int put_eol (FILE *fd)
 
int put_line (FILE *fd, char *s)
 

Macro Definition Documentation

◆ PUTLINE_FAIL

#define PUTLINE_FAIL (   s)    do { if (FAIL == put_line(fd, (s))) { return FAIL; } } while (0)

Function Documentation

◆ ex_loadview()

void ex_loadview ( exarg_T eap)

":loadview [nr]"

◆ ex_mkrc()

void ex_mkrc ( exarg_T eap)

":mkexrc", ":mkvimrc", ":mkview", ":mksession".

Legacy 'sessionoptions'/'viewoptions' flags are always enabled:

  • SSOP_UNIX: line-endings are LF
  • SSOP_SLASH: filenames are written with "/" slash

◆ put_eol()

int put_eol ( FILE *  fd)

◆ put_line()

int put_line ( FILE *  fd,
char *  s 
)