[Next] [Up] [Previous] [Contents]
Next: Further reading Up: Miscellaneous tips Previous: Removing blank lines

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

c.c.taylor@ieee.org