Hi friend
am also same class and completed my RHCE last month only .my batch is vihan's batch. can u tell me ur 4m which batch.
Regards
Santosh.
"Ansari M. Saeed" <[EMAIL PROTECTED]> wrote:
"Ansari M. Saeed" <[EMAIL PROTECTED]> wrote:
Hi friends,It is interesting to note that in 1582, all the Protestant princesignored the papal decree and so many countries continued to use theJulian calendar until either 1698 or 1752. Britain and its Americancolonies went from Wednesday, September 2, 1752 to Thursday, September14. Prior to the changeover, the British used March 25 as the start ofthe new year.It is a long story, I have sent you only a part of it. It was because of the late adoption of gregorian calendar over julian calendar that the days were reduced.Also about speaking my self, I have done my graduation in B. Com. just last year only in March 2006. After that I tried switching from my profession as a Hardware & Network Engineer to Database Administration (Oracle 9i & Apps) but things didn't work out as expected and since I was interested more in Networking I opted to learn Linux System & Network Administration, on the advice of one of my friend and hence I joined Mr. Rajiv Banerji's class for learning Linux last year from September, and from then uptill now is the period I am associated with Linux, before that I was nil in Linux, basically speaking it was an alien land for me. But now its more like a home pitch.I have also successfully completed my RHCE with 100% last month only and currently on the lookout for a good job as a System & Network Administrator. Any one having a good opportunity, Please consider me. I may not have all knowledge required for the job but I will learn all what the job demands.With this mail I am sending a Quick Reference Guide on Vim Editor, made by me as to the best of my knowledge. Do have a look at it and mail me your suggestions & opinions.
Nadeem M Khan <[EMAIL PROTECTED]> wrote:
On 4/22/06, Ansari M. Saeed <[EMAIL PROTECTED]> wrote:
If you can just a have look at the month September 1752 by "# ./mcal 9 1752".
Whoa? Dude thats very very strange indeed. Mind telling us the reason the reason behind it?
Also you seem to have a nice talent for scripting. Tell a bit about yourself - where you work/study, etc! A brief introduction.
Regards,
NMK.
Celebrate Earth Day everyday! Discover 10 things you can do to help slow climate change. Yahoo! Earth Day Vim Editor
----------
There are two main modes in vi editor, COMMAND mode and INSERT mode.
COMMAND mode is for giving commands to the vi editor and INSERT mode is for
entrying data.
Vi editor opens in COMMAND mode by default. To go to the INSERT mode
press "i" or "Insert". If the last line of the screen displays "-- INSERT --"
then it is in the INSERT mode and to return to the COMMAND mode press "Esc".
There is also a REPLACE mode where one can overwrite the content without
inserting. To to to the REPLACE mode press "Insert" twice. In REPLACE mode the
last line of the screen displays "-- REPLACE --".
Open
====
# vi -> open
# vi-> open the file
# view-> open the file as read-only
Managing multiple files
=======================
# vi... -> open multiple files at one time in a series
:n -> go to the next file in the series
:next -^
:prev -> go to the previous file in the series
:last -> go to the last file in the series
:first -> go to the first file in the series
:rew -^
:e-> go to the specified file
Save / Exit
===========
:q -> exit
:w -> save
:w-> save as
:wq -> save and exit
:x -^
ZZ -^
:q! -> exit forcefully without saving
:w! -> save forcefully
(in case of read-only files, which can be saved only
by the owner or root)
Switch mode
===========
i -> go to INSERT mode
Insert -^
Esc -> return to COMMAND mode
v -> go to VISUAL mode
Ctrl+v -> go to visual block mode
Find
====
/-> find the matching word
/\c -> find the matching word ignoring the case
/\<\> -> find the exact word
/\<\>\c -> find the exact word ignoring the case
n -> go to the next word
# -> search for the word in the whole file
Undo / Redo
===========
u -> undo the last action
Ctrl+r -> redo the last action
. -> repeat the last action
Moving between lines
====================
:1 -> go to the first line
[[ -^
gg -^
:$ -> go to the last line
]] -^
G -^
`` -> go to the previous cursor position
w -> go to the next word
b -> go to the previous word
:@ -> go to the @ line ( @ = line number )
@G -^
Ctrl+g -> display filename, total no. of lines in the file,
and current cursor position at the bottom of screen
Set options
===========
:set all -> show all set options
:set nu -> show line numbers before every line
:set nonu -> do not show line numbers
:set ruler -> show position of cursor at bottom right of the screen
:set noruler -> do not show the above
:set ic -> set ignore case in search on
:set noic -> set ignore case in search off
:set hls -> highlight the word given for searching
:set nohls -> do not highlight the word
:set showmode -> set the indicator mode
:set noai -> set autoindenting
:set lm=@ -> set the left margin
:set tw=@ -> set the text width from left to right
:set wm=@ -> set the wrap margin
:set ts=@ -> set the tab stop
:set incsearch -> set up an incremental search
Insert / Replace
================
O -> insert a blank line above the cursor and change to
insert mode
o -> insert a blank line below the cursor and change to
insert mode
:r-> insert the file's content in current file after the
cursor
~ -> Change case from capital to small and vice versa
Cut, Copy & Paste
=================
x -> cut the character
@x -> cut @ characters ( @ = number of characters )
yw -> copy the word
@yw -> copy @ words ( @ = number of words )
cw -> cut the word
@cw -> cut @ words ( @ = number of words )
dw -> delete the word
@dw -> delete @ words ( @ = number of words )
yy -> copy the line
@yy -> copy @ lines ( @ = number of lines )
cc -> cut the line
@cc -> cut @ lines ( @ = number of lines )
dd -> delete the line
@dd -> delete @ lines ( @ - number of lines )
y$ -> copy words from the cursor upto the end of the line
c$ -> cut words from the cursor upto the end of the line
C -^ ...and change to insert mode
d$ -> delete words from the cursor upto the end of the line
D -^
p -> paste the cut/copied/deleted line/s, word/s or
character/s on the line below the cursor
P -> paste the cut/copied/deleted line/s, word/s or
character/s on the line above the cursor
Find & replace
==============
:1,$ s// /g -> replace the character or word in the whole file
1 - first line
$ - last line
:% s// /g -^
:g//s// /g -^
:s//s// /g -> replace the character or word in the line where
the cursor is positioned
:1,. s// /g -> replace the character or word between the lines
1 - first line
. - current cursor position
:@,. s// /g -> replace the character or word between the lines
@ - line number
. - current cursor position
:.,$ s// /g -> replace the character or word between the lines
. - current cursor position
$ - last line
:.,@ s// /g -> replace the character or word between the lines
. - current cursor position
@ - line number
:@,@ s// /g -> replace the character or word between the lines
@ - line number
Bookmarks
=========
m-> mark current position
`-> go to the marked position
:marks -> show all marked positions
Abbreviations
=============
:ab -> show all abbreviations
:ab-> set the abbreviation to the word
:unab-> unset the abbreviation
:abcl -> Clear all abbreviations, which are set
System
======
:!-> run the command and show output if any without
exiting the vi editor
:sh -> give a shell temporarily
exit -> exit the shell and return to the vi editor
Ctrl+d -^
Sessions
========
:sp -> split the screen horizontally in two
:vsp -> split the screen vertically in two
Ctrl+w -> switch between the screens
Keyboard mapping
================
:map -> show all keyboard mappings
:map-> map the key to the command
:unmap-> unmap the mapped key
Help
====
:help -> general Help
:help quickref -> go directly to a topic
:help tutor
:help usr_06.txt
:help vimrc -> search for a term and bring up a list of choices
:help CTRL-V
:help F5
:help /b
:help options
Security
========
:set key=-> encrypt and assign a password to the file
:X -^
(will ask for encryption key, enter password twice
to encrypt and assign password to the file and to
remove encryption and disable password give empty
password)
:set key= -> decrypt and remove password of the file
Customising
===========
> $HOME/.exrc -> config file of vi editor
(the file does not exist by default, create it)
> $HOME/.vimrc -^
Extras
======
- /usr/share/vim/vim61/macros/life/life.vim
- /usr/share/vim/vim61/vimrc_example.vim
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.
***Archives:
http://groups.yahoo.com/group/linuxvadapav/messages
***Group Usage Guidelines (Please Read):
http://groups.yahoo.com/group/linuxvadapav/files/mailing_rules
YAHOO! GROUPS LINKS
- Visit your group "linuxvadapav" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
- [linuxvadapav] Some new scripts for testing! Ansari M. Saeed
- Re: [linuxvadapav] Some new scripts for testing! Nadeem M Khan
- Re: [linuxvadapav] Some new scripts for testing! Mrugesh Karnik
- Re: [linuxvadapav] Some new scripts for testing! Ansari M. Saeed
- Re: [linuxvadapav] Some new scripts for testi... vinay reddy
- Re: [linuxvadapav] Some new scripts for t... Ansari M. Saeed
- Re: [linuxvadapav] Some new scripts for testi... santosh waghole
Reply via email to
