From b76270bf9e6dd375e495fec92140a79a79415d27 Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Wed, 19 May 2010 08:58:23 +0000 Subject: Slackware 13.1 Wed May 19 08:58:23 UTC 2010 Slackware 13.1 x86_64 stable is released! Lots of thanks are due -- see the RELEASE_NOTES and the rest of the ChangeLog for credits. The ISOs are on their way to replication, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. We are taking pre-orders now at store.slackware.com, and offering a discount if you sign up for a subscription. Consider picking up a copy to help support the project. Thanks again to the Slackware community for testing, contributing, and generally holding us to a high level of quality. :-) Enjoy! --- misc/slackbook/html/vi-keys.html | 279 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 279 insertions(+) create mode 100644 misc/slackbook/html/vi-keys.html (limited to 'misc/slackbook/html/vi-keys.html') diff --git a/misc/slackbook/html/vi-keys.html b/misc/slackbook/html/vi-keys.html new file mode 100644 index 000000000..a23863606 --- /dev/null +++ b/misc/slackbook/html/vi-keys.html @@ -0,0 +1,279 @@ + + + + +Vi Keys + + + + + + + + + + + +
+

16.7 Vi Keys

+ +

This section is a quick reference of many common vi commands. +Some of these were discussed earlier in the chapter, while many will be new.

+ +
+

Table 16-1. Movement

+ + +++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OperationKey
left, down, up, righth, j, k, l
To the end of the line$
To the beginning of the line^
To the end of the fileG
To the beginning of the file:1
To line 47:47
+
+ +
+

Table 16-2. Editing

+ + +++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OperationKey
Removing a linedd
Removing five lines5dd
Replacing a characterr
Removing a characterx
Removing ten characters10x
Undo last actionu
Join current and next linesJ
Replace old with new, globally%s'old'new'g
+
+ +
+

Table 16-3. Searching

+ + +++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OperationKey
Search for “asdf”/asdf
Search backwards for “asdf”?asdf
Repeat last search forwards/
Repeat last search backwards?
Repeat last search, same directionn
Repeat last search, opposite directionN
+
+ +
+

Table 16-4. Saving and Quitting

+ + +++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OperationKey
Quit:q
Quit without saving:q!
Write and quit:wq
Write, without quitting:w
Reload currently open file:e!
Write buffer to file asdf:w asdf
Open file hejaz:e hejaz
Read file asdf into buffer:r asdf
Read output of ls into buffer:r !ls
+
+
+ + + + + -- cgit v1.2.3