->Title Page
->Intro
->Unix
->Vi editor
-->Basics
-->Vi reference
-->Miscellaneous tips
--->Line deletions
--->Switching cases
--->Spell checking
--->Advanced S and R
--->Blank lines
->Buffers
->Mirror sites
->Further reading

[ Up ]
[Prev][Home][Next]
[Author]

Vi ---> Writing from buffers

To save the contents of the a buffer to filename, type


    :e filename<RETURN>"ap (to edit a new file and put 'a's contents in it)
    :w                     (to save it)
To save a portion of a file to another file you could type


    ma                    (mark text at the top of the region to be saved)
    mb                    (mark text at the bottom of the region to be saved)
    :'a,'b w filename

Please notify owners of webpages with outdated links to these pages

Find this site useful? Want to give something back?

© 1993-2001 Christopher C. Taylor