mirror of
https://github.com/Hizenberg469/Vim-tutorials.git
synced 2026-04-19 22:02:24 +03:00
navigation
This commit is contained in:
BIN
.deletinglesson.txt.un~
Normal file
BIN
.deletinglesson.txt.un~
Normal file
Binary file not shown.
BIN
Exercise-01-CreatingandEditingaNewFilewithVim.pdf
Normal file
BIN
Exercise-01-CreatingandEditingaNewFilewithVim.pdf
Normal file
Binary file not shown.
BIN
Exercise-02-EssentialNavigationCommands.pdf
Normal file
BIN
Exercise-02-EssentialNavigationCommands.pdf
Normal file
Binary file not shown.
BIN
Exercise-03-DeletingText.pdf
Normal file
BIN
Exercise-03-DeletingText.pdf
Normal file
Binary file not shown.
BIN
Exercise-04-GettingHelp.pdf
Normal file
BIN
Exercise-04-GettingHelp.pdf
Normal file
Binary file not shown.
BIN
Exercise-05-CutCopyPaste.pdf
Normal file
BIN
Exercise-05-CutCopyPaste.pdf
Normal file
Binary file not shown.
BIN
Exercise-06-InsertingChangingReplacingandJoining.pdf
Normal file
BIN
Exercise-06-InsertingChangingReplacingandJoining.pdf
Normal file
Binary file not shown.
BIN
Exercise-07-SearchFindReplace.pdf
Normal file
BIN
Exercise-07-SearchFindReplace.pdf
Normal file
Binary file not shown.
BIN
Exercise-08-TextObjects.pdf
Normal file
BIN
Exercise-08-TextObjects.pdf
Normal file
Binary file not shown.
BIN
Exercise-09-Macros.pdf
Normal file
BIN
Exercise-09-Macros.pdf
Normal file
Binary file not shown.
BIN
Exercise-10-VisualMode.pdf
Normal file
BIN
Exercise-10-VisualMode.pdf
Normal file
Binary file not shown.
BIN
Exercise-11-Vimrc.pdf
Normal file
BIN
Exercise-11-Vimrc.pdf
Normal file
Binary file not shown.
BIN
Exercise-12-Buffers.pdf
Normal file
BIN
Exercise-12-Buffers.pdf
Normal file
Binary file not shown.
10
buf-ant.txt
Normal file
10
buf-ant.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
# # # #######
|
||||
# # ## # #
|
||||
# # # # # #
|
||||
# # # # # #
|
||||
####### # # # #
|
||||
# # # ## #
|
||||
# # # # #
|
||||
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
10
buf-bed.txt
Normal file
10
buf-bed.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
###### ####### ######
|
||||
# # # # #
|
||||
# # # # #
|
||||
###### ##### # #
|
||||
# # # # #
|
||||
# # # # #
|
||||
###### ####### ######
|
||||
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
10
buf-cat.txt
Normal file
10
buf-cat.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
##### # #######
|
||||
# # # # #
|
||||
# # # #
|
||||
# # # #
|
||||
# ####### #
|
||||
# # # # #
|
||||
##### # # #
|
||||
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
10
buf-dad.txt
Normal file
10
buf-dad.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
###### # ######
|
||||
# # # # # #
|
||||
# # # # # #
|
||||
# # # # # #
|
||||
# # ####### # #
|
||||
# # # # # #
|
||||
###### # # ######
|
||||
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
57
cutcopypaste.txt
Normal file
57
cutcopypaste.txt
Normal file
@@ -0,0 +1,57 @@
|
||||
Cut this line and paste it after the line of hyphens.
|
||||
This is just some random text.
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
This line should come after "The quick brown fox jumps over the lazy dog."
|
||||
The quick brown fox jumps over the lazy dog.
|
||||
|
||||
One does not simply walk into the data center.
|
||||
|
||||
Every good boy deserves fudge.
|
||||
|
||||
Its gates are guarded by more than just computer operators.
|
||||
|
||||
There are system administrators there that do not sleep.
|
||||
|
||||
fi
|
||||
|
||||
badcfe
|
||||
|
||||
to the beginning. Move this
|
||||
|
||||
Can you dupe this?
|
||||
|
||||
Can you double dupe this?
|
||||
|
||||
Can you double dupe this, again?
|
||||
|
||||
Duplicate this entire line.
|
||||
|
||||
In the works of Eco, a predominant concept is the distinction between opening
|
||||
and closing. Lacan suggests the use of the subcultural paradigm of expression to
|
||||
challenge hierarchy. Thus, the characteristic theme of la Fournier’s analysis of
|
||||
subcultural theory is the difference between class and society.
|
||||
|
||||
Many discourses concerning realism exist. Therefore, Sartre's model of
|
||||
semioticist desituationism holds that consciousness, surprisingly, has objective
|
||||
value.
|
||||
|
||||
TODO
|
||||
This line needs to be fixed at some point in the future.
|
||||
Fix this line too!
|
||||
You're work is not quite finished...
|
||||
|
||||
The subject is interpolated into a subcultural theory that includes art as a
|
||||
paradox. It could be said that if preconstructive materialism holds, the works
|
||||
of Tarantino are empowering.
|
||||
|
||||
Put this line in the a register.
|
||||
Put this one in the b register.
|
||||
Append this line to the a register.
|
||||
Append this line to the b register.
|
||||
|
||||
Zebra <= Cut this word into the z register.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
This training is being provided by LinuxTrainingAcademy.com.
|
||||
75
deletinglesson.txt
Normal file
75
deletinglesson.txt
Normal file
@@ -0,0 +1,75 @@
|
||||
You can use this file to practice editing.
|
||||
|
||||
First, fix this spelling mistake.
|
||||
Fix these also.
|
||||
Delete this text with the X command.
|
||||
This this training training is is provided provided by LinuxTrainingAcademy.com.
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
Here is another line of text.
|
||||
Guess what? Here is even more text!
|
||||
Will you delete this line or not? We'll see...
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
two three four five six seven eight nine ten eleven twelve thirteen
|
||||
three four five six seven eight nine ten eleven twelve thirteen
|
||||
four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
Far far away, behind the wild mountains, far from the countries Vokalia and
|
||||
Consonantia, there live the blind texts. Separated they live in Bookmarksgrove
|
||||
right at the coast of the Semantics, a large language ocean.
|
||||
|
||||
A small river named Duden flows by their place and supplies it with the
|
||||
necessary regelialia. It is a paradisematic country, in which roasted parts of
|
||||
sentences fly into your mouth.
|
||||
|
||||
Even the all-powerful Pointing has no control about the blind texts it is an
|
||||
almost unorthographic life One day however a small line of blind text by the
|
||||
name of Lorem Ipsum decided to leave for the far World of Grammar.
|
||||
|
||||
The Big Oxmox advised her not to do so, because there were thousands of bad
|
||||
Commas, wild Question Marks and devious Semikoli, but the Little Blind Text
|
||||
didn't listen. She packed her seven versalia, put her initial into the belt and
|
||||
made herself on the way. When she reached the first hills of the Italic
|
||||
Mountains, she had a last view back on the skyline of her hometown
|
||||
Bookmarksgrove, the headline of Alphabet Village and the subline of her own
|
||||
road, the Line Lane. Pityful a rethoric question ran over her cheek, then she
|
||||
continued her way.
|
||||
|
||||
On her way she met a copy. The copy warned the Little Blind Text, that where
|
||||
it came from it would have been rewritten a thousand times and everything that
|
||||
was left from its origin would be the word "and" and the Little Blind Text
|
||||
should turn around and return to its own, safe country.
|
||||
|
||||
But nothing the copy said could convince her and so it didn't take long until
|
||||
a few insidious Copy Writers ambushed her, made her drunk with Longe and Parole
|
||||
and dragged her into their agency, where they abused her for their projects
|
||||
again and again. And if she hasn't been rewritten, then they are still using
|
||||
her.
|
||||
|
||||
This training is being provided by LinuxTrainingAcademy.com.
|
||||
75
deletinglesson.txt~
Normal file
75
deletinglesson.txt~
Normal file
@@ -0,0 +1,75 @@
|
||||
You can use this file to practice editing.
|
||||
|
||||
First, fix this spelling mistakke.
|
||||
Fixx theese allso.
|
||||
Delete this text with the X command.
|
||||
This this training training is is provided provided by LinuxTrainingAcademy.com.
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
Here is another line of text.
|
||||
Guess what? Here is even more text!
|
||||
Will you delete this line or not? We'll see...
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
two three four five six seven eight nine ten eleven twelve thirteen
|
||||
three four five six seven eight nine ten eleven twelve thirteen
|
||||
four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
Far far away, behind the wild mountains, far from the countries Vokalia and
|
||||
Consonantia, there live the blind texts. Separated they live in Bookmarksgrove
|
||||
right at the coast of the Semantics, a large language ocean.
|
||||
|
||||
A small river named Duden flows by their place and supplies it with the
|
||||
necessary regelialia. It is a paradisematic country, in which roasted parts of
|
||||
sentences fly into your mouth.
|
||||
|
||||
Even the all-powerful Pointing has no control about the blind texts it is an
|
||||
almost unorthographic life One day however a small line of blind text by the
|
||||
name of Lorem Ipsum decided to leave for the far World of Grammar.
|
||||
|
||||
The Big Oxmox advised her not to do so, because there were thousands of bad
|
||||
Commas, wild Question Marks and devious Semikoli, but the Little Blind Text
|
||||
didn't listen. She packed her seven versalia, put her initial into the belt and
|
||||
made herself on the way. When she reached the first hills of the Italic
|
||||
Mountains, she had a last view back on the skyline of her hometown
|
||||
Bookmarksgrove, the headline of Alphabet Village and the subline of her own
|
||||
road, the Line Lane. Pityful a rethoric question ran over her cheek, then she
|
||||
continued her way.
|
||||
|
||||
On her way she met a copy. The copy warned the Little Blind Text, that where
|
||||
it came from it would have been rewritten a thousand times and everything that
|
||||
was left from its origin would be the word "and" and the Little Blind Text
|
||||
should turn around and return to its own, safe country.
|
||||
|
||||
But nothing the copy said could convince her and so it didn't take long until
|
||||
a few insidious Copy Writers ambushed her, made her drunk with Longe and Parole
|
||||
and dragged her into their agency, where they abused her for their projects
|
||||
again and again. And if she hasn't been rewritten, then they are still using
|
||||
her.
|
||||
|
||||
This training is being provided by LinuxTrainingAcademy.com.
|
||||
63
dyp.txt
Normal file
63
dyp.txt
Normal file
@@ -0,0 +1,63 @@
|
||||
This was originally the first line in the file.
|
||||
This was originally the second line in the file.
|
||||
|
||||
What was the first line in the file originally? Place it below:
|
||||
|
||||
What was the first line in the file originally? Place it above:
|
||||
|
||||
Fix the following typing errors:
|
||||
teh
|
||||
psell
|
||||
vmi
|
||||
wrod
|
||||
taht
|
||||
|
||||
second, First, third.
|
||||
|
||||
Duplicate this line.
|
||||
|
||||
I really, really, love vim!
|
||||
|
||||
TODO
|
||||
Fix this
|
||||
Delete this
|
||||
Delete this
|
||||
|
||||
Fix this
|
||||
Delete this
|
||||
Delete this
|
||||
Delete this
|
||||
|
||||
Fix this
|
||||
Delete this
|
||||
Delete this
|
||||
|
||||
Fix this
|
||||
Delete this
|
||||
Delete this
|
||||
Delete this
|
||||
|
||||
Fix this
|
||||
Delete this
|
||||
Delete this
|
||||
|
||||
Yank this line into the "j register.
|
||||
Yank this line into the "f register.
|
||||
|
||||
Put the contents of the "j register below:
|
||||
|
||||
Put the contents of the "f register below:
|
||||
|
||||
Append this line to the "j register.
|
||||
Append this line to the "f register.
|
||||
|
||||
Put the contents of the "j register below:
|
||||
|
||||
Put the contents of the "f register below:
|
||||
|
||||
ONE)
|
||||
TWO)
|
||||
THREE)
|
||||
|
||||
|
||||
This training is being provided by LinuxTrainingAcademy.com.
|
||||
BIN
exercise/.exercise_01.un~
Normal file
BIN
exercise/.exercise_01.un~
Normal file
Binary file not shown.
5
exercise/exercise_01
Normal file
5
exercise/exercise_01
Normal file
@@ -0,0 +1,5 @@
|
||||
Hello there,
|
||||
|
||||
I have started my day not much to do. Just want to learn about vim and be expert at it. I'm thinking of using it as text editor.
|
||||
|
||||
Have a nice day.
|
||||
0
exercise/exercise_01~
Normal file
0
exercise/exercise_01~
Normal file
52
gvim.txt
Normal file
52
gvim.txt
Normal file
@@ -0,0 +1,52 @@
|
||||
Alabama, Montgomery
|
||||
Alaska, Juneau
|
||||
Arizona, Phoenix
|
||||
Arkansas, Littlerock
|
||||
California, Sacramento
|
||||
Colorado, Denver
|
||||
Connecticut, Hartford
|
||||
Delaware, Dover
|
||||
Florida, Tallahassee
|
||||
Georgia, Atlanta
|
||||
Hawaii, Honolulu
|
||||
Idaho, Boise
|
||||
Illinois, Springfield
|
||||
Indiana, Indianapolis
|
||||
Iowa, Des Moines
|
||||
Kansas, Topeka
|
||||
Kentucky, Frankfort
|
||||
Louisiana, Baton Rouge
|
||||
Maine, Augusta
|
||||
Maryland, Annapolis
|
||||
Massachusetts, Boston
|
||||
Michigan, Lansing
|
||||
Minnesota, St. Paul
|
||||
Mississippi, Jackson
|
||||
Missouri, Jefferson City
|
||||
Montana, Helena
|
||||
Nebraska, Lincoln
|
||||
Nevada, Carson City
|
||||
New Hampshire, Concord
|
||||
New Jersey, Trenton
|
||||
New Mexico, Santa Fe
|
||||
New York, Albany
|
||||
North Carolina, Raleigh
|
||||
North Dakota, Bismarck
|
||||
Ohio, Columbus
|
||||
Oklahoma, Oklahoma City
|
||||
Oregon, Salem
|
||||
Pennsylvania, Harrisburg
|
||||
Rhode Island, Providence
|
||||
South Carolina, Columbia
|
||||
South Dakota, Pierre
|
||||
Tennessee, Nashville
|
||||
Texas, Austin
|
||||
Utah, Salt Lake City
|
||||
Vermont, Montpelier
|
||||
Virginia, Richmond
|
||||
Washington, Olympia
|
||||
West Virginia, Charleston
|
||||
Wisconsin, Madison
|
||||
Wyoming, Cheyenne
|
||||
|
||||
><
|
||||
23
help.txt
Normal file
23
help.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
Use :help to get help.
|
||||
|
||||
To exit out of help, type
|
||||
:q<ENTER>
|
||||
|
||||
You can specify a command to get help with, too.
|
||||
:help <COMMAND>
|
||||
|
||||
For example, if you wanted to know what "dd" does, type:
|
||||
:help dd<ENTER>
|
||||
|
||||
You can also get help on a given subject:
|
||||
:help {subject}
|
||||
|
||||
Example:
|
||||
:help count
|
||||
|
||||
You can even get help with :help.
|
||||
:help :help<ENTER>
|
||||
|
||||
The short version of the :help command is :h
|
||||
|
||||
To switch between the help window and the editing window, use CTRL-W CTRL-W
|
||||
8
ideas.txt
Normal file
8
ideas.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
shoudl I use SUBJECT-lesson and SUBJECT-exercise to normalize the data?
|
||||
|
||||
use ddp to rearrage the following lines in the proper order.
|
||||
3) adsf
|
||||
1) -asdfa
|
||||
4) -asdfasdf
|
||||
2) -asdf
|
||||
43
insert-practice.txt
Normal file
43
insert-practice.txt
Normal file
@@ -0,0 +1,43 @@
|
||||
<= What is your favorite editor?
|
||||
|
||||
<= What is your favorite color?
|
||||
|
||||
Enter your name here =><=
|
||||
|
||||
Enter your name here:
|
||||
|
||||
One the line below, type the name of your favorite movie.
|
||||
|
||||
^^^ One the line above, type the name of the editor you are using.
|
||||
|
||||
This line belongs
|
||||
with the one below it.
|
||||
|
||||
Vim is her favorite editor.
|
||||
|
||||
I have a white car.
|
||||
|
||||
I am having a great time in this vim class!
|
||||
|
||||
I love myself.
|
||||
|
||||
Type something wonderful here.
|
||||
|
||||
monday <= The "m" is supposed to be in uppercase.
|
||||
|
||||
Don't shout. It's not nice.
|
||||
|
||||
mONDAY'S START BETTER WITH coffee.
|
||||
|
||||
Don't Shout. It's just too loud.
|
||||
|
||||
Don't Shout. It's just too loud.
|
||||
|
||||
Please Whisper.
|
||||
|
||||
Create a line of asterisks below:
|
||||
|
||||
|
||||
Create 3 lines that begin with "-" below:
|
||||
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
68
inserting.txt
Normal file
68
inserting.txt
Normal file
@@ -0,0 +1,68 @@
|
||||
One of these lines is not like the other one.
|
||||
One of these is like the other one.
|
||||
|
||||
Hello, my name is Jason.
|
||||
my name is Jason.
|
||||
|
||||
Once upon a time.
|
||||
Oce upon a time.
|
||||
|
||||
There was no possibility of taking a walk that day.
|
||||
There was no possibility of taking a walk that
|
||||
|
||||
What is 2 + 2? Answer on the line below:
|
||||
|
||||
What is 3 + 1? Answer on the line above:
|
||||
|
||||
Create a line of asterisks below:
|
||||
|
||||
Create 5 lines that begin with "#".
|
||||
|
||||
Create 4 lines that begin with "10.11.12.".
|
||||
|
||||
Replace me!
|
||||
|
||||
The dog chased the mouse.
|
||||
|
||||
The bat chased the mouse.
|
||||
|
||||
The canine chased the mouse.
|
||||
|
||||
The canine chased the mouse.
|
||||
|
||||
The canine chased the mouse.
|
||||
|
||||
The cat chased the car as it sped down the street.
|
||||
|
||||
The cat chased the car as it sped down the street.
|
||||
|
||||
This line doesn't belong here!
|
||||
|
||||
the cat chased the mouse.
|
||||
|
||||
the cat chased the mouse.
|
||||
|
||||
the cat chased the mouse.
|
||||
|
||||
Make uppEr uppercase.
|
||||
|
||||
Make This All Uppercase.
|
||||
|
||||
Make LOwER lowercase.
|
||||
|
||||
Make This All Lowercase.
|
||||
|
||||
The cat chased
|
||||
the mouse.
|
||||
|
||||
The cat chased.
|
||||
The mouse ran.
|
||||
|
||||
3.
|
||||
4159
|
||||
|
||||
Thing 1
|
||||
Thing 2
|
||||
Thing 3
|
||||
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
119
macros-practice.txt
Normal file
119
macros-practice.txt
Normal file
@@ -0,0 +1,119 @@
|
||||
################################################################################
|
||||
# Before: print "Macros are very fun!"
|
||||
# After: print("Macros are very fun!")
|
||||
|
||||
print "Macros are very fun!"
|
||||
print "Macros are powerful."
|
||||
print "Macros use registers to store keystrokes."
|
||||
print "I'm so glad Vim has Macros!"
|
||||
|
||||
################################################################################
|
||||
# Before: jason
|
||||
# After: passwd -l jason && echo jason >> locked_users.txt
|
||||
|
||||
jason
|
||||
sophia
|
||||
jack
|
||||
emma
|
||||
ava
|
||||
|
||||
################################################################################
|
||||
# Before: 2798265253
|
||||
# After: (279) 826-5253
|
||||
|
||||
2798265253
|
||||
6189034410
|
||||
1484945696
|
||||
4317906896
|
||||
2799430841
|
||||
1047478277
|
||||
6916410205
|
||||
3355819338
|
||||
5909236283
|
||||
2596559739
|
||||
8786805143
|
||||
5013328873
|
||||
7999514683
|
||||
4117838228
|
||||
9619739991
|
||||
8958276012
|
||||
9859346956
|
||||
3396189061
|
||||
1901204747
|
||||
8908085062
|
||||
5469255241
|
||||
9207001354
|
||||
2135694193
|
||||
4083018809
|
||||
9307531230
|
||||
8602990709
|
||||
7041571881
|
||||
3025976131
|
||||
3253417438
|
||||
2178283221
|
||||
2851396731
|
||||
7497215331
|
||||
5911931954
|
||||
7546225372
|
||||
7152074664
|
||||
2037462294
|
||||
2605323972
|
||||
5724916411
|
||||
2433503994
|
||||
6588636629
|
||||
3519232904
|
||||
9968775123
|
||||
5588989433
|
||||
8744437153
|
||||
2746440780
|
||||
1915053283
|
||||
6043090832
|
||||
8768871331
|
||||
8939255738
|
||||
9711410096
|
||||
|
||||
################################################################################
|
||||
# Before: Jan 13 09:57:01 www1 kernel: [3947771.808744] [BLOCK] IN=eth0 OUT= MAC=e6:e9:2d:04:b6:95:3c:8a:b0:0d:6f:f0:08:00 SRC=190.18.193.152 DST=2.5.9.1 LEN=40 TOS=0x02 PREC=0x00 TTL=51 ID=25120 PROTO=TCP SPT=12502 DPT=23 WINDOW=4078 RES=0x00 SYN URGP=0
|
||||
# After: Jan 13 09:57:01,190.188.193.152,23
|
||||
|
||||
Jan 13 09:57:01 www1 kernel: [3947771.808744] [BLOCK] IN=eth0 OUT= MAC=e6:e9:2d:04:b6:95:3c:8a:b0:0d:6f:f0:08:00 SRC=190.18.193.152 DST=2.5.9.1 LEN=40 TOS=0x02 PREC=0x00 TTL=51 ID=25120 PROTO=TCP SPT=12502 DPT=23 WINDOW=4078 RES=0x00 SYN URGP=0
|
||||
Jan 13 09:57:03 www1 kernel: [3947773.766305] [BLOCK] IN=eth0 OUT= MAC=e6:e9:2d:04:b6:95:3c:8a:b0:0d:6f:f0:08:00 SRC=178.161.241.247 DST=2.5.9.1 LEN=40 TOS=0x00 PREC=0x00 TTL=57 ID=1285 PROTO=TCP SPT=2461 DPT=23 WINDOW=32485 RES=0x00 SYN URGP=0
|
||||
Jan 13 09:57:53 www1 kernel: [3947824.252547] [BLOCK] IN=eth0 OUT= MAC=e6:e9:2d:04:b6:95:3c:8a:b0:0d:3f:f0:08:00 SRC=121.97.255.189 DST=2.5.9.1 LEN=40 TOS=0x00 PREC=0x00 TTL=243 ID=18753 PROTO=TCP SPT=44235 DPT=23 WINDOW=14600 RES=0x00 SYN URGP=0
|
||||
Jan 13 09:58:03 www1 kernel: [3947833.987853] [BLOCK] IN=eth0 OUT= MAC=e6:e9:2d:04:b6:95:3c:8a:b0:0d:3f:f0:08:00 SRC=121.42.48.1 DST=2.5.9.1 LEN=60 TOS=0x00 PREC=0x00 TTL=46 ID=56401 DF PROTO=TCP SPT=51370 DPT=22 WINDOW=29200 RES=0x00 SYN URGP=0
|
||||
Jan 13 09:58:04 www1 kernel: [3947834.989647] [BLOCK] IN=eth0 OUT= MAC=e6:e9:2d:04:b6:95:3c:8a:b0:0d:3f:f0:08:00 SRC=121.42.48.1 DST=2.5.9.1 LEN=60 TOS=0x00 PREC=0x00 TTL=46 ID=56402 DF PROTO=TCP SPT=51370 DPT=22 WINDOW=29200 RES=0x00 SYN URGP=0
|
||||
Jan 13 09:58:14 www1 kernel: [3947844.954077] [BLOCK] IN=eth0 OUT= MAC=e6:e9:2d:04:b6:95:3c:8a:b0:0d:3f:f0:08:00 SRC=19.151.115.132 DST=2.5.9.1 LEN=40 TOS=0x00 PREC=0x00 TTL=245 ID=58247 PROTO=TCP SPT=16299 DPT=23 WINDOW=14600 RES=0x00 SYN URGP=0
|
||||
Jan 13 09:58:35 www1 kernel: [3947866.407376] [BLOCK] IN=eth0 OUT= MAC=e6:e9:2d:04:b6:95:3c:8a:b0:0d:6f:f0:08:00 SRC=67.20.141.62 DST=2.5.9.1 LEN=40 TOS=0x00 PREC=0x00 TTL=248 ID=52033 PROTO=TCP SPT=47676 DPT=59766 WINDOW=1024 RES=0x00 SYN URGP=0
|
||||
Jan 13 09:58:52 www1 kernel: [3947883.064171] [BLOCK] IN=eth0 OUT= MAC=e6:e9:2d:04:b6:95:3c:8a:b0:0d:3f:f0:08:00 SRC=171.233.166.26 DST=2.5.9.1 LEN=44 TOS=0x00 PREC=0x00 TTL=237 ID=49049 PROTO=TCP SPT=32189 DPT=23 WINDOW=14600 RES=0x00 SYN URGP=0
|
||||
Jan 13 10:00:06 www1 kernel: [3947957.338001] [BLOCK] IN=eth0 OUT= MAC=e6:e9:2d:04:b6:95:3c:8a:b0:0d:3f:f0:08:00 SRC=101.85.53.249 DST=2.5.9.1 LEN=40 TOS=0x00 PREC=0x00 TTL=52 ID=17125 PROTO=TCP SPT=5703 DPT=23 WINDOW=59049 RES=0x00 SYN URGP=0
|
||||
Jan 13 10:00:26 www1 kernel: [3947976.555062] [BLOCK] IN=eth0 OUT= MAC=e6:e9:2d:04:b6:95:3c:8a:b0:0d:6f:f0:08:00 SRC=17.172.212.191 DST=2.5.9.1 LEN=40 TOS=0x00 PREC=0x00 TTL=246 ID=12721 PROTO=TCP SPT=35320 DPT=23 WINDOW=14600 RES=0x00 SYN URGP=0
|
||||
|
||||
################################################################################
|
||||
# Before:
|
||||
# Country China
|
||||
# 1,380,950,000 people
|
||||
#
|
||||
# After:
|
||||
# 1,380,950,000;China
|
||||
|
||||
Country China
|
||||
1,380,950,000 people
|
||||
|
||||
Country India
|
||||
1,310,540,000 people
|
||||
|
||||
Country United States
|
||||
324,369,000 people
|
||||
|
||||
Country Indonesia
|
||||
260,581,000 people
|
||||
|
||||
Country Brazil
|
||||
206,960,000 people
|
||||
|
||||
################################################################################
|
||||
# Before: <a href="#">@armyspy.com</a>
|
||||
# After: armyspy.com
|
||||
|
||||
<a href="#">@armyspy.com</a><a href="#">@cuvox.de</a><a href="#">@dayrep.com</a><a href="#">@einrot.com</a><a href="#">@fleckens.hu</a><a href="#">@gustr.com</a><a href="#">@jourrapide.com</a><a href="#">@rhyta.com</a><a href="#">@superrito.com</a><a href="#">@teleworm.us</a>
|
||||
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
50
macros.txt
Normal file
50
macros.txt
Normal file
@@ -0,0 +1,50 @@
|
||||
To record a macro, use the q command followed by a regsiter. To stop, type q.
|
||||
There are no special macro registers. There is only one a register, for example.
|
||||
To replay the macro use @ followed by the register.
|
||||
To repeat the most recently executed marco, use @@.
|
||||
|
||||
Position the cursor at the beginning of the line with 0.
|
||||
Perform your edits and/or commands.
|
||||
Move the cursor to the next line with j.
|
||||
Stop the recording with q.
|
||||
|
||||
Think big.
|
||||
Feed and strengthen your mind.
|
||||
Better to have written a lousy ballet than to have composed no ballet at all.
|
||||
If you don’t prioritize your life, someone else will.
|
||||
Without great solitude no serious work is possible.
|
||||
|
||||
FIRST NAME: Joseph LAST NAME: Andrews
|
||||
FIRST NAME: Scott LAST NAME: Young
|
||||
FIRST NAME: Jessica LAST NAME: Smith
|
||||
FIRST NAME: Shirley LAST NAME: Landers
|
||||
FIRST NAME: Pamela LAST NAME: Lewis
|
||||
|
||||
BEFORE: "Montgomery", "(Alabama)" => "usa"
|
||||
AFTER: 'Montgomery', 'Alabama', 'USA'
|
||||
|
||||
"Montgomery", "(Alabama)" => "usa"
|
||||
"Juneau", "(Alaska)" => "usa"
|
||||
"Phoenix", "(Arizona)" => "usa"
|
||||
"Little", "(Arkansas)" => "usa"
|
||||
"Sacramento", "(California)" => "usa"
|
||||
"Denver", "(Colorado)" => "usa"
|
||||
"Hartford", "(Connecticut)" => "usa"
|
||||
"Dover", "(Delaware)" => "usa"
|
||||
"Tallahassee", "(Florida)" => "usa"
|
||||
"Atlanta", "(Georgia)" => "usa"
|
||||
|
||||
amazon.com has address:
|
||||
54.239.17.7
|
||||
|
||||
google.com has address:
|
||||
216.58.192.78
|
||||
|
||||
wikipedia.org has address:
|
||||
208.80.154.224
|
||||
|
||||
|
||||
|
||||
Remember, macros just replay what's stored in a register.
|
||||
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
13
modes.txt
Normal file
13
modes.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
Anything you type in normal mode is a command.
|
||||
|
||||
To enter insert mode, type "i" while in normal mode.
|
||||
|
||||
To leave insert mode, press Escape.
|
||||
|
||||
To enter line mode, type ":" while in normal mode.
|
||||
|
||||
After a command completes in line mode you are returned to normal mode.
|
||||
|
||||
You can also leave command mode by pressing Escape.
|
||||
|
||||
Now you're editing!
|
||||
74
nav.txt
Normal file
74
nav.txt
Normal file
@@ -0,0 +1,74 @@
|
||||
You can use this file to practice navigating.
|
||||
|
||||
To move down a line, press "j".
|
||||
|
||||
To move up a line, press "k".
|
||||
|
||||
To move to the right, press "l".
|
||||
|
||||
To move to the left, press "h".
|
||||
|
||||
You can also press and hold a navigation key so that it repeats.
|
||||
To move all the way to the top of the file, press and hold "k".
|
||||
To move all the way to the bottom of the file, press and hold "j".
|
||||
|
||||
To move forward in the file, use Ctrl-f. Hold down the control key and press "f".
|
||||
Ctrl-f is the same as the "page down" operation.
|
||||
|
||||
To move backward in the file, use Ctrl-b. Hold down the control key and press "b".
|
||||
Ctrl-b is the same as the "page up" operation.
|
||||
|
||||
To move forward by word, use "w". To move forward by word using white space as
|
||||
word boundaries, use "W".
|
||||
|
||||
To move backward by word, use "b". To move backword by word using white space
|
||||
as word boundaries, use "B".
|
||||
|
||||
To go to the begining of the file, type "1gg" or just "gg".
|
||||
To move to the last line of the file, type "$G" or just "G".
|
||||
To go to a specific line number use <LINE_NUMBER>gg or <LINE_NUMBER>G. For
|
||||
example, to go to line 27, type 27gg or 27G.
|
||||
|
||||
You can even use line mode to go to a specific line. For example, to move to
|
||||
line 32, you would type ":32<ENTER>". To go to the last line, use ":$<ENTER>".
|
||||
|
||||
This training is being provided by LinuxTrainingAcademy.com.
|
||||
|
||||
The rest of this file is comprised of random sentences. This will give you a
|
||||
chance to practice. There is no need to study the contents of the remaining
|
||||
portions of this file.
|
||||
|
||||
Far far away, behind the wild mountains, far from the countries Vokalia and
|
||||
Consonantia, there live the blind texts. Separated they live in Bookmarksgrove
|
||||
right at the coast of the Semantics, a large language ocean.
|
||||
|
||||
A small river named Duden flows by their place and supplies it with the
|
||||
necessary regelialia. It is a paradisematic country, in which roasted parts of
|
||||
sentences fly into your mouth.
|
||||
|
||||
Even the all-powerful Pointing has no control about the blind texts it is an
|
||||
almost unorthographic life One day however a small line of blind text by the
|
||||
name of Lorem Ipsum decided to leave for the far World of Grammar.
|
||||
|
||||
The Big Oxmox advised her not to do so, because agile frameworks also provide
|
||||
Commas, wild Question Marks and devious Semikoli, and every Lorem Ipsum spaces
|
||||
didn't listen. She packed her seven versalia, put her initial into the belt and
|
||||
made herself on the way. When she reached the first hills of the Italic
|
||||
Mountains, she had a last view back on the skyline of her hometown
|
||||
Bookmarksgrove, the headline of Alphabet Village and the subline of her own
|
||||
road, the Line Lane. Pityful a rethoric question ran over her cheek, then she
|
||||
continued her way.
|
||||
|
||||
On her way she met a copy. The copy warned the Little Blind Text, that where
|
||||
it came from it would have been rewritten a thousand times and everything that
|
||||
was left from its origin would be the word "and" and the Little Blind Text
|
||||
should turn around and return to its own, safe country.
|
||||
|
||||
But nothing the copy said could convince her and so it didn't take long until
|
||||
a few insidious Copy Writers ambushed her, made her lorem ipsum dolor sit amet
|
||||
and dragged her into their agency, where they abulorem ipsum dolor sit amet sed
|
||||
again and again. And if she hasn't been rewritten, aute irure dolor in totam re
|
||||
her.
|
||||
|
||||
This training is being provided by LinuxTrainingAcademy.com.
|
||||
|
||||
75
practicedeleting.txt
Normal file
75
practicedeleting.txt
Normal file
@@ -0,0 +1,75 @@
|
||||
You can use this file to practice editing.
|
||||
|
||||
First, fix this spelling mistakke.
|
||||
Fixx theese allso.
|
||||
Delete this text with the X command.
|
||||
Who let the dogs out? cats
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
Here is another line of text.
|
||||
Guess what? Here is even more text!
|
||||
Will you delete this line or not? We'll see...
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
two three four five six seven eight nine ten eleven twelve thirteen
|
||||
three four five six seven eight nine ten eleven twelve thirteen
|
||||
four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
one two three four five six seven eight nine ten eleven twelve thirteen
|
||||
|
||||
Far far away, behind the wild mountains, far from the countries Vokalia and
|
||||
Consonantia, there live the blind texts. Separated they live in Bookmarksgrove
|
||||
right at the coast of the Semantics, a large language ocean.
|
||||
|
||||
A small river named Duden flows by their place and supplies it with the
|
||||
necessary regelialia. It is a paradisematic country, in which roasted parts of
|
||||
sentences fly into your mouth.
|
||||
|
||||
Even the all-powerful Pointing has no control about the blind texts it is an
|
||||
almost unorthographic life One day however a small line of blind text by the
|
||||
name of Lorem Ipsum decided to leave for the far World of Grammar.
|
||||
|
||||
The Big Oxmox advised her not to do so, because there were thousands of bad
|
||||
Commas, wild Question Marks and devious Semikoli, but the Little Blind Text
|
||||
didn't listen. She packed her seven versalia, put her initial into the belt and
|
||||
made herself on the way. When she reached the first hills of the Italic
|
||||
Mountains, she had a last view back on the skyline of her hometown
|
||||
Bookmarksgrove, the headline of Alphabet Village and the subline of her own
|
||||
road, the Line Lane. Pityful a rethoric question ran over her cheek, then she
|
||||
continued her way.
|
||||
|
||||
On her way she met a copy. The copy warned the Little Blind Text, that where
|
||||
it came from it would have been rewritten a thousand times and everything that
|
||||
was left from its origin would be the word "and" and the Little Blind Text
|
||||
should turn around and return to its own, safe country.
|
||||
|
||||
But nothing the copy said could convince her and so it didn't take long until
|
||||
a few insidious Copy Writers ambushed her, made her drunk with Longe and Parole
|
||||
and dragged her into their agency, where they abused her for their projects
|
||||
again and again. And if she hasn't been rewritten, then they are still using
|
||||
her.
|
||||
|
||||
This training is being provided by LinuxTrainingAcademy.com.
|
||||
12
search-practice.txt
Normal file
12
search-practice.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
The Time Traveller (for so it will be convenient to speak of him) was expounding
|
||||
a recondite matter to us. His grey eyes shone and twinkled, and his usually pale
|
||||
face was flushed and animated. The fire burned brightly, and the soft radiance
|
||||
of the incandescent lights in the lilies of silver caught the bubbles that
|
||||
flashed and passed in our glasses. Our chairs, being his patents, embraced and
|
||||
caressed us rather than submitted to be sat upon, and there was that luxurious
|
||||
after-dinner atmosphere when thought roams gracefully free of the trammels of
|
||||
precision. And he put it to us in this way—marking the points with a lean
|
||||
forefinger—as we sat and lazily admired his earnestness over this new paradox
|
||||
(as we thought it) and his fecundity.
|
||||
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
43
searching.txt
Normal file
43
searching.txt
Normal file
@@ -0,0 +1,43 @@
|
||||
Searching forward is accomplished by typing f{char}. Also, zebras eat grass.
|
||||
|
||||
Delete THIS<<--- word.
|
||||
|
||||
Adam's aunt ate apples and acorns around August.
|
||||
Beth's beagle barked and bayed, becoming bothersome for Billy by the bay.
|
||||
Cathy's cat clawed her couch, creating chaos.
|
||||
Doug's dog dove deep in the dam, drinking dirty water as he dove.
|
||||
Erin's eagle eats eggs, enjoying each episode of eating.
|
||||
Fran's friends fried Fritos for Friday's food.
|
||||
Gertrude's giraffe gobbled gooseberryies greedily, getting good at grabbing goodies.
|
||||
Harry's home has heat hopefully.
|
||||
Isaac's ice cream is interesting and Isaac is imbibing it.
|
||||
Jason's jaguar is jumping and jiggling jauntily.
|
||||
Kate's kid's kept kiting.
|
||||
Lorri's lizard likes leaping leopards.
|
||||
Michael's microphone made much music.
|
||||
Nellie's nephew needed new notebooks now not never.
|
||||
Oliver's owl out-performed ostriches.
|
||||
Paul's piglet pranced priggishly.
|
||||
Quinn's quilters quit quilting quickly.
|
||||
Randy's reindeer rose rapidly and ran round the room.
|
||||
Sam's seven sisters slept soundly in sand.
|
||||
Terri's took tons of tools to make toys for tots.
|
||||
Uncle Umar's united union uses umbrellas.
|
||||
Victoria's very vixen-like and vexing.
|
||||
Wallis walked wearily while wondering where Wally was.
|
||||
Yolanda yanked you at yoga, and Yvette yelled.
|
||||
Zeke zeroed in on zoo keeping.
|
||||
|
||||
# Global configuration
|
||||
|
||||
DOMAIN=example.net # The example.net domain.
|
||||
MAIL_SERVER=mail.example.net
|
||||
MAIL_PATH=/var/spool/mail
|
||||
|
||||
# Local configuration
|
||||
|
||||
LOCAL_DOMAIN=internal.example.net # The internal.example.net domain.
|
||||
LOCAL_MAIL_SERVER=mail.internal.example.net
|
||||
MAIL_PATH=/var/spool/mail
|
||||
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
BIN
slides/Buffers.pdf
Normal file
BIN
slides/Buffers.pdf
Normal file
Binary file not shown.
BIN
slides/Cut, Copy & Paste.pdf
Normal file
BIN
slides/Cut, Copy & Paste.pdf
Normal file
Binary file not shown.
BIN
slides/Deleting Text and Starting to _Think in Vim_.pdf
Normal file
BIN
slides/Deleting Text and Starting to _Think in Vim_.pdf
Normal file
Binary file not shown.
BIN
slides/Macros.pdf
Normal file
BIN
slides/Macros.pdf
Normal file
Binary file not shown.
BIN
slides/Managing Vim Plugins.pdf
Normal file
BIN
slides/Managing Vim Plugins.pdf
Normal file
Binary file not shown.
BIN
slides/Modes.pdf
Normal file
BIN
slides/Modes.pdf
Normal file
Binary file not shown.
BIN
slides/Search Find and Replace.pdf
Normal file
BIN
slides/Search Find and Replace.pdf
Normal file
Binary file not shown.
BIN
slides/Text Objects.pdf
Normal file
BIN
slides/Text Objects.pdf
Normal file
Binary file not shown.
BIN
slides/Vim Settings and the Vimrc file.pdf
Normal file
BIN
slides/Vim Settings and the Vimrc file.pdf
Normal file
Binary file not shown.
BIN
slides/Visual Mode.pdf
Normal file
BIN
slides/Visual Mode.pdf
Normal file
Binary file not shown.
BIN
slides/What Vim Is and Why You Should Learn It.pdf
Normal file
BIN
slides/What Vim Is and Why You Should Learn It.pdf
Normal file
Binary file not shown.
24
textobjects.txt
Normal file
24
textobjects.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
This is a sentence comprised of many words. This is another sentence. A
|
||||
paragraph is made up of multiple sentences. Just like this one!
|
||||
|
||||
This is also paragraph.
|
||||
No only is it made up of multiple sentences, it's made up of multiple lines.
|
||||
This is the last line in this paragraph.
|
||||
|
||||
colors = ['red', 'green', 'blue']
|
||||
print(colors)
|
||||
<html>
|
||||
<p>This is <strong>so, so, very</strong> cool!</p>
|
||||
<i_made_this_up>There is text here.</i_made_this_up>
|
||||
|
||||
scores = {
|
||||
'boars': 6,
|
||||
'saints': 7,
|
||||
'bandits': 0
|
||||
}
|
||||
|
||||
BACKUP_SERVER="deepfreeze01"
|
||||
MAIL_SERVER='mail13'
|
||||
HOST=`uname -n`
|
||||
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
40
textobjectspractice.txt
Normal file
40
textobjectspractice.txt
Normal file
@@ -0,0 +1,40 @@
|
||||
The Time Traveller (for so it will be convenient to speak of him) was expounding.
|
||||
|
||||
print("The weatherman said, 'This weekend will be warm,' but that was a lie.")
|
||||
print("The weatherman said, 'This weekend will be warm,' but that was a lie.")
|
||||
print("The weatherman said, 'This weekend will be warm,' but that was a lie.")
|
||||
|
||||
scripts=[ 'bin/backup',
|
||||
'bin/backup-all',
|
||||
'bin/backup-db-only',
|
||||
'bin/backup-files-only' ]
|
||||
|
||||
<yank_me>
|
||||
|
||||
<p><a href="https://linuxtrainingacademy.com">Linux Training Academy</a></p>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<CATALOG>
|
||||
<CD>
|
||||
<TITLE>Jazz At Massey Hall</TITLE>
|
||||
<ARTIST>The Quintet</ARTIST>
|
||||
</CD>
|
||||
<CD>
|
||||
<TITLE>Blue Train</TITLE>
|
||||
<ARTIST>John Coltrane</ARTIST>
|
||||
</CD>
|
||||
<CD>
|
||||
<TITLE>Saxophone Colossus</TITLE>
|
||||
<ARTIST>Sonny Rollins</ARTIST>
|
||||
</CD>
|
||||
</CATALOG>
|
||||
|
||||
musicians = {
|
||||
'Charlie Parker': 'alto sax',
|
||||
'John Coltrane': 'tenor sax',
|
||||
'Sonny Rollins': 'tenor sax'
|
||||
}
|
||||
|
||||
Praesent rutrum purus ultricies, dignissim massa id, elementum felis. Vestibulum ullamcorper? Ligula quis pharetra aliquet! Felis ex vulputate justo, non commodo metus tellus ut tortor. Sed et orci quis augue pretium sagittis lobortis non nisi. Cras rhoncus congue est, ut dapibus neque gravida id. Mauris et urna consequat, semper sapien sit amet, sollicitudin enim. Vivamus aliquam erat non eros vehicula dictum. Etiam bibendum posuere leo nec commodo. Fusce in enim fermentum, vulputate odio at, semper sapien. Etiam erat lorem, convallis vel leo ac, euismod accumsan diam. Cras in sapien sed dui dictum imperdiet. Nam vel vehicula nisl.
|
||||
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
BIN
vim-cheat-sheet-advanced.png
Normal file
BIN
vim-cheat-sheet-advanced.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 MiB |
BIN
vim-cheat-sheet-graphical.png
Normal file
BIN
vim-cheat-sheet-graphical.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 331 KiB |
BIN
vim-cheat-sheet-simple.pdf
Normal file
BIN
vim-cheat-sheet-simple.pdf
Normal file
Binary file not shown.
46
vim-commands~
Normal file
46
vim-commands~
Normal file
@@ -0,0 +1,46 @@
|
||||
Normal mode commands:
|
||||
|
||||
-> for navigating the file opened in vim:
|
||||
|
||||
h: to go left.
|
||||
l: to go right.
|
||||
j: to go down.
|
||||
k: to go up.
|
||||
|
||||
ctrl + f: To do page down. Similar to page down button.
|
||||
ctrl + b: To do page up. Similar to page up button.
|
||||
z + <enter>: To bring the focus of vision to the centre
|
||||
where the cursor is currently present.
|
||||
w: To move the cursor by one word on the file. It include the
|
||||
punctuation as a word.(move one word forward)
|
||||
W: To move the cursor by one word on file. It don't include the
|
||||
punctuation as a word.(move one word forward)
|
||||
b: To move the cursor by one word on file. It include the
|
||||
punctuation as a word.(move on word backward)
|
||||
B: To move the cursor by one word on file. It include the
|
||||
punctuation as a word.(move on word backward)
|
||||
|
||||
0: To move the first column of the current line the cursor
|
||||
is present.
|
||||
^: To move the first letter of the first word of the current
|
||||
line the cursor is present.
|
||||
$: To move the last letter of the last word of the current
|
||||
line the cursor is present.
|
||||
gg: To move the first column of the first line of the file.
|
||||
G: To move to the last line of the file.
|
||||
<line-number>gg or <line-number>G: To move the particular
|
||||
<line-number> as mentioned.
|
||||
ctrl + g: To know the current line we are on, the file name,
|
||||
the percentage of we have covered according to
|
||||
current cursor position.
|
||||
|
||||
g + (ctrl+g): To get more detailed information of whatever
|
||||
the previous was showing.
|
||||
|
||||
|
||||
Line mode:
|
||||
|
||||
-> for navigating using line mode:
|
||||
|
||||
:<line-number><enter> : To go to the particular <line-number>.
|
||||
:$<enter> : To move to the last line in the file.
|
||||
86
vimrc-sample
Normal file
86
vimrc-sample
Normal file
@@ -0,0 +1,86 @@
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Sample vimrc "
|
||||
" "
|
||||
" Provided by: "
|
||||
" LinuxTrainingAcademy.com "
|
||||
" "
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
" Save 1,000 items in history
|
||||
set history=1000
|
||||
|
||||
" Show the line and column number of the cursor position
|
||||
set ruler
|
||||
|
||||
" Display the incomplete commands in the bottom right-hand side of your screen.
|
||||
set showcmd
|
||||
|
||||
" Display completion matches on your status line
|
||||
set wildmenu
|
||||
|
||||
" Show a few lines of context around the cursor
|
||||
set scrolloff=5
|
||||
|
||||
" Highlight search matches
|
||||
set hlsearch
|
||||
|
||||
" Enable incremental searching
|
||||
set incsearch
|
||||
|
||||
" Ignore case when searching
|
||||
set ignorecase
|
||||
|
||||
" Override the 'ignorecase' option if the search pattern contains upper case characters.
|
||||
set smartcase
|
||||
|
||||
" Turn on line numbering
|
||||
set number
|
||||
|
||||
" Turn on file backups
|
||||
set backup
|
||||
|
||||
" Don't line wrap mid-word.
|
||||
set lbr
|
||||
|
||||
" Copy the indentation from the current line.
|
||||
set autoindent
|
||||
|
||||
" Enable smart autoindenting.
|
||||
set smartindent
|
||||
|
||||
" Use spaces instead of tabs
|
||||
set expandtab
|
||||
|
||||
" Enable smart tabs
|
||||
set smarttab
|
||||
|
||||
" Make a tab equal to 4 spaces
|
||||
set shiftwidth=4
|
||||
set tabstop=4
|
||||
|
||||
|
||||
" Specifiy a color scheme.
|
||||
colorscheme slate
|
||||
|
||||
" Tell vim what background you are using
|
||||
" set bg=light
|
||||
" set bg=dark
|
||||
|
||||
" Map Y to act like D and C, i.e. yank until EOL, rather than act like yy
|
||||
" map Y y$
|
||||
|
||||
" Remap VIM 0 to first non-blank character
|
||||
" map 0 ^
|
||||
|
||||
" Easily create HTML unorded lists.
|
||||
map <F3> i<ul><CR><Space><Space><li></li><CR><Esc>I</ul><Esc>kcit
|
||||
map <F4> <Esc>o<li></li><Esc>cit
|
||||
|
||||
" change the mapleader from \ to ,
|
||||
" NOTE: This has to be set before <leader> is used.
|
||||
let mapleader=","
|
||||
|
||||
" Quickly save your file.
|
||||
map <leader>w :w!<cr>
|
||||
|
||||
" For more options see ":help option-list" and ":options".
|
||||
42
visual-practice.txt
Normal file
42
visual-practice.txt
Normal file
@@ -0,0 +1,42 @@
|
||||
Use characterwise visual mode to delete this => DELETE ME, DELETE ME, Yes!!! <=
|
||||
|
||||
Yank this sentence. However, leave this one out of the registers, please.
|
||||
|
||||
This entire paragraph should be on the same line.
|
||||
But it isn't!
|
||||
I don't know who typed this, but they didn't do a
|
||||
very
|
||||
good
|
||||
job.
|
||||
Did they?
|
||||
|
||||
################################################################################
|
||||
Header
|
||||
Description
|
||||
################################################################################
|
||||
|
||||
Rank,Item
|
||||
"001","Q-Tips"
|
||||
"002","Paper Towels"
|
||||
"003","Toilet Paper"
|
||||
"004","Liquid Detergent"
|
||||
"005","Mouthwash"
|
||||
"006","Cereal"
|
||||
"007","Bottled Water"
|
||||
|
||||
This is a comment.
|
||||
So is this.
|
||||
Why, this is also a comment.
|
||||
Please, comment us out!
|
||||
|
||||
>
|
||||
>>>
|
||||
>>>>>
|
||||
>>>>>>>
|
||||
>>>>>>>>>>
|
||||
>>>>>>>
|
||||
>>>>>
|
||||
>>>>
|
||||
>
|
||||
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
90
visual.txt
Normal file
90
visual.txt
Normal file
@@ -0,0 +1,90 @@
|
||||
Use v to start characterwise visual mode.
|
||||
Use V to start linewise visual mode.
|
||||
Use Ctrl-v to start blockwise visual mode.
|
||||
|
||||
You can use motions to expand the visual area.
|
||||
You can also use text objects to expand the visual area.
|
||||
|
||||
Just some of commands you can use in visual mode include:
|
||||
~ - Switch case
|
||||
c - Change
|
||||
d - Delete
|
||||
y - Yank
|
||||
r - Replace
|
||||
x - Delete
|
||||
I - Insert
|
||||
A - Append
|
||||
J - Join
|
||||
u - Make lowercase
|
||||
U - Make uppercase
|
||||
> - Shift right
|
||||
< - Shift left
|
||||
|
||||
usa,Alabama,Montgomery
|
||||
usa,Juneau,Alaska
|
||||
usa,Phoenix,Arizona
|
||||
usa,Little,Arkansas
|
||||
usa,Sacramento,California
|
||||
usa,Denver,Colorado
|
||||
usa,Hartford,Connecticut
|
||||
usa,Dover,Delaware
|
||||
usa,Tallahassee,Florida
|
||||
usa,Atlanta,Georgia
|
||||
|
||||
line 1: one
|
||||
line 2: one,two
|
||||
line 3: one,two,three
|
||||
line 4: one,two,three,four
|
||||
line 5: one,two,three,four,five
|
||||
line 6: one,two,three,four
|
||||
line 7: one,two,three
|
||||
line 8: one,two
|
||||
line 9: one
|
||||
|
||||
class Person
|
||||
def initialize(nick_name, birthdate, telephone, title)
|
||||
nick_name=nick_name
|
||||
birthdate=birthdate
|
||||
telephone=telephone
|
||||
title=title
|
||||
end
|
||||
end
|
||||
|
||||
john.nick_name = "Happy"
|
||||
john.birthdate = "4/4/1984"
|
||||
john.telephone = "(555) 612-2000"
|
||||
john.title = "Developer"
|
||||
|
||||
function make_slave_device_file () {
|
||||
# Pass in slave device, slave device file, bond device.
|
||||
local S_DEVICE=$1
|
||||
local S_FILE=$2
|
||||
local BOND_D=$3
|
||||
echo "DEVICE=${S_DEVICE}" > $S_FILE
|
||||
echo "BOOTPROTO=none" >> $S_FILE
|
||||
echo "ONBOOT=yes" >> $S_FILE
|
||||
echo "MASTER=${BOND_D}" >> $S_FILE
|
||||
echo "SLAVE=yes" >> $S_FILE
|
||||
echo "USERCTL=no" >> $S_FILE
|
||||
echo "NM_CONTROLLED=no" >> $S_FILE
|
||||
}
|
||||
|
||||
START:United States of America State Capital List
|
||||
United States of America,Alabama,Montgomery
|
||||
United States of America,Juneau,Alaska
|
||||
United States of America,Phoenix,Arizona
|
||||
United States of America,Little,Arkansas
|
||||
United States of America,Sacramento,California
|
||||
United States of America,Denver,Colorado
|
||||
United States of America,Hartford,Connecticut
|
||||
United States of America,Dover,Delaware
|
||||
United States of America,Tallahassee,Florida
|
||||
United States of America,Atlanta,Georgia
|
||||
END:United States of America State Capital List
|
||||
|
||||
################################################################################
|
||||
Episode V:
|
||||
The Empire Strikes Back
|
||||
################################################################################
|
||||
|
||||
This training is provided by LinuxTrainingAcademy.com.
|
||||
Reference in New Issue
Block a user