Text Reformatting
Beautiful!
Thanks to all. sed and vim work perfect. I read up on sed and tried vim before posting the question. It's just remains Greek to me.
vim -ggVG gives error -G command unknown. vim -ggVg file just opens the file as is.
Quoted 5 lines · Peter
Some text I download for printing are formatted like: >
Because of the publicity the Iraqi government has given to the
issue, Iraqis worry about DU. >
which adds more pages for printing. >
How can I with some command, left align the text
Regards
Signature · 7 lines
Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Hi,
Quoted 4 lines
posting the question. It's just remains Greek to me.
vim -ggVG gives error -G command unknown. vim -ggVg file just opens the file as is.
Sorry --- I should have given a little more background on Vim. When I said to ``run a command'', I meant open your file in Vim (preferably from the command line):
vim file.txt
Then, running the Vim commands. This involves typing a sequence of characters in quick succession, one after the other:
gggqG
These will hopefully format your file correctly. If you don't like the result, you can easily abort by typing:
:q! [ENTER]
And by [ENTER] I mean the [ENTER] key on the keyboard. You might have [RETURN] or whatever. Same effect.
Again, sorry about my earlier brevity. You naturally assumed Vim was a simple command-line tool like ``sed'', and tried to pass it the command as an argument. It is actually a text editor.
HTH,
Yawar
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Thanks Amin,
gggqG works; ggVG in your first mail did not work, then I tried it with :ggVG and got the error that it is not a command after which I tried vim ggVG file. Now it's all clear even so still strange.
I am well aware that vim is a text editor made somewhat easier to use now with gvim.
Regards
Signature · 7 lines
Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs