Solved

Text mode with syntax coloring

Posted on 2009-03-30
2
931 Views
Last Modified: 2013-12-13
I want to start using vim as my main text editor. One of the things I want to do is use it for simple texts, without having to rely on too heavy word processors like Word or OpenOffice. (I will use those when layout is important, but not for this.) I'm curious if there is a mode in Vim that allows me to use a simple text format (like wiki-style) that uses syntax coloring, giving me visual input about the structure of the document.
0
Comment
Question by:R7AF
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
Maciej S earned 250 total points
ID: 24023362
It is possible. At least partly.
First, you need to turn on syntax highlighting (:syntax on).
Then, you have two possibilities - first is to use predefined syntax for different types of files (see /usr/share/vim/vim71/syntax or similar - depending on vim version and your distribution).
Second option is to create your own syntax. See ":help syntax" to get some ideas on how to create your syntax file.
0
 
LVL 2

Assisted Solution

by:jdevera
jdevera earned 250 total points
ID: 24026987
Also, if you are planning to use a well known wiki software, you can search in vim.org and get premade syntax files, for example:

WikiMedia: http://www.vim.org/scripts/script.php?script_id=1787
MoinMoin: http://www.vim.org/scripts/script.php?script_id=1459
Dokuwiki: http://www.vim.org/scripts/script.php?script_id=2374
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question