Vi command

May 12, 2008

http://www.ss64.com/bashsyntax/vi.html

Switch to Text or Insert mode:

Open line above cursor
O
Insert text at beginning of line
I
Insert text at cursor
i
Insert text after cursor
a
Append text at line end
A
Open line below cursor
o

Switch to Command mode:

Switch to command mode
<ESC>

Cursor Movement (command mode):

Scroll Backward 1 screen
<ctrl>b
Scroll Up 1/2 screen
<ctrl>u
Go to beginning of line
0
Go to line n
nG
Go to end of line
$
Scroll Down 1/2 screen
<ctrl>d
Go to line number ##
:##
Scroll Forward 1 screen
<ctrl>f
Go to last line
G
Scroll by sentence f/b ( )
Scroll by word f/b w b Move left, down, up, right h j k l
Left 6 chars
6h
Directional Movement Arrow Keys
Go to line #6
6G

Deleting text (command mode):

Change word
cw
Replace one character
r
Delete word
dw
Delete text at cursor
x
Delete entire line (to buffer)
dd
Delete current to end of line
D
Delete 5 lines (to buffer)
5dd
Delete lines 5-10
:5,10d

Editing (command mode):

Copy line
yy
Copy n lines
nyy
Copy lines 1-2/paste after 3
:1,2t 3
Paste above current line
P
Paste below current line
p
Move lines 4-5/paste after 6
:4,5m 6
Join previous line
J
Search backward for string
?string
Search forward for string
/string Find next string occurrence n
% (entire file) s (search and replace) /old text with new/ c (confirm) g (global – all)
:%s/oldstring/newstring/cg
Ignore case during search
:set ic
Repeat last command
.
Undo previous command
u
Undo all changes to line
U

Save and Quit (command mode):

Save changes to buffer
:w
Save changes and quit vi
:wq
Save file to new file
:w file
Quit without saving
:q!
Save lines to new file
:10,15w file

The address list could not be displaye

May 7, 2008

SYMPTOMS

loadTOCNode(1, ’symptoms’);

If you attempt to address a new message from your Contacts, you may receive the following error message:

The address list could not be displayed. The Contacts folder associated with this address list could not be opened; it may have been moved or deleted, or you do not have permissions. For information on how to remove this folder from the Outlook Address Book, see Microsoft Outlook Help.

Back to the top

CAUSE

loadTOCNode(1, ’cause’);

This behavior can occur if the Microsoft Outlook Address Book is damaged.

Back to the top

RESOLUTION

loadTOCNode(1, ‘resolution’); To resolve this issue, remove and reinstall the Outlook Address Book. To do this:

1. Start Outlook.
2. On the Tools menu, click E-mail Accounts.
3. Click View or change existing directories or address books, and then click Next.
4. Click Outlook Address Book, and then click Remove.
5. Click Yes when you receive the prompt to confirm the removal.
6. Click Add.
7. Click Additional Address Books, and then click Next.
8. Click Outlook Address Book, and then click Next.
9. Click OK when you receive the message to restart Outlook.
10. Click Finish.
11. Click Exit on the File menu to quit Outlook.
12. Restart Outlook.
13. In the Folder list, right-click the folder that you want to use with the Address Book (for example, right-click Contacts), and then click Properties.
14. Click the Outlook Address Book tab.
15. Click to select the Show this folder as an e-mail Address Book check box (if it is not already selected), and then click OK.