News: Sensation!!! Cialis pills Dicloxacillin Fast acting viagra Crohns phentermine Fiorinal Viagra suppliers Fenoldopam Overnight shipping viagra Diet hcl phentermine pill Taking phentermine with antidepressants Guanethidine Nadolol Order tramadol cod Amoxapine Urine drug testing of tramadol Nitrofurantoin Esomeprazole Corticotropin Pseudoephedrine Natural alternative viagra Digoxin Feldene Side effects of xanax mylan Buy Renova Viagra dangers Womens viagra Lamisil Cialis comparison levivia viagra Clomid o prescription Spiramycin Nabumetone Buy viagra prescription online Phentermine in jonesboro arkansas Colesevelam Fioricet description Encainide Online viagra consultation Nicardipine Weight loss oral hcg and phentermine Pink oval pill 17 xanax identification Canada cialis generic Soma restaurant Herbal phentermine forum Phentermine + sale Uk viagra suppliers Phentermine depression Dichlorphenamide Free pack sample viagra Cheep paris france phentermine Oxycontin Canada cialis Phentermine review Cheap phentermine free consult Phentermine law suits Levivia and viagra Dopamine Phentermine np Viagra patent expiration Alternative to viagra drug Ceftibuten Cefatrizine Viagra sales uk Cheap tramadol online Discount pharmacy phentermine Vicodin withdrawal Drug loss phentermine weight Generic viagra reviews Cialis day next Xanax weight loss Trimetrexate Vinorelbine Viagra sale online Best price for generic viagra Ativan Tramadol apap Add link phentermine purchase suggest Shipping overnight phentermine Drug prescription tramadol Buy phentermine cod Long term effects of phentermine use Purchase xanax online Cyclacillin Zantac Viagra no prescription Cytarabine Ionamin phentermine yellow Nasonex Cortisol Buy com lvivhost online viagra Phentermine in stock Alendronate Phentermine forum Phentermine credit card or cod Discount hydrocodone Cialis drug interactions Pemoline Trovafloxacin Takin prozac and xanax Phentermine no rx needed Viagra free pill Tramadol 50 mg Safety of phentermine Ditropan Cialis versus viagra Xanax online consultation Buy phentermine online no prescription India generic viagra Phentermine xenical diet pill Letrozole Benicar Cefoperazone Online cialis Ansaid Cheap tramadol cod free fedex Phentermine online without a prescription Digitoxin What does xanax do Buy xanax no perscription needed amex accepted Cialis drug prescription Etodolac Viagra price comparison Vicodin m360 Foradil Dalteparin Canadian online pharmacy xanax Home made viagra Gitalin Viagra sale Furosemide Levitra vs cialis vs herbal Glucotrol Viagra by mail Drug laws ohio diet phentermine Inderal Differin Losec Herbal viagra alternative review Allegra Viagra buy in uk online Trileptal 2005 comment december leave viagra Purchase xanax Viagra sample Acitretin Muse Buy fioricet Buy Vicodin Phentermine blue Viagra uses Nifedipine Viagra herbal alternative Viagra from canada Buy viagra in canada Altace Trimethadione Fioricet Lozol Natural phentermine Buy Xenical Phenytoin interaction with xanax Buy viagra 1 Free sample prescription for viagra Buy Lortab Ambien on line Decadron Phentermine us pharmacy online consultation Phentermine gynecomastia Phentermine airborne express Bush inauguration speech draft viagra bastard of Pyridoxine Lipids Buy domain online 199mb com tramadol How much weight will you lose on phentermine Discount soma About phentermine Astemizole Ambien rx Motrin Desmopressin Echothiophate Cheap prescription viagra Aztreonam Zoloft and xanax Promethazine Phentermine drug test Tocainide Ethoheptazine Darvocet Luvox and xanax Liver problems from xanax Singulair Cheap phentermine no rx Buy tramadol online without a prescription Order viagra without prescription Imodium Hydrocodone lortab Ambien Isoproterenol Viagra pictures Buy levivia viagra Citalopram Amitriptyline Chlorcyclizine Overdose xanax Viagra 50mg Phentermine free shipping Phentermine work Soma Cialis soft tabs Viagra price online Isosorbide Cheapest viagra online Free ambien 5 no prescription Prescription soma Buy viagra line Hydrocodone cough Side effects of xanax xr Niacin Xanax without prescription Cheap generic cialis Cytotec Cozaar Divalproex Low dose xanax prosexual Drug testing xanax Hydrochlorothiazide Tramadol hcl acetaminotran Phentermine addiction Exelon Oxycodone Phentermine no perscription required Actos Soma muscle Crestor Abbr href rel title title viagra Dihydrotachysterol Viagra overnight shipping Pulmonary hypertension viagra Order phentermine phentermine online Cheap phentermine perscription Buying viagra online Leflunomide Hydrocodone apap Xanax no prescription needed Finasteride Diphenhydramine Dutasteride Purchase viagra on line Cheapest viagra uk Viagra supplier Diet drug loss phentermine weight Coreg Compare phentermine price Appetite suppressants and phentermine Viagra alternative for women Sample viagra Monopril Tramadol 377 Free viagra without a perscription Sinemet Phentermine and lexapro Beconase Tramadol and online pharmacy Saturday delivery cheapest phentermine Buy cheap domain onlineoutdoorscom xanax Phentermine 15 mg Diovan Impotence treatment viagra Ambien addiction Cheapest generic viagra Lovastatin Anxiety panic disorder xanax On line phentermine Naproxen Dibenzepin Pravachol Chlorpheniramine Hetacillin Ursodiol Viagra cialis comparison Methadone xanax interaction Is phentermine safe Zyban Fastin Vicodin cod Information medical phentermine Order viagra viagra online Cialis experiences How quick can you lose weight with phentermine Methixene Cialis compare levivia viagra Compare levivia viagra Amerge Doxylamine Phentermine picture Liothyronine Phentermine a159 Enoxaparin Meropenem Vicodin detox Quinapril Viagra online cheap Tramadol without prescription Dexamethasone Lasix Depakote Lisinopril with viagra Black market phentermine Liotrix Buy ambien online Viagra online Try viagra for free Olanzapine Quinethazone Phentermine cheapest Phentermine next day delivery Guaifenesin Identify xanax Viagra experiences Adipex meridia phentermine xenical Buy online prescription viagra Free phentermine sample Phentermine 30 mg Potassium Buy Tylenol Clarinex Bacampicillin Atenolol Xanax federal express Buy Adderall Cialis samples Viagra cream Does phentermine really work Guanfacine Zanaflex Phentermine prices Impotence pill viagra Compare levivia and viagra Phentermine low prices Azithromycin Percocet Taking phentermine Xanax death Scopolamine Phenoxybenzamine Generic viagra cialis levitra buy cheap Viagra sample pack Cheapest phentermine Acetaminophen e hydrocodone Cheap cialis Ambien cr effects side Nadolol Lowest viagra price Advair Without prescription phentermine Cialis vs levitra Buy phentermine online same day delivery Hydroxyurea Oseltamivir Canada online pharmacy viagra Tetrabenazine Blindness viagra Phentermine hcl Viagra side affects Viagra online sales Amphetamine Cosopt Losartan Phentermine rx Humulin Ambien side effect Phenylpropanolamine Phentermine drug interaction Minipress Snorting phentermine Apcalis cialis Fluoxetine Canada viagra Ordering viagra Tramadol online Free sample viagra Viagra side effects M357 vicodin Compare phentermine Xanax demerol morphine no prescription needed Dutasteride Diltiazem Phentermine uk suppliers Cialis effective soft tab treatment Generic tramadol Us phentermine Adapalene Phentermine prescriptions online physiphen online Xanax doseage Phentermine order easy Buy online viagra securely Lithium Non perscription generic viagra Cialis story Phentermine shipped to ky Macrobid Phentermine money orders Information about viagra 30mg phentermine Simethicone Viagra online shop Grapefruit viagra Vicodin online Birth defects and phentermine use Omnicef Phentermine ups delivery Online phentermine prescription Diet pal pay phentermine pill Pyridium Nystatin Buy xanax cod Mepenzolate Bricanyl Tramadol overdose Viagra alternatives uk Soma sale Drug tests for xanax Imitrex How fast can you loss weight with phentermine Importing cialis from canada to us Nizatidine Viagra vs levivia Alendronate Tramadol heath solutions network Metaraminol Accupril Cheapest phentermine price Heparin Proguanil Buy in online uk viagra Bupropion Generic viagra pill Lethal dosage of xanax Buy Alprazolam Prazosin Xenical hgh phentermine quit smoking detox Viagra prescriptions online Get phentermine Venlafaxine Meridia 5 90 No perscription generic viagra Remeron Viagra online canada Phentermine faqs Physical symptoms of high blood pressure and xanax Cheapest online pharmacy phentermine Half price viagra Tramadol abuse Cialis levitra viagra vs vs Buy xanax on line Cialis new viagra Diflucan Milrinone Viagra alternate Generic viagra india Xanax bar effects Phentermine success story Cheap phentermine Canadian no phentermine prescription Compare prices tramadol Compare viagra price Drug interactions with cocaine and viagra Phentermine resident sale virginia Lowest price viagra Cephalothin Orlistat Cialis tadalafil L arginine natural viagra Xanax in urine Furosemide Best price viagra Approval cialis Xanax 1mg Ecotrin Zyprexa Buy Acyclovir Soma online pharmacy Cefadroxil Cyclamate Cyber pharmacy viagra Tramadol hydrochloride tablet Hydrocodone effects Phentermine international order Prinivil Tramadol active ingredient Free xanax Alternative new viagra Phentermine discount no prescription Amsterdam holland viagra Mark martin viagra Free viagra online Generic viagra Order phentermine by cod Keppra Aldactone Flexeril Tramadol narcotic Buy cheapest online place viagra Bromocriptine Fluconazole Xanax doses Cheapest online viagra Colestipol Purchase tramadol online Buy cod online phentermine Tools needed for injecting xanax Viagra mexico 5 cheap Imiquimod Discounted phentermine with no prescription Xanax 2 mg Cheap generic viagra substitutes Buy Lipitor Online xanax Phentermine generic Tramadol overnight Paxil Metrizamide Phentermine $89 Estrone Feldene Viagra levivia alternatives Desipramine Cheap viagra online prescription Lowest price for phentermine Albendazole Viagra and blindness Buy vicodin online Bricanyl Cheapest viagra Phentermine sites that ship cash on delivery Is tramadol a narcotic Viagra alternatives Low price phentermine Cialis experience Phentermine priority mail What is viagra Buy viagra now online Viagra cialis levitra Bosch power tools zio lowest viagra Aciphex Xanax bars Viagra conviaindications Discount phentermine price Famvir Reliable same or next day phentermine purchase online Clopidogrel Cialis viagra Lunesta Mixing viagra and cialis Amerge Nasacort aciphex phentermine actos imitrex Phentermine no prescription needed Order tramadol online Constipation phentermine Liquid cialis Buy phentermine prescription Diet phentermine pill Berman sister female viagra study Actos phentermine aciphex imitrex Buy phentermine epharmacist Thiabendazole Loperamide Hydrocodone prescription Xanax withdrawl symptoms Phentermine blue capules Free phentermine Cialis tablets 99 phentermine Herbal alternatives to viagra Cheap quality viagra Cheap phentermine online Methylphenidate Mexico viagra Viagra prescriptions What is xanax Herbal viagra affiliate Tramadol hcl acetaminotran par Felbamate Levoxyl Low cost phentermine Phentermine for sale Allopurinol What do xanax look like Buy cialis viagra Buspirone Buy discount phentermine Sell viagra Danaparoid Buy viagra on line Lose weight with phentermine and 5 htp Information on phentermine Brompheniramine Phentermine hoodia diet pill Clarithromycin Line pharmacy phentermine Amphetamine Adipex diet phentermine pill prescription Cleocin Coumadin Levivia vs viagra Mark martin uniform jacket team caliber viagra Lorazepam Loxapine Phentermine 90 Norvasc Ethinamate Anafranil Free try viagra Female herbal viagra Fill viagra prescription Ephedrine Neomycin Diovan Generic viagra online Metoclopramide Sophia viagra Phentermine side effects dangers Buy cheap vicodin Viagra levivia Zileuton Tussionex Sotalol Cheap phentermine canada Fosamax 180 tablet tramadol Cheap xanax online Is viagra safe for woman Metformin Neurontin Viagra paypal france Buy herbal viagra Hyzaar Losec Reglan Cialis lowest price Cialis Oxycodone Viagra lowest prices Ethotoin Piperidolate Inject xanax Alternative to viagra online Kanamycin Vicodin for sale Book hydrocodone sport Viagra for sale online Atrovent Phentermine diet pills cheap Buy Zyban Buy Effexor Online consultations and prescriptions phentermine Phentermine warning Benzthiazide Buy cod diet phentermine pill Nicorette Xanax and alcohol Pantoprazole Lexapro Zalcitabine Xanax interaction with paxil Low natural resources for the drug phentermine Naprosyn Long term phentermine use Purchase fioricet Buy cialis without prescription Viagra alternates Overnight viagra Methotrexate Carisoprodol Cialis online Buy xanax without prescription in usa Diethylpropion Methylphenidate Tramadol and dosage Bromodiphenhydramine Cheapest viagra prices Approval cialis fda Vicodin withdrawal symptom Long term side effects of phentermine Tramadol cheap Phentermine wholesale Viagra use Lexapro Cheapest viagra on line Generic xanax xr Generic price viagra Cause rebound weight gain phentermine Ciclopirox Levlen Cheap tramadol Woman use viagra Dothiepin Ceftazidime Phentermine vs phentrazine Phentermine prescriptions online Labetalol Liqued viagra Black market costa rica pharmacy phentermine no imprint code Ketoconazole Phentermine compare prices Cheep phentermine with cod payments Xanax information Arava Aprotinin Meclofenamate Tramadol sales Vicodin Ethopropazine Combivent Cialis western open Chlorthalidone Ofloxacin 5 mg no prescription Phentermine hormone Ceclor Indomethacin Difference between valium and xanax Macrobid Indinavir Meperidine Ambien overnight Xanax overdose Tramadol cod Oxycontin Buy cod pay phentermine Tramadol sale On line pharmacy phentermine Cialis levivia viagra vs vs Genaric viagra Fluconazole Free online phentermine shipping Cheap phentermine diet pills Amaryl First viagra commercial network tv Meprobamate Phentermine adipex diet pill discount Phentermine lose weight loss diet pills Nortriptyline Cheapest phentermine pill Free viagra prescription Phentermine interactions Lozol Oxaprozin Phentermine by cod Effects of viagra on woman Adalat Ativan re valium vs vs xanax Levivia viagra vs Dextroamphetamine Submit a site viagra Xanax drug interactions Phentermine cheap no prescription Wholesale pfizer viagra Tolazoline Diphenadione Diet ky phentermine pill ship that Xanax depression Phentermine and methamphetamine Fioricet medication Generica viagra Tramadol 50mg Soma sleep Opipramol Lanoxin Cheap price on phentermine Lisinopril versus viagra Spironolactone Imipenem Free shipping on phentermine diet pills Xanax mg Why phentermine Long term side effects of xanax Viagra buy viagra Clindamycin Viagra samples Ramipril Buying viagra on line Maxzide Cheapest prescription viagra Tramadol drug interactions Buy cialis viagra How does xanax work Amiodarone Viagra for woman Phenylbutazone Lodine Lactulose Phentermine discover card Tramadol information Crestor Adalat Online phentermine prescriptions Where to buy phentermine online Strattera Seroquel Cialis free trial Buy online order viagra Prozac interact xanax Estrogen Laetrile Cod hydrocodone Online pharmacy and phentermine overnight Buy online phentermine shipping Ketorolac Phentermine and glaucoma Hydrocortisone Tacrolimus Glipizide Good morning viagra commercial 50mg viagra Nicorette Catapres Tramadol dog Loratadine Ibutilide Using viagra Discount phentermine to florida Cephalexin Glycerin Xanax drug testing Free overnight phentermine shipping Klonopin xanax Phentermine cheapest price Dulcolax Minipress Xanax withdrawel Levitra cialis info Abacavir Buy Codeine Buy viagra order viagra Ibuprofen Tramadol dosage for dogs Compare ionamin phentermine Iv sample viagra Prozac Buy ambien Xanax anxiety relief pills order here Generic cialis Tramadol saturday delivery Cialis dose Zithromax Clomiphene Viagra for sale Estradiol What happens when women take viagra Tramadol hydrochloride Nitroglycerin Buy prescription viagra Effects phentermine side strong Hexachlorophene Overnight xanax or alprazolam delivery Butoconazole Link buy online viagra info domain Relafen Buy soma Does xanax show up on drug tests Ceftin Herbal substitute viagra Alternative herbal viagra Ethionamide Digitalis Diet diet dieting phentermine pill Ecotrin Hydroflumethiazide Canada xanax Prescription phentermine with cod payment Buy cheap cialis online Concomitant use of cialis and levitra Fioricet order Alternative to viagra Tramadol pharmacy Pepcid Hydralazine Fioricet phentermine shipping Hydrocodone vicodin Online viagra sales Viagra 6 free samples Sell viagra online Isoflurophate Viagra prescription online Cheapest phentermine online Botox Phentermine mexican pharmacies online Macrodantin Herbal phentermine side effects Nizoral Somatostatin Phentermine yellow 30 mg Dosages xanax Online xanax prescription Viagra cost Purchase phentermine online Cheapest place to buy phentermine online Xanax withdrawals Buy cheap soma Discount xanax Cod tramadol money orders Lethal doses klonopin wellbrutrin xanax Triamterene Phentermine studies Cash on delivery phentermine Phentermine ionamin Linezolid Buy Norco Vicodin prescription Phentermine no prescription required next day delivery Discount online viagra 5 free shipping Discount viagra online Vicodin side effects Capreomycin Cialis vs viagra Long term side effects from xanax Buy Diflucan Oxymorphone Ordering 30mg phentermine Phentermine 37 5mg shipped to kentucky Viagrafix corporation Bulk phentermine Cialis comparison levitra viagra Lexapro interaction with phentermine Cod online pharmacy phentermine sell Polythiazide Buy viagra pill online Buy online prescription viagra without Terbinafine _achetez le viagra de levivia History of phentermine use Order phentermine online without perscription Viagra soft tabs Xanax pills Online pharmacies phentermine xenical meridia Order phentermine cod online Phentermine withdrawal Tramadol hcl tab Oxyphenbutazone Xanax dosage Diet phentermine Moexipril Norvasc Lidocaine Phentermine pharmacy Cheapest phentermine diet pills 2 mg xanax Cod free phentermine shipping Furazolidone Viagra prescription uk Meridia sibutramine Lisinopril Xanax withdrawal effects Diet online phentermine pill purchase Clorazepate

VI Cheat Sheet

The vi is a text editor. It is small, powerful, and standard on most UNIX systems. The vi often frustrates new users with a unique distinction between its two modes: Command Mode and Insert/Overtype Mode. This distinction, although difficult to become accustomed to for many users, provides great power and ability to the vi editor. Insert/Overtype Mode is designed for inserting text only. All text manipulations and cursor moving should be done from with in Command Mode. To know the vi editor well, is to love it. This page is not meant to replace the vi manual or vi man page. They are fine the way they are. This page is to provide a quick reference sheet for the vi editor and it’s most often used functions. Editors such as vim or vile are supersets (at least for the most part) of the vi editor, so this page should still prove useful. I hope even the most ardent vi lover can find something useful in this vi editor reference page.

Entering the vi
prompt$ vi
prompt$ vi file1 file2 …
prompt$ vi -r file #Recover file from crash
prompt$ vi +string file #Execute ex command “string”
prompt$ vi @rcfile #Read commands from rcfile
Insert/Overtype Mode

Insert/Overtype Mode is solely for entering text. To leave one of these two modes press the [ESC] key. if you wish to enter the ESC character or any other control character while in insert mode: type [CONTROL]-V and then the control sequence. The only difference between Insert Mode and Overtype Mode is that characters are placed in front of the text after the cursor in Insert Mode, where as existing characters are overwritten in Overtype Mode.
Command Mode
Entering Insert Mode
a append text, after the cursor
i insert text, before the cursor
R enter Overtype Mode
A append text, after end of line
I insert text, before first non-whitespace character
o open new line below cursor in Insert Mode
O open new line above cursor in Insert Mode
vi Syntax

vi commands follow the general form:
n operator m object
which means:
execute operator n times on m objects. If n and/or m are omitted, they default to 1.
Operators which take objects are(if the operator is pressed twice then the object is the current line)
c Change
d Deletion
“cy Yank, if “c is omitted, uses general buffer.
< shift lines left by shiftwidth variable
> shift lines right by shiftwidth variable
!cmd filter trough cmd
#The operators <, >, and ! are line based so the set of objects is diminished greatly.
Operators which do not take objects:
s Substitute
x Delete character
r Replace character
~ change case of character
Objects (if given without an operator are interpreted as a cursor motion command):
w forward until beginning of word
e forward until end of word
b backward until beginning of word
$ forward until end of line
^ backward until first non-whitespace character
0 backward until first column of line
nG line number n. (default: $, i.e. last line of file)
n| column n of current line
/pat forward until beginning of pat, search
?pat backward until beginning of pat, backward search
n repeat last search
N repeat last search/backward search, but in opposite direction
% until match of parenthesis, brace, or bracket
tc until next appearance of c on current line
Tc backward until next appearance of c on current line
fc until and including next appearance of c on current line
Fc backward until and including next appearance of c on current line
; repeat last f, F, t, or T
, repeat last f, F, t, or T in reverse
} forward until end of paragraph
{ backward until end of paragraph
) forward until end of sentence
( backward until end of sentence
]] forward until end of section
[[ backward until end of section
nH n lines before first line on screen; n defaults to 0
nL n lines before last line on screen; n defaults to 0
M the middle line of the screen
j down one line
k up one line
h left one character
l right one character
[BS] left one character, backspace usually equals ^H
[SPACE] right one character
_ the entire current line
- until first non-whitespace character on previous line
+ until first non-whitespace character on next line
[RETURN] until first non-whitespace character on next line

Miscellaneous¹
u undo last change
U undo entire line
“cp put “c or general buffer after the cursor
“cP put “c or general buffer before the cursor
mc set mark with character c
`c goto mark c
‘c goto beginning of line with mark c
“ return to position before mark jump or search
” return to beginning of line before mark jump or search
J join two lines
D delete rest of line
C change rest of line
Y yank current line into general buffer
& execute last ex-style substitution
. execute last modification
!obj cmd send object as stdin to command and replace with stdout
[Ctrl]-G print information about file
: map x y when character x is pressed, execute y
: map! x y map input mode character x to string y
: ab x y x is an abbreviation for y, changes are made on the fly
: su Suspend the current editor session
: sh run a shell
ex Commands
ex syntax

ex commands in the vi follow this general form:
: addr command
which means:
Execute command on specific lines obtained from the address part of the general form. If address is omitted, current line is used. Keep in mind that the ex is a line based editor, so all actions are line based.
addresses:
% all lines in file
x,y lines x to y
. current line
n line number: n
$ last line of file
x-n n lines before line x
x+n n lines after line x
/pat/ forward to line containing pat
?pat? backward to line containing pat
Some commands are:
refer to ex manual page for more commands
s/pat/text/ substitute 1st match of pat with text
s/pat/text/g substitute every match of pat with text
s/pat/text/n substitute the nth occurrence of pat with text
ya c yank into buffer c or the general buffer if c is omitted
g address cmd execute cmd on all lines which satisfy address
> shift right
< shift left
d delete line
! UNIX-cmd execute UNIX-cmd on line
m address move lines to address

The vi environment variables

set
You can customize your environment with this command by typing set var=value, this will set the specified var to value for a scalar variable. For boolean variables, use set var to set and set novar to unset. You can see which variables are set by just typing the set by its self. You can see a list of all variables by typing set all. Some environment variables are specific to the ex editor and some are specific to the vi editor. I have included both.

(I am missing some variables, please contact me with additions.)
boolean variables:
autoindent(ai) begin editing next line at same level of indent-ion as this one.
autowrite(aw) write current buffer before leaving
exrc(ex) tells vi/ex if it should read the .exrc file in the current directory(this can be a security risk).
errorbells editor sends a beep to the terminal when an incorrect
flash inverse the screen on an error instead of producing a bell
ignorecase(ic) ignore case of characters in searches.
lisp enter lisp mode
list place a $ at the end of each line and a ^I on each tab.
magic allow ., [, and * to be interpreted as special characters in RE's.
modelines execute the first and last 5 lines of the file if of the form: ex:command: or vi:command:
number(nu) number lines in left margin
showmatch(sm) when closing a paren., brace or bracket; move the visual cursor to opening item to check scope
showmode(smd) show type of insert mode
wrapscan(ws) when searching and at bottom of file, continue searching from the top
scalar variables:
directory the location of the temporary directory used by vi
paragraphs(para) macros to signify the beginning of a paragraph
report vi will notify you if you change more lines than the value of report
sections(sect) macros to signify the beginning of a section
shell The shell to use when executing the command :sh or :!
shiftwidth(sw) number of spaces to to insert on a shift operation
showmatch(sm) show the match of ) and } when typed
tabstop the length, in characters, of a tabstop
term holds the name of the terminal type being used
wrapmargin(wm) split lines at the column which is equal to the value of wrapmargin
File Saving and Loading
: wq write file and quit
: w write file
: w file write to specified file
: w! overwrite existing file
: e file edit new file
: r file put contents of file
: q quit the editor
: q! force quit the editor, do not save changes
: x quit the editor, save file if it was modified
ZZ quit the editor, save file if it was modified
: n start editing next file in list
: rew rewind file list, start editing 1st file on argument list again
Q quit vi and enter ex
: pre Preserve file.
: rec file recover file
Examples²
j move cursor down
k move cursor up
h or [BS] move cursor left
l or [SPACE] move cursor right
+ or [RETURN] first non-whitespace character on next line
cw change word
dd or d_ delete line
yy or y_ yank current line into the general buffer
"ayj yank current line and one below into buffer a
yfc yank until next occurrence of c on current line into the general buffer
3dl or d3l delete next 3 characters
4c( or 2c2( or c4( change next 4 sentences
>% while on a brace, paren., or bracket; shift right until closing brace, etc.
:%!sort or :1,$!sort sort current file
:5,10s/foo/bar/2 change the second occurrence of foo with bar on lines 5-10
:map g 1G map g to really run 1G
3J Join next 2 lines to current one
3,9m$ move lines 3 through 9 to the end of the file
ab w/o without when w/o is typed change to without
:?foo?,/bar/d delete from the reverse match of foo until the next match of bar
:g/{/,/}/< shift all lines between, and including, a “{” and a “}” left
:$-4,$d delete last five lines of buffer
:%s/^\(.*\) \(.*\)$/\2 \1/ swap everything before and after the first space
d” delete from current position to line of last jump

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists

SSH Help Coming Soon!

SSH Help Coming Soon!

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists