>> Thanks, that's exactly what I need. My idea is to use this
>> inside sam itself with '|', so that I can easily edit small
>> parts of big files.

> Why not just highlight the section you want to edit and then
> type commands into the ~~sam~~ window?

Major probable real reason is that I have not yet master the
proper way to do everything.

Second major reason is that I'm happy with 'rc' scripts. I've been
writing them for anything I think of, just to learn it :)

Others:

* Sometimes I want to do a long, complex edit in a section, but
keep all changes in a single undo/redo step for the main document.

* I like the 'x' command, but it changes the selection. If you use
it many times it may be tiresome to select the same section of
text many times. I can't use 'k' to help here, as I think it is
not supposed to keep track of changes in selection size.

* When reviewing many similar, but not small, pieces of text, the
command below is pretty nice ('eec' is my "sub-sam"):

x/cool_regexp/| eec

* If I'm working on a section of a file, big enough not to fit in
the screen, I like to isolate it.

* When you say 'window', you mean that GUI thing? At this time I
use 'sam -d', but some day I may attach a mouse to my computer and
try that :)

Thanks for your comments, or others you may have. Best,
Maurício


Reply via email to