Operating System - HP-UX
1833775 Members
3715 Online
110063 Solutions
New Discussion

Re: ASCII editor: cut and paste

 
SOLVED
Go to solution
Thomas Schler_1
Trusted Contributor

ASCII editor: cut and paste

In former times, when I used my good old Atari, I had a GUI ASCII
editor that allowed highlighting not only line based but also column
based for cut and paste.

Do you know of any public domain editor with similar features?
Is nedit a possible candidate?
no users -- no problems
8 REPLIES 8
Victor BERRIDGE
Honored Contributor
Solution

Re: ASCII editor: cut and paste

Hi,
Yes nedit is a good candidate

Best of all

Victor
Carlos Fernandez Riera
Honored Contributor

Re: ASCII editor: cut and paste


Hi:

highlight colums is a capability very extrange, not usual.

I dont know nothing about nedit, but if it is a new version of edit software that i used in a Irmx-86 O.S. there is a very good software. I have saw it for DOS too.

This software lets you hex. edit, octal, macros lenguage and splited windows ( charater mode not WIN).


If it is that sofware, yes i still remember it after 10 years ago.






unsupported
Gregory Fruth
Esteemed Contributor

Re: ASCII editor: cut and paste

emacs has a rectangular cut, but I dunno if it has a rectangular
paste to go with it. I find the rectangular cut useful even without
the paste. Perhaps xemacs has them both. If not, and
you know emacs or xemacs lisp, you could implement it
yourself! :-)
Stefan Schulz
Honored Contributor

Re: ASCII editor: cut and paste

I also woud recomend nedit. It has a lot features like syntax coloring for different shells and programming languages.

Have a look at the porting arcive or www.nedit.org (i think)

Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Madhu Sudhan_1
Respected Contributor

Re: ASCII editor: cut and paste

Thomas Schler:
I think you can do cut and paste across files using vi too. :)

To copy:
"yy
To paste
:e the_file_name
"p

Buffer name can be a number or an alphabet.
Generally I use 1 or a.

use dd instead yy if you want to cut paste.

Enjoy !

...Madhu




Think Positive
Gregory Fruth
Esteemed Contributor

Re: ASCII editor: cut and paste

Upon further research, emacs does have both cut and paste
for rectangles

To clarify, let's say you have:

123456
abcdefg

and you want to cut out:

234
bcd

and paste it somewhere else.

To cut, set the mark (via CTRL-space) at one corner of the
rectangle you want to cut (in this case, "2"), then move the cursor to
the opposite corner (well, actually one column farther over, "e").
Type "ESC-x kill-rectangle" (the "kill-rectangle" will appear in the
minibuffer line at the bottom of the window). The section you
marked will now be cut out.

Then, move the cursor to the place where you want to
paste, then type "ESC-x yank-rectangle".

Eventually, you'll probably want to bind these commands to
simple keystrokes. I hardly ever use CTRL-t (transpose
characters) or CTRL-l (redraw screen), so I bind them
in my .emacs file as:

(global-set-key "\C-t" 'kill-rectangle)
(global-set-key "\C-l" 'yank-rectangle)
Tommy Palo
Trusted Contributor

Re: ASCII editor: cut and paste

Take a look at "vim" (vi improved).
A good choise if you are used to the power of vi
http://www.vim.org/
Keep it simple
Thomas Schler_1
Trusted Contributor

Re: ASCII editor: cut and paste

Thanks for further answers.

Gregory: I'm not familiar with emacs, I mainly use vi and vim. And, now, I'm starting to like nedit. Thanks for your detailed information.

Tommy: vim does not support rectangular cut and paste like nedit.
no users -- no problems