VIS(1) General Commands Manual VIS(1) (NAME) vis - (SYNOPSIS) vis [-v] [+command] [--] [files ...] (DESCRIPTION) vis vi(m) sam . vi/sam . . : -v . +command command . -- . . - vis :wq . vis /dev/tty . . (Selections) vis (selections) . (cursor) (anchor) . . . . ( viewport ). (Modes) vis (modal) vi . `normal' `operator pending' `insert' `replace' `visual' ( ) . visual block ex vis (interactive) sam . (normal mode) . / (Undo/Redo) vis (undo tree) . u () ( ) . g+ g- . :earlier :later . (Marks) (mark) . . . m M . 'am a 'aM . m M . : '' '^ visual 'a-'z . . (Jump list) (jump list) ( ) . g< g> gs (Registers) (registers) . . : "" "a-"z "A-"Z "*, "+ vis-clipboard(1) "0 (yank) "1-"9 "& x y "/ ": "_ (/dev/null) "# () ". . (Macros) "a-"z . "A-"Z . q @ . @@ . @: : . @/ n . . (Encoding, Tab and Newline handling) vis UTF-8 \n . iconv(1) dos2unix(1) . ( SET (SET OPTIONS) ). (Mouse support) . (SAM COMMANDS) vis sam(1) . (Regular expressions) vis C . " (Extended Regular Expressions)" regex(7) . ^ $ . \n \t . . . . (Addresses) ( ) . " n" n- . " n" n- ".*\n?" . . sam dot () . vis "dot" ( ) . (Simple addresses) #n n #0 . n n. /regexp/ ?regexp? (/) (?) . () (wrap around ). 0 . + - . $ . . Dot () . 'm m . (Compound addresses) a1 a2 . a1+a2 a2 a1 . a1-a2 a2 a1 . a1,a2 a1 a2. a1 0 . a2 $ . a1;a2 a1,a2 a2 a1 a1 . + - , ; . + - a2 . a1 . . a1 a2 + . a2 ? + - . % , 0,$ . . (Commands) (ASCII) - . . \n \t \/ ( /) (quote) . & \n n ( ) . . . . . x y 0,$ . w wq . . (visual) x . <<>> (range) . . <<>> : . . (interactive) . (Text commands) a[count]/text/ text count . : a lines of text . c i a c i . d . (Display commands) p . / (I/O commands) e[!] [file name] . . r file name . w[!] [file name] ( 0,$) . wq[!] [file name] w . . e w . e ! . w . . < shell command . > shell command . | shell command . ! shell command . cd directory . $HOME . < > | ! ( ) . vis_filepath vis_filename . (Loops and conditionals) x/regexp/ [command] . /.*\n/ . . "1-"9 "& () . y/regexp/ [command] x x . . . X/regexp/ command . . Y/regexp/ command X . g[count][/regexp/] command v[count][/regexp/] command count (g) (v) . count n m . n,m n m. n 1 . m . . %n n- . . x y p . X Y g v . (Grouping and multiple changes) . : () . . x/re/ c/text/ . . . . VI(M) (VI(M) KEY BINDINGS) . C- S- M- > . :help . (Operators) (motion) (text object) . vis (operator pending) . c d < > y (yank) . = fmt(1) gu gU g~ J gJ p P (Motions) . 0 b B (WORD) $ e E (WORD) F f ^ g0 g$ ge gE (WORD) gg G gj gk gh gl gH gL g_ gm g| h H j k l L % } ) N n [{ ]} [( ]) { ( ; (to/till) , # * T t ?pattern pattern /pattern pattern w W (WORD) (Text objects) . ( i) ( a) . w (word) W (WORD) s (sentence) p (paragraph) [, ], (, ), {, }, <, >, ", ', ` : gn gN al il (Multiple Selections) vis . (viewport) . . . : count count count count visual count count count count visual : I A ( ) count count count count + count - count _ o normal : . . 'a| a . . | & \ ~ VI(M) (VI(M) COMMANDS) . (File and Window management) . . () () . h j k l . :new () :vnew () :open[!] [file name] :split [file name] :vsplit [file name] :q[!] [exit code] :qall[!] [exit code] ( 0) vis-open(1) . (Runtime key mappings) vis . :map[!] mode lhs rhs :map-window[!] mode lhs rhs :unmap mode lhs :unmap-window mode lhs mode `normal' `insert' `replace' `visual' `visual-line' `operator-pending' lhs rhs . map ! . : :map! normal j 2j . vis (key actions) . :help . (Keyboard Layout Specific Mappings) vis :langmap locale-keys latin-keys . : :langmap hjkl . insert replace . / (Undo/Redo) :earlier [count] :later [count] d () h () m () s () count . SET (SET OPTIONS) :set ( ) . . () ! . . . shell ["/bin/sh"] SHELL /etc/passwd . escdelay [50] (escape sequence) . tabwidth, tw [8] expandtab. autoindent, ai [off] . expandtab, et [off] tabwidth . numbers, nu [off] . relativenumbers, rnu [off] . numberwidth, nuw [0] number relativenumbers . cursorline, cul [off] . colorcolumn, cc [0] . horizon [32768] (lexer) . theme ["default-16" or "default-256"] . themes/ (FILES) . syntax [auto] . showtabs [off] . shownewlines [off] . showspaces [off] . showeof [on] . savemethod [auto] atomic rename(2) inplace (truncate) auto . (rename) ACL SELinux . loadmethod [auto] read mmap (memory map) () auto 8 . : (in-place) . layout ["v" or "h"] . ignorecase, ic [off] . wrapcolumn, wc [0] wrapcolumn. breakat, brk [""] (word wrap) . (COMMAND AND SEARCH PROMPT) : / ? insert . normal . . . . (CONFIGURATION) vis Lua . visrc.lua ( (FILES) ) . : vis:command('set number') (ENVIRONMENT) VIS_PATH Lua. HOME cd . TERM curses xterm . SHELL / ! > < |. XDG_CONFIG_HOME $HOME/.config . (ASYNCHRONOUS EVENTS) SIGSTOP . SIGCONT . SIGBUS (mmap(2)) (truncate) . SIGHUP SIGTERM . . SIGINT . SIGWINCH . (FILES) vis visrc.lua . :help . o $VIS_PATH o vis ( /proc/self/exe ). o $XDG_CONFIG_HOME/vis XDG_CONFIG_HOME $HOME/.config . o /etc/vis . o /usr/local/share/vis /usr/share/vis . visrc.lua . (EXIT STATUS) The vis utility exits 0 on success, and >0 if an error occurs. (EXAMPLES) vis . $ { echo Pick your number; seq 1 10; } | vis - > choice vis-open(1) C: :e *.c (pipe) : :> { plumber <&3 3<&- & } 3<&0 1>&- 2>&- (SEE ALSO) sam(1), vi(1), vis-clipboard(1), vis-complete(1), vis-digraph(1), vis-menu(1), vis-open(1) A Tutorial for the Sam Command Language: http://doc.cat-v.org/bell_labs/sam_lang_tutorial/sam_tut.pdf Rob Pike The Text Editor sam: http://doc.cat-v.org/plan_9/4th_edition/papers/sam Rob Pike Plan 9 manual page for sam(1): http://man.cat-v.org/plan_9/1/sam Structural Regular Expressions: http://doc.cat-v.org/bell_labs/structural_regexps/se.pdf Rob Pike vi - screen-oriented (visual) display editor: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/vi.html IEEE Std 1003.1 ("POSIX.1") (STANDARDS) vis IEEE Std 1003.1 ("POSIX.1") vi . (AUTHORS) vis Marc Andre Tanner . (BUGS) vis . Vis v0.9-498-gad0f1deb-dirty May 14, 2026 Vis v0.9-498-gad0f1deb-dirty