?
Solved

Text mode with syntax coloring

Posted on 2009-03-30
2
Medium Priority
?
933 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 1000 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 1000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses

752 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