vim

2021-08-27  本文已影响0人  lindyang

Chapter 1: Basic Editing

alias

undo

Second U undoes the preceding U

edit

help

  • help deleting
  • help CTRL-A "default normal mode
  • help i_CTRL-H "mode
  • help -t "option
  • help 'number' "set nu
  • help <Up> "Special keys
    image.png
    Vim是Ex行编辑器的可视模式。或者说,Ex是Vim的底层行编辑器

tutor

Chapter 2: Editing a Little Faster

word movement

Scrolling Up and Down

Delete

Change

Join lines

Replace

Case

Keyboard Macros

Digraphs

Chapter 3: Searching

Chapter 4: Text Blocks and Multiple Files

'{mark}moves to the beginning . 
`{mark} moves to the marked line and column.

Filtering

edit another file

There are can be three matches active at one time. 
These are set by the :match, :2match, and :3match commands. 
If some text is matched by more than one command, the lowest one wins.

Chapter 5: Windows and Tabs

buffers

If it has a window on the screen, it is a buffer;
if it is not on the screen, it is not a buffer.
Active Appears onscreen.
Hidden A file is being edited, but does not appear onscreen.
Inactive The file is not being edited, but keep the information about it anyway.
- Inactive buffer.
h Buffer is hidden.
% Current buffer.
# Alternate buffer.
+ File has been modified.

Tabs

The CTRL-Wgf command opens a new tab and starts to edit the file who's
name is under the cursor. Vim will search for the file using the same algorithm
as it uses for the :find command. The CTRL-WgF command does the same thing,
only it goes a step farther. It not only starts editing the file in a new tab, but
jumps to the line number following the file name.

Chapter 6: Basic Visual Mode

上一篇下一篇

猜你喜欢

热点阅读