vim 使用者手冊第三章 moving around
usr_03 Moving around
03.1 Word movement
This is a line with example text
--->-->->----------------->
w w w 3w
This is a line with example text
<----<--<-<---------<---
b b b 2b b
This is a line with example text
<- <--- -----> ---->
ge ge e e
:set iskeyword&
ge b w e
<- <- —> —>
This is-a line, with special/separated/words (and some more).
<----- <----- --------------------> ----->
gE B W E
03.2 Moving to the start or end of a line
^
<------------
.....This is a line with example text
<----------------- --------------->
0 $
03.3 Moving to a character
To err is human. To really foul up you need a computer.
---------->--------------->
fh fy
To err is human. To really foul up you need a computer. ~
--------------------->
3fl
To err is human. To really foul up you need a computer. ~
<---------------------
Fh
To err is human. To really foul up you need a computer. ~
<------------ ------------->
Th tn
03.4 Matching a parenthesis
%
<----->
if (a == (b * c) / d) ~
<---------------->
%
03.5 Moving to a specific line
| first line of a file ^
| text text text text |
| text text text text | gg
7G | text text text text |
| text text text text
| text text text text
V text text text text |
text text text text | G
text text text text |
last line of a file V
+---------------------------+
H --> | text sample text |
| sample text |
| text sample text |
| sample text |
M --> | text sample text |
| sample text |
| text sample text |
| sample text |
L --> | text sample text |
+---------------------------+
03.6 Telling where you are
- Use the CTRL-G command.
- Set the ‘number’ option.
- Set the ‘ruler’ option.
03.7 Scrolling around
The CTRL-U command scrolls down half a screen of text.
The CTRL-D command scrolls the text up half a screen.
To scroll one line at a time use CTRL-E (scroll up) and CTRL-Y (scroll down).
Fortunately CTRL-F is Forward and CTRL-B is Backward.
±-----------------+ ±-----------------+
| some text | | some text |
| some text | | some text |
| some text | | some text |
| some text | zz --> | line with cursor |
| some text | | some text |
| some text | | some text |
| line with cursor | | some text |
±-----------------+ ±-----------------+
03.8 Simple searches
/include
?word
n N search direction
IGNORING CASE
:set ignorecase
:set noignorecase
HISTORY
SEARCHING FOR A WORD IN THE TEXT
SEARCHING FOR WHOLE WORDS
/<the>
HIGHLIGHTING MATCHES
:set hlsearch
:set nohlsearch
:nohlsearch
TUNING SEARCHES
:set incsearch
:set nowrapscan
INTERMEZZO
:scriptnames
:edit ~/.vimrc
03.9 Simple search patterns
BEGINNING AND END OF A LINE
/^the$
MATCHING ANY SINGLE CHARACTER
c.m
MATCHING SPECIAL CHARACTERS
ter.
03.10 Using marks
``
CTRL-O
CTRL-I
The “:jumps” command gives a list of positions you jumped to.
NAMED MARKS
ma
ms
`a
:marks
相關文章
- sqlmap使用者手冊SQL
- PuTTY使用者手冊
- sqlmap使用者手冊[續]SQL
- ZYNQ核心板使用者手冊
- vim-plug使用手冊
- JS Array play aroundJS
- 使用者手冊:智慧家居系統
- moving window baseline
- CDH 5.7.1單使用者模式部署手冊模式
- MaxCompute 圖計算使用者手冊(下)
- MaxCompute 圖計算使用者手冊(上)
- 【譯】 Types are moving to the right
- Stimulsoft Reports使用者手冊:如何建立關係
- 【轉】[C#] NVelocity 使用者手冊 英文原版C#
- 全志A13處理器使用者手冊
- 手冊
- Abp 實現通過手機號註冊使用者
- tep使用者手冊幫你從unittest過渡到pytest
- codeforces1472G. Moving to the CapitalAPI
- Zmap詳細使用者手冊和DDOS的可行性
- Redis手冊Redis
- SparkSQL手冊SparkSQL
- MongoDB手冊MongoDB
- 前端手冊前端
- Moving Tables(貪心演算法)演算法
- 理解滑動平均(exponential moving average)
- AppUse(Android測試平臺)使用者手冊 v2-2APPAndroid
- 龍芯LS232使用者手冊晶片資料介紹晶片
- [轉帖]Moving the JDK to a Two Year LTS CadenceJDK
- RPA 快速手冊
- CMD命令手冊
- Nmap速查手冊
- JVM指令手冊JVM
- TypeScript中文手冊TypeScript
- JS速查手冊JS
- Walk手冊(一)
- App annie:使用者獲取權威指導手冊(附下載)APP
- 三菱PLC Q系列溫度控制模組使用者手冊