Quick Search


Tibetan singing bowl music,sound healing, remove negative energy.

528hz solfreggio music -  Attract Wealth and Abundance, Manifest Money and Increase Luck



 
Your forum announcement here!

  Free Advertising Forums | Free Advertising Board | Post Free Ads Forum | Free Advertising Forums Directory | Best Free Advertising Methods | Advertising Forums > Free Advertising Forums Directory > Internet Marketing Forums

Internet Marketing Forums This is a list of Internet Marketing Forums that have a FREE Advertising Section that you can post your ads in.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 05-18-2011, 08:18 AM   #1
jnmq6452c
 
Posts: n/a
Default VI mandate mode editing commands

1, on the text editor;
There are many
text editor, such as graphics mode gedit, kwrite, OpenOffice ... ..., text mode editor with vi, vim (vi enhanced version) and nano ... ... vi and vim is the most usually used in the Linux editor. We need to introduce the vi (vim) the most simple method, so that entry-level Linux users to learn in the shortest phase of time to use it.
nano tools,Christian Louboutin Discount, and edit DOS operating system, operating under similar, simple to use, we can not be introduced, if you are amused,Christian Louboutin Mary Janes, may wish to attempt;

2, vi editor;
Why learn a simple petition
vi
vi or vim is Linux the maximum elementary text editor, vi or vim Although there is no graphical editor as a uncomplicated click of a mouse operation, but the vi editor in systems management, waiter management, not a graphical editor tin contrast. When you do not have X-windows desktop context or desktop environment collapse, we still need the character mode, the editor vi;
vi or vim editor to create and edit simple documents in the most efficient tools;

3, vi editor to use;

3.1 How to shriek vi;
[root @ localhost ~] # vi filename
~
~
~
~
~
~
~
~
Three

3.2 vi command mode;
Command (command) mode, for entering commands;
Insert (insert) mode for inserting text;
Visual (visual) mode for the visualization of the highlight and elect text ; vim

3.3 to save the file and exit;
Command mode namely the default mode as vi or vim, whether we are in another command mode, to come via the ESC key to alternate.
When we reception the ESC opener, then enter: No period, logo will await in the base of the shade we enter the directive;
: w save;
: w filename save as filename;
: wq! save and exit;
: wq! filename Note: The filename for the file name to save and exit;
: q! exit without saving;
: x should be to retention and exit, function, and: wq! the same

3.4 cursor;
when we enter the Command mode by ESC, we can use some of the retinue keys to move the cursor;
↑ Move up one line;
↓ Move down one line;

← move left one character;
→ Move right one character;

ctrl + b Move up one screen;
ctrl + f Move an screen;
0 Move to the first
$ Move to end of line
nG move to file the first n line
G move to the end of the file

we amend a file, for j, k, l and h keys,Christian Louboutin Pumps, merely likewise in front of these behavior commands with numbers, such as 3j, 3 said that down the line.

3.5 insert mode (insert text);
i inserted before the cursor;
a inserted after the cursor;

I at the starting of a line cursor insert;
A line at the end of the line the cursor insertion;

o the line where the cursor into the line below;
O at the altitude of the line the cursor into the line;


3.6 text content of the delete operation;
x character;
# x to cancel a few personas, # represents a number, such for 3x;
dw delete a word;
# dw to delete a few words, # with the number that expressed such 3dw Remove the 3 words;
dd delete a line;
# dd delete multiple rows, # represents a number, such as 3dd that line and the cursor to delete the cursor to the next 2 lines;
d $ to delete the cursor to the end of the line content;

J line and explicit the cursor on the line in which the spaces among, put the cursor on the line by line and together;

3.7 modify and reinstate deleted restore operations;
u disassemble the revision or deletion;
Press ESC key to return to Command (command) mode, then press u to undo the delete key to delete or modify the before; more than ahead if you want to undo the changes or delete, press and more at intervals u. This is Word's undo is not much assorted;
Copy and paste

3.9 operation;
yy Copy the line the cursor
nyy (n is number) Copy n lines starting cursor into the clipboard
p paste after the cursor;
shift + p paste before the cursor
to give an example:
example, we want to copy a document of the third line down, and then posts behind to the fifth line, how should we do?
Methods:
first third line delete, move the cursor to the line at third, then yy action.
Then we re-move the cursor to the fifth line, and then click the p key, so that the contents of the third line and put the quote to the fifth row back;
so copy and paste operations, is the command mode, insert mode and the integrated use of visual models; we must learn to switch between various modes, to be accustom ESC key; more importantly, learn to move the cursor in the command mode ;

3.10 ashore the line number;
Sometimes we configure a program is escaping, there will be X-line configuration file misdeed. At this time we use to line numbers related operations;

add the line numbers for all;
press ESC key, then type:
: set nu
cursor position
the lower right turn of the screen,Christian Louboutin D'Orsays, similar to the following;
57,8 27%
In these, 57 said the 57 line, 8 that the first 8 characters;

3.11 Find and replace function;

3.11.1 search;
First, we want to enter the ESC key to enter command mode; we enter the / or? to enter a quest mode;
/ SEARCH NOTE: a forward lookup, press n key to move the cursor to the afterward qualified place; (SEARCH is to be the search string)
? SEARCH NOTE: Reverse Lookup (SEARCH is to be search string)
One example: For example, I would like to swap in a file base in the word, I should do the following;
first reception ESC key to enter command mode, then enter;
/ swap
or
? swap

3.11.2 replacement;
Press ESC key to enter command mode;
: s / SEARCH / REPLACE / g Note: the new cursor row in which the words in the SEARCH, replace REPLACE, and highlight all SEARCH;
:% s / SEARCH / REPLACE Note : entire the documents SEARCH replaced REPLACE;
: #, # s / SEARCH / REPLACE / g Notes: # sign indicates the digit namely represents the number of rows apt the number from the line, the SEARCH replace REPLACE;
Note: In this being, g represents the global search; We memorandum that the place is no replaced, they will be highlighted SEARCH;
example:
instance, we have a document to edit;
We cursor line, all the words the,Christian Louboutin Sandals, replaced by THE,Christian Louboutin Shoes, should be:
: s / the / THE / g
entire document we have replaced all of the THE, should be:
:% s / the / THE
we are only the line 1 to line 10 of the, replaced by THE, should be;
: 1,10 s / the / THE / g

4, on paper;
I wrote this treatise to let apprentices in the shortest time possible with vi or vim to create, edit and modify the file, so that this document is not large and the vi handbook. If all of the functions vi say all, or at least must write a thousand pages of manuals; this did not involve use of more advanced vi. If you want to know more, amuse detect the man and aid;
  Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 07:26 PM.

 

Powered by vBulletin Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Free Advertising Forums | Free Advertising Message Boards | Post Free Ads Forum