Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Vi isn't a word processor, it is a text editor. Think of vi as notepad on steriods. vi is the wrong tool for your specific purpose, you should stick with a word processor. You can of course learn a markup language such as latex and write your letters in vi and use latex commands to specify formatting.
Just to make it clear vi won't then render the html or interpret the shell escape commands, they will always appear as jlliagre wrote them. However a browser will render the html and you'll get your formatted text.
In the same way once you have written your latex source file it needs compiling into some format of your choosing.
I'm unfamiliar with Mandrake, use your package manager tools to find out if it is installed.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
I thank both of you for taking time to reply me.
I always write a small note using the vi editor. For example, this linuxquestions.org website's username and the password is stored in a vi file.
Some files are just 4 or 5 lines. Some are 2 or 3 page long letters. So I want to highlight some sentences in those files.
I find the vi is very convenient. I have been using it for more than 5 years.
I know the files of html nature works fine to write big or colored letters. I have been writing webpages or rather html pages using the vi editor.
As phil mentioned, the vi is not a wordprocessor. It is a note-pad.
The alternative may be that I wrote everything using html format. That is rather cumbersome. I need something quick. It takes time to write those html tags and related stuff.
I never learnt to work with the vim program. Is it better than the vi editor?
Has it better function than the vi editor?
On the other hand, I can't use the simple 'cat' command to see all the highlights in the vi editor.
As phil mentioned, I must use the webbrowser to see the html pages. That is cumbersome.
Write a letter in openoffice, or some other word processor and add colours, different fonts and sizes to it. Save it as an rtf "Rich Text Format" file . Go and open that file in vi. Other document formats will not work because they are saved in a binary format.
vi just works with plain text documents, it knows nothing of formatting, colours and what have you. When you write your document in a wordprocessor all the formatting must be saved along with the actual text as demostrated by the above test. vim does the same job as vi, it just has more features, but none that make it act like a wordprocessor.
You either need to learn a markup language and in vi use the markup tags to specify the structure of your document, or use a word processor and WYSIWYG techniques.
Edit: Again cat just deals with plain text, it reads a character from a file and prints it on stdout (normally your console). OK its a little more complex than that but thats beyond the scope of this thread, but it does not parse the file for formatting instructions.
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,788
Rep:
I'm using elvis instead of vim as my preferred vi clone, it has the ability to properly render some text formats like html, tex and nroff manual pages.
You still need to enter the formatting commands manually though.
Nope, thats right. If you scroll down you'll start to see the text you entered in OpenOffice. Those tags and keywords are instructions to specify the structure and formatting of your document. As you can see vi hasn't interpreted them and formatted your text appropriately it just shows the keywords as text.
Hold on, did you write nonsense in your document. Are these strings from it:
Quote:
Ffjf
Quote:
jfsjflsfdfls
OK, this definately is a string from it
Quote:
föäfäödsfläsdfä'sdf'ds'äs
Using non-ascii characters and random strings makes spotting your text even harder.
I'm using elvis instead of vim as my preferred vi clone, it has the ability to properly render some text formats like html, tex and nroff manual pages.
I did not know that. I don't know the roadmap for elvis but I suppose being able to render some formats is half way to having a WYSIWYG editing capacity.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
Phil
Out of context, I wonder whether it is common to use Open Source operaing systems in England. I mean the home users. Here it is very rare. If I ask 100 people, I wouldn't find a single individual who uses any Open Source at their home computers.
However, I know 2 people who uses Open Source operating systems. One uses Free BSD and the other uses Linux.
Well, seeing as your taking your own thread off topic I suppose it doesn't matter
---
I don't really know. Certainly with people I know who do Computer Science degrees it is reasonably popular, but I don't know anyone who uses a computer as a means to an end that uses Linux. However in other parts of England the case may be different, its a funny country like that. When I was at sixth form college (16 to 18 years old) I knew only one person that used Linux.
The rest of my family won't touch my machines, they'll only use Windows.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.