"யாதும் ஊரே, யாவரும் கேளிர், தீதும் நன்றும் பிறர்தர வாரா, நோதலும் தணிதலும் அவற்றோ ரன்ன". To us all towns are one, all men our kin, Life's good comes not from others' gifts, nor ill, Man's pains and pain's relief are from within.
Wednesday, June 30, 2010
Tuesday, June 29, 2010
Friday, June 25, 2010
Thursday, June 24, 2010
Wednesday, June 23, 2010
Unix: Copy, Paste in Vim
Working around with vim.
Copying a block of text from one file to another (Vi Style)
There is more than one way to copy text between files. In this section we use the more triditionally Vi commands. In the next section Copying using visual mode, we perform the same operations using the Visual mode.
To copy a block of text between files execute the commands:
Command | Explaination | |
1. | Edit the file containing the text you want to copy. | |
2. | Go to the top line to be copied. | |
3. | ma | Mark this line as mark "a". |
4. | Go to the bottom line to be copied | |
5. | y'a | Yank (y) the text from the current cursor location to the mark "a" ('a) |
6. | :split second-file | Open another window containing the second file. (This the file in which the text is to be inserted.) |
7. | Go to the line where the insert is to occur. The text will be place after this line. | |
8. | p | Put the text after the cursor. |
Tuesday, June 22, 2010
Subscribe to:
Posts (Atom)