Categories




PreviousNext
Vi editor    
 Send mail Views:786
Belongs to : Linux
Facebook Bookmarkbookmark this pageStumbleupon Bookmark 

Bulk delete or copy then paste a block of sentences within a file

1. Move the cursor to the first line of the block of sentences and press mm
2. Move the cursor to the last line of the block of sentences
3. Press d'm to delete the block of sentences from current line where the cursor stop to the line where "m" marker initiated in step 1, OR
4. Press y'm to copy the block of sentences from current line where the cursor stop to the line where "m" marker initiated in step 1, THEN
5. Move the cursor to a position of file where it is intended to paste the copied block of sentences
6. Press p to paste the copied block of sentences.

Bulk copy a block of sentences in file A and paste the copied sentences to file B

1. Move the cursor to the first line of the block of sentences and press mm
2. Move the cursor to the last line of the block of sentences
3. Press "by'm to copy the block of sentences from current line where the cursor stop to the line where "m" marker initiated in step 1
4. Press :e fileB to open another file called fileB for editing

* Use command code :!e fileB instead of :e fileB if there is a need to continue editing fileA after exiting fileB.

5. Move the cursor to a position of file where it is intended to paste the copied block of sentences
6. Press "bp to paste the copied block of sentences from fileA to fileB.

Copy portion of text in a line then paste to elsewhere within a file

1. Move the cursor to the first character of the intended portion of text to be copied and press mm
2. Move the cursor to the last character of the intended portion of text to be copied
3. Press y`m to copy the portion of text from the first character where "m" marker initiated in step 1 to the last character where current cursor stop.
4. Move the cursor to the intended position of the file
5. Press p to paste the copied portion of text.

* To copy portion of text from file A and paste the copied text to file B, use command code "by`m instead of y`m
* Read carefully that y'm function differently from y`m as shown. They are different syntax, indeed!



funny pictures and videos
funny pictures and videos
online games
embed code


By - RameshKumar, On - 2007-12-01
Send This
PreviousNext

User Comments

---- Next ---
1) These are all good tips for every SEO executives. Thank you share with us...
Name: VenkatMail: knightgigo........Added: 2011-10-01

2) halow
Name: rajaMail: rajabsccaraja........Added: 2010-02-11

3) 4 u my frnd
Name: sarmiMail: sabat91........Added: 2010-01-08

4) yeah.... OLD IS GOLD
Name: SanMail: ........Added: 2010-01-03

5) Errrr.... Very old one... Heard in many cinema songs ...
Name: singapuliMail: Singapuli........Added: 2009-12-15

6) Excellent Website
Name: SureshkumarMail: sureshkumar........Added: 2009-12-08

7) yes facebook wonderful choice
Name: harshawarthanMail: lramesh55........Added: 2009-12-08

8) to make it easy here is my tip remember everything as increments of 1000 (note three zeros) 1000 = Thousand 1 Thousand * 1000 = 1 Million = 10 lakhs 1 Million * 1000 = 1 Billion = 100 crores 1 billion * 1000 = 1 trillion
Name: rajeshMail: saisan........Added: 2009-12-04

9) Be serious this flim will get oscar award...
Name: ramarajanMail: ramarajan.actor........Added: 2009-12-02

10) where i have to set max_sp_recursion_depth variable
Name: kalaiMail: kalaivanigovindharaj........Added: 2009-12-01

---- Next ---

Add NEW Feedback:

Name :     Email :

Website Monitoring Web hosting by Hiox India Contact Us   Privacy Policy   Terms and Conditions