📄 00000001.htm
字号:
* | f<char> | <*> <char>s to the right (find). <BR> * | t<char> | Till before <*> <char>s to the right. <BR> * | F<char> | <*> <char>s to the left. <BR> * | T<char> | Till after <*> <char>s to the left. <BR> * | ; | Repeat latest `f'|`t'|`F'|`T' <*> times. <BR> * | , | Idem in opposite direction. <BR> * | w | <*> words forward. <BR> * | W | <*> WORDS forward. <BR> * | b | <*> words backward. <BR> * | B | <*> WORDS backward. <BR> * | e | To the end of word <*> forward. <BR> * | E | To the end of WORD <*> forward. <BR> * | G | Go to line <*> (default EOF). <BR> * | H | To line <*> from top of the screen (home). <BR> * | L | To line <*> from bottom of the screen (last). <BR> - | M | To the middle line of the screen. <BR> * | ) | <*> sentences forward. <BR> * | ( | <*> sentences backward. <BR> * | } | <*> paragraphs forward. <BR> * | { | <*> paragraphs backward. <BR> - | ]] | To the next section (default EOF). <BR> - | [[ | To the previous section (default begin of file). <BR> - | `<a-z> | To the mark. <BR> - | '<a-z> | To the first CHAR of the line with the mark. <BR> - | `` | To the cursor position before the latest absolute <BR> | jump (of which are examples `/' and `G'). <BR> - | '' | To the first CHAR of the line on which the cursor <BR> | was placed before the latest absolute jump. <BR> - | /<string> | To the next occurrence of <string>. <BR> - | ?<string> | To the previous occurrence of <string>. <BR> - | n | Repeat latest `/'|`?' (next). <BR> - | N | Idem in opposite direction. <BR> - | % | Find the next bracket and go to its match <BR> | (also with `{'|`}' and `['|`]'). <BR> <BR> <BR> <BR> <BR> ///////////////////////// <BR> / searching (see above) / <BR> ///////////////////////// <BR> <BR> <BR> <BR> :ta <name> | Search in the tags file[s] where <name> is <BR> | defined (file, line), and go to it. <BR> ^] | Use the name under the cursor in a `:ta' command. <BR> ^T | Pop the previous tag off the tagstack and return <BR> | to its position. <BR> :[x,y]g/<string>/<cmd> | Search globally [from line x to y] for <string> <BR> | and execute the `ex' <cmd> on each occurrence. <BR> :[x,y]v/<string>/<cmd> | Execute <cmd> on the lines that don't match. <BR> <BR> <BR> /////////////////// <BR> / undoing changes / <BR> /////////////////// <BR> <BR> u | Undo the latest change. <BR> U | Undo all changes on a line, while not having <BR> | moved off it (unfortunately). <BR> :q! | Quit vi without writing. <BR> :e! | Re-edit a messed-up file. <BR> <BR> /////////////////////////////////// <BR> / appending text (end with <esc>) / <BR> /////////////////////////////////// <BR> <BR> * | a | <*> times after the cursor. <BR> * | A | <*> times at the end of line. <BR> * | i | <*> times before the cursor (insert). <BR> * | I | <*> times before the first CHAR of the line <BR> * | o | On a new line below the current (open). <BR> | The count is only useful on a slow terminal. <BR> * | O | On a new line above the current. <BR> | The count is only useful on a slow terminal. <BR> * | ><move> | Shift the lines described by <*><move> one <BR> | shiftwidth to the right. <BR> * | >> | Shift <*> lines one shiftwidth to the right. <BR> * | ["<a-zA-Z1-9>]p | Put the contents of the (default undo) buffer <BR> | <*> times after the cursor. <BR> | A buffer containing lines is put only once, <BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -