LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-06-2006, 01:03 AM   #1
Kitten78
LQ Newbie
 
Registered: Sep 2006
Distribution: Slackware, Ubuntu
Posts: 11

Rep: Reputation: 0
Word wrap in text editor (shell)


Greetings, community.

Could anyone point me at some text editor that is usable without X and does dynamic word wrapping. By dynamic, I mean not inserting newlines as I type. Also appreciating features like syntax highlighting, but I can live without this and use different editor for coding.

I've really used hours for looking for a such software. Google, Sourceforge, you name it.. and my hopes are starting to crumble down.

Thanks mucho in advance.
 
Old 09-06-2006, 02:01 AM   #2
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Have you tried Vim ?

If not check the site
http://www.vim.org/

And check if that helps.

What type of editing are you planning to do?
C source code?
 
Old 09-07-2006, 12:12 AM   #3
Kitten78
LQ Newbie
 
Registered: Sep 2006
Distribution: Slackware, Ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Yes, tried vim, but it doesn't work the way I'd hope. Even searched a bit through vim's manual:
"If you enter a paragraph and then decide to delete half the words on the first line, Vim will not reformat the text."
..which is the thing I'm after.

I'm looking for text editor for writing. As in writing normal text, letter or whatnot, and I'd like to see the whole line as I write even it is 23412 characters long and be able to edit it easily.

Actually I recently found out that vi does this, except the "easily" part (No flame intended). Vi does show the line in whole by dynamically wrapping the parts that go out of the margin. But if I want to go to middle of the line of 23412 characters, I have to move sideways from the first letter since moving up/down will take me to the next newline. Not very handy (still no flame intended).

But yeah, vim is quite good for writing C/C++.
 
Old 09-07-2006, 01:35 AM   #4
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Just one pointer for that

In Vim you can move with numbers.
SO if the page is 80 char wide going to the next line in a para can be done with

80l

Also to move to next word you can use 'w' .
That'll be faster than arrow keys.

Also if you have the cursor in the middle of line and you want to
delete to start of line you can use

d0

to delete to end of line it`ll be

d$

It may not suite your purpose but will make things fast.

Also try using macro`s once in vim and you`ll find editing a lot more fun.
 
Old 09-07-2006, 02:17 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
GNU emacs can run in a terminal. To do this, start it like this:
emacs -nw
Emacs calls word wrapping "auto-fill-mode". You can turn it on by using the command:
M-x auto-fill-mode
(The M-x means meta key + x. Usually the alt key on PC keyboards is the meta key).

If auto-fill-mode is off, you can quickly wrap the current paragraph using ESC-q.
 
Old 09-07-2006, 11:28 PM   #6
Kitten78
LQ Newbie
 
Registered: Sep 2006
Distribution: Slackware, Ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for advice. I'll try these out.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"enscript --word-wrap" does not wrap line of text file powah Linux - General 3 05-16-2006 09:12 PM
How do I open a text editor in a shell terminal? alex1986 Linux - Newbie 9 11-30-2005 03:52 PM
Microsoft Word won't word wrap Micro420 General 1 06-13-2005 04:36 PM
Text editor in RH9 shell? deWin Linux - Newbie 15 03-07-2004 12:30 AM
Word Wrap Squall LQ Suggestions & Feedback 4 02-03-2004 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration