SEARU.ORG
当前位置:SEARU.ORG > Linux 软件 > 正文

文本编辑器 vis

vis 目标是成为一个现代化的,简单而高效的VIM般的编辑器。主要内容如下:

入门/编译指令

为了建立 vis ,你需要一个C99 编译和

上述需求满足以后,执行

$ ./configure && make && sudo make install

 编辑器特征

操作:

  • c   (change)

  • d   (delete)

  • !   (filter)

  • =   (format using fmt(1))

  • gu  (make lowercase)

  • gU  (make uppercase)

  • J   (join)

  • p   (put)

  • <   (shift-left)

  • >   (shift-right)

  • ~   (swap case)

  • y   (yank)

活动:

  • 0        (start of line)

  • b        (previous start of a word)

  • B        (previous start of a WORD)

  • $        (end of line)

  • e        (next end of a word)

  • E        (next end of a WORD)

  • F{char}  (to next occurrence of char to the left)

  • f{char}  (to next occurrence of char to the right)

  • ^        (first non-blank of line)

  • g0       (begin of display line)

  • g$       (end of display line)

  • ge       (previous end of a word)

  • gE       (previous end of a WORD)

  • gg       (begin of file)

  • G        (goto line or end of file)

  • gj       (display line down)

  • gk       (display line up)

  • g_       (last non-blank of line)

  • gm       (middle of display line)

  • |        (goto column)

  • h        (char left)

  • H        (goto top/home line of window)

  • j        (line down)

  • k        (line up)

  • l        (char right)

  • L        (goto bottom/last line of window)

  • `{mark}  (go to mark)

  • ‘{mark}  (go to start of line containing mark)

  • %        (match bracket)

  • M        (goto middle line of window)

  • ]]       (next end of C-like function)

  • }        (next paragraph)

  • )        (next sentence)

  • ][       (next start of C-like function)

  • N        (repeat last search backwards)

  • n        (repeat last search forward)

  • []       (previous end of C-like function)

  • {        (previous paragraph)

  • (        (previous sentence)

  • [[       (previous start of C-like function)

  • ;        (repeat last to/till movement)

  • ,        (repeat last to/till movement but in opposite direction)

  • #        (search word under cursor backwards)

  • *        (search word under cursor forwards)

  • T{char}  (till before next occurrence of char to the left)

  • t{char}  (till before next occurrence of char to the right)

  • ?{text}  (to next match of text in backward direction)

  • /{text}  (to next match of text in forward direction)

  • w        (next start of a word)

  • W        (next start of a WORD)

文本对象

  • w  word

  • W  WORD

  • s  sentence

  • p  paragraph

  • [,], (,), {,}, <,>, “, ‘, `         block enclosed by these symbols

未经允许不得转载:SEARU.ORG » 文本编辑器 vis

赞 (0)
分享到:更多 ()

评论 0