vi set Options

Option

Default

autoindent (ai)

noai

autoprint (ap)

ap

autowrite (aw)

noaw

beautify (bf)

nobf

directory (dir)

/tmp

edcompatible

noedcompatible

errorbells (eb)

errorbells

exrc (ex)

noexrc

hardtabs (ht)

8

ignorecase (ic)

noic

lisp

nolisp

list

nolist

magic

magic

mesg

mesg

novice

nonovice

number (nu)

nonu

open

open

optimize (opt)

noopt

paragraphs (para)

IPLPPPQP LIpplpipbp

prompt

prompt

readonly (ro)

noro

redraw (re)

 

remap

remap

report

5

scroll

half window

sections (sect)

SHNHH HU

shell (sh)

/bin/sh

shiftwidth (sw)

8

showmatch (sm)

nosm

showmode

noshowmode

slowopen (slow)

 

tabstop (ts)

8

taglength (tl)

0

tags

tags /usr/lib/tags

tagstack

tagstack

term

(from $TERM)

terse

noterse

timeout (to)

timeout

ttytype

(from $TERM)

warn

warn

window (w)

 

wrapscan (ws)

ws

wrapmargin (wm)

0

writeany (wa)

nowa

Get vi and Vim Editors Pocket Reference, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.