Vim: how to use Ex commands across files (global marks?) -
i wanted know if can move/copy lines 1 file in vim using ex commands , global marks.
i can on current file setting destination mark @ cursor position (ma), going source, selecting lines , issue command:
:'<,'>m 'a
and selected lines moved destination. how across files? tried using global marks move file:
:'<,'>m 'a
but error "e20: mark not set" shown.
unfortunately not possible. on mark
:
uppercase marks 'a 'z include file name. {vi: no uppercase marks} can use them jump file file. you can use uppercase mark operator if mark in current file.
they supposed let jump. important, on {address}
:
't = position of mark t (uppercase); when mark in file cannot used in range
Comments
Post a Comment