Changes

Vi Short Command Reference

1,094 bytes added, 02:39, 28 June 2007
The following lines were added (+) and removed (-):
|}&nbsp;=== Replacement ===To use replacers type the sequence and then type the string of characters to replace with, e.g. 2,c,w,"Bored Zo" to replace from the cursor to the end of the next word to "Bored Zo"{| width="525" border="01" cellpadding="2"| r| replace a single character|-| shift-r| replace characters from the cursor(e.g. if | is the cursor and your text is "I AM the |Entertained Zo!" shift-r,"Bored" will give you "I AM the Boredtained Zo!")|-| c,w or c,e| change from cursor to end of word|-| c,b| change from beginning of word to before cursor|-| c,$ or sft-c| change from cursor to end of line|-| c,c| change the ENTIRE line|-| <nowiki>:x,ys/oldstring/newstring/</nowiki>| substitute one occurrence of newstring for oldstring from line x to line y (if y = $ then to EOF)|-| <nowiki>:x,ys/oldstr/newstr/g</nowiki>| substitute all occurrences per line of newstring for oldstring|-| <nowiki>:%s/oldstr/newstr/g</nowiki>| substitution from start of document to end of document all lines, all occurrences per line.|-| ~| toggle a character's case
Bureaucrat, administrator
16,192
edits