Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use vim's syntax files in emacs to color the text

Tags:

syntax

vim

emacs

Are there any snippets to make emacs use the .vim syntax files found in /usr/share/vim/vimfiles/ for coloring text. Many applications like conky have the vim syntax files like "conkyrc.vim" for vim but not for emacs. So is there an easy way to use those files rather than rewriting a new language-mode for each of those available in vimfiles directory.

like image 939
Vijayender Avatar asked Apr 03 '10 21:04

Vijayender


People also ask

How to highlight syntax in vim?

After opening login.sh file in vim editor, press ESC key and type ':syntax on' to enable syntax highlighting. The file will look like the following image if syntax highlighting is on. Press ESC key and type, “syntax off” to disable syntax highlighting.

How do I change the color in vi editor?

You can change color schemes at anytime in vi by typing colorscheme followed by a space and the name of the color scheme. For more color schemes, you can browse this library on the vim website. You can enable or disable colors by simply typing "syntax on" or "syntax off" in vi.

Where are vim syntax files?

vim/ (aka ~/. vim/ ), which means that Vim looks for syntax files in your home folder first before it looks anywhere else. Vim looks for your extra files by searching ~/. vim/plugin/*.


1 Answers

No. There is no generic way.

like image 92
Bozhidar Batsov Avatar answered Nov 03 '22 01:11

Bozhidar Batsov