Hi,
I would like to share small tips for VIM.
It is to keep copy of the multiple text in to buffer and if needed we can paste it.
---
Let us start small tutorial.
------My file looks like below-------
1 # .bashrc
2
3 # User specific aliases and functions
4
5 alias rm='rm -i'
6 alias cp='cp -i'
7 alias mv='mv -i'
8
9 # Source global definitions
10 if [ -f /etc/bashrc ]; then
11 . /etc/bashrc
12 fi
--------end of file.-----------
move to Line starting no 3
press "ayy
this will copy line no. 3 into buffer call "a"
Again move to line no 5.
press "b3yy
to copy 3 lines
Now move to line no. 9 and to paste buffer b
press "bp
it will paste the buffer of "b"
if you press "ap
will paste buffer all "a"
Like wise you can combine lots of thing where copy and paste can be used.
Like visual mode, v V and ctrl+v etc.etc.
Thanx.
--
Nilesh Vaghela
ElectroMech
Redhat Channel Partner and Training Partner
16, Sun Rise complex,
Nr. Mansi cross Road,
Satellite Rd, Ahmedabad
25, The Emperor, Fatehgunj, Baroda.
www.electromech.info