1
vote
2answers
31 views

Edit vim syntax highlighting options for a specific file type

When I edit a .markdown file in vim, the highlighting looks like this: I am using a light colour scheme and the builtin vim .markdown settings (no plugins - I found them to be worse). The problem ...
0
votes
1answer
30 views

Highlight endif in vim

I'm creating a colorscheme for vim and want to give the ifand endif distinct colors. I followed the tutorial on vimcasts and have the following file "set 256 colors for gnome-terminal if $COLORTERM ...
0
votes
0answers
31 views

Importing pygments' highlighting to vim

Usually, vim does very good job in highlighting, using the packaged syntax files. Unfortunately, it does bad job with MySQL. At first, I looked everywhere for a better MySQL vim syntax file, with no ...
0
votes
0answers
96 views

Why none of the rainbow parentheses plugins work with filetype=php?

I've tried a dozen rainbow plugins. They all work, until i open a php file or set filetype=php. Then I get parentheses with the same color in that buffer. what is the reason for this? I tried ...
0
votes
1answer
37 views

In Vim, why does searching “/A\n\zsB” work, but not syntax highlighting “:syn match Statement 'A\n\zsB'”?

Assume the following text file: A B Or in other words, a file containing only the string A\nB. Let's see if I can match any B preceded by A and a newline. Simple enough. I can do this sucessfully ...
0
votes
1answer
294 views

objective-c syntax highlighting for vim

I would like to have an excellent syntax highliter for obj-c that matches or beats the one in my xcode.. I've installed base16 through yadr, and i've also installed cocoa.vim to have better syntax ...
0
votes
1answer
67 views

VIM - How to change color of if, else, endif, for and endfor statements

I just Django html so I have the normal html tags as well as the if, else, endif, for and endfor statements. I use a customized version of the colorscheme called slate. There is a line in the ...
0
votes
1answer
18 views

VIM - in colorscheme file, how to have different colours depending on what the syntax is?

I use VIM and I want I use my own customized slate colorscheme (slate-mine.vim). In slate-mine.vim, is there a way for me to do something like if syntax == django html then apply the following ...
1
vote
1answer
23 views

Editing the htmldjango.vim file

I like htmldjango.vim syntax highlighting except for a few things. 1) It highlights all variables (whatever starts with {{ or {% and ends with }} or %}) white and gives it a red font. I want all ...
0
votes
2answers
24 views

creating a basic html vim syntax file

I use vim and type a lot of Django html code and I don't like the htmldjango.vim or html.vim highlighting syntax. I decided I should just create my own basic syntax highlighting for Django html. All I ...
1
vote
1answer
76 views

vim - how to treat three quotations in a row as a comment rather than a string

I use python and in python, three quotation marks in a row """ or ''' signify a block-comment, and a normal comment is just a hashtag. (#) I want comments to be colored grey and strings to be ...
1
vote
1answer
95 views

*live* vim syntax highlighting on stdout?

I want to have some program's output colorized as it apperas on terminal. I know that utility named highlight does the this. But: it has a limited set of built-in language support, and I want ...
1
vote
2answers
370 views

gvim how to change exisitng colorscheme's syntax colors?

I use gvim and the color scheme which I use is called 'slate'. I mostly just code in python, html and css and I like slate's syntax coloring except for a few syntax colors. Is it possible for me to ...
2
votes
1answer
272 views

how to turn off gvim error highlighting?

I use gvim as my text editor and the syntax coloring is great except it highlights "errors" and gives it a white background with red font. How do I turn off error highlighting? I find it annoying and ...
0
votes
1answer
96 views

gvim how to remove word highlighting

Okay so I am using the 'slate' color scheme in gvim and it is really great and I like it a lot except recently I have starting working with html and css files and for some reason, it starts ...
0
votes
1answer
174 views

SecureCRT and Nice PHP/JS Syntax Highlighting: How To Configure?

I'm running SecureCRT using Windows 7. After googling a bit the VanDyke results came up, but I want to get it so instead of just a black background with all green text (sure it's better than the ...
3
votes
2answers
2k views

Better syntax highlighting for Java in Vim?

I've found Vim to have fantastic syntax highlighting with my preferred color schemes for Ruby and Python, but whenever I need to write Java code, it's like I haven't even turned on highlighting in the ...
2
votes
2answers
595 views

Is it possible to import VIM syntax highlight into Notepad++?

VIM's got a syntax highlight file I would like to have in Notepad++. But VIM uses ".vim" files for syntax highlight definitions, while Notepad++ uses XML. At the "Import" button, you can only specify ...
0
votes
2answers
299 views

Export File Syntax Highlighting to HTML Using Vim

I wrote a vim syntax highlighting file for a custom file type that I am working and I want to be able to show off my syntax highlighting painlessly by converting my view of the page into an HTML ...
0
votes
2answers
295 views

Editor of txt files for Windows with syntax highlight and foldable/collapsible sections for Markdown [closed]

I asked the same for Notepad++, but in fact I don't mind changing of software. I am interested in managing txt files that contain Markdown. I would like to find an editor of txt files for Windows ...
0
votes
1answer
151 views

vim mail mode with markdown syntax

I've recently switched to Mutt, and am using vim as my main editor, which is working quite well. My only minor annoyance is that I would like to, in addition to the various highlights and such done my ...
0
votes
1answer
176 views

not found in 'runtimepath': “ftdetect/*.vim”

I tried uninstalling pathogen but now am getting no filetype detection. With this issue I get no filetype detection and thus no syntax support. Starting vim via vim -V1 I get the following message: ...
3
votes
1answer
192 views

How to set syntax highlighting by default when I open *.tt file in Vim?

I use Vim for edit files. When I open file with .tt extension I have to use command set filetype=html in order to set syntax highlighting on for this file. How can I use this command by default ...
7
votes
1answer
576 views

How to have VIM show unclosed parenthesis?

Is there a way that I can change my .vimrc file so that unclosed parenthesis/brackets/braces are highlighted? For instance the following would highlight the parenthesis after the word main: public ...
0
votes
1answer
227 views

vim syntax highlighting: remove the long underline

I am using syntax highlighting scripts found from here. I am using java.vim, javacc.vim, html.vim and c.vim. But I am getting a long line under some keywords like this -- Moreover, those syntax ...
1
vote
0answers
158 views

Convert vim syntax highlighting for use with gedit

Is there an easy way to convert vim syntax highlighting definitions for use with GtkSourceView/gedit?
0
votes
2answers
264 views

How to change the colour of the WildMenu background?

I want to change the colour of the WildMenu background but I don't know which highlight group I need to specify. WildMenu is the highlighted state of whichever item you have selected, not the ...
0
votes
2answers
169 views

VIM does not detect syntax of .ssh/config

vi ~/.ssh/config :set syn? >syntax=conf When I do: set syn=sshconfig Then the syntax highlighting is as it should be. Why isn't the filetype automatically identified? And how can it be ...
4
votes
3answers
6k views

How do I make vim automatically apply c++ syntax highlight on Arduino files (.ino/.pde)?

How do I make vim automatically apply c++ syntax highlight on Arduino files (.ino/.pde)? Or how does vim syntax highlight know what is a c++ file? And how can I tell him that files that is called ...
0
votes
2answers
126 views

How do I get syntax elements to be automatically inserted on the next line in vim?

In vim, many syntax elements automatically get inserted on the next line when I start a newline. For example, if I am inside a vim file editing a comment in insert mode, when I go to the next line, I ...
1
vote
1answer
111 views

underline word in vim without changing its color

I'd like use underlined text for some syntactic groups in vim. A simple example would the Search group: :highlight Search guibg=black guifg=yellow gui=underline However, when I do that, all search ...
0
votes
0answers
66 views

Change the color for a keyword in Vim for ALL filetypes

I'm using &showbreak=repeat(' ', 5) to add indentation to wordwrapped lines. What I WANT to do is add a bright red >>>> instead. How would I change all >>>> occurrences ...
0
votes
1answer
138 views

VIM: Highlight += with a background

I have been coding in PHP lately, which is weakly typed so integers are added with += but strings are concatenated with .=. That means that I wind up using += where I shouldn't and PHP actually then ...
2
votes
1answer
856 views

Vim: How to change the current item highlight color when substituting

I have changed my Vim colours so when I do a /search, every match is highlighted in bright yellow. This makes matches much easier to see. However, when I perform a substitution with the confirm flag ...
3
votes
1answer
963 views

Vim Gemfile recognition

When I open a Gemfile in vim, I don't automatically get the colors for the code. I have to do manually :set syntax=ruby. Is there a simple way to automate this ?
3
votes
2answers
2k views

Turning on XML syntax highlighting in vim for a non-XML file

I'm using vim to browse through some log files (the file extension is .log) which contain a lot of XML. How can I turn on XML syntax highlighting after opening the file? Of course, I don't actually ...
1
vote
0answers
123 views

Vim syntax files - Ignore line prefix

I have files containing code within a prefix-based structure, such as: perl: sub abc { perl: return "def"; perl: } I'd like to be able to highlight the perl as normal. i.e. ignore the perl: ...
2
votes
1answer
301 views

Vim custom syntax highlighting, include other language syntax in a specified range

VIM 7.3.46 I have a custom syntax file defined for making my notes more readable. I want to define a range that will apply syntax highlighting from an existing syntax file (e.g. php, javascript or ...
4
votes
2answers
677 views

Using vim as a filter to colorize command-line output

I love vim's syntax highlighting. It does particularly well on unified diffs, so I use it very often like that: diff -pu old new | vim - I'm aware of one tip to use vim as a better less, but what I ...
1
vote
3answers
744 views

In vim, how I can set a local match only for a specific filetype?

in vim, I can set local configuration as setlocal number How I can set a local match only for specific filetype? I use this: autocmd! BufEnter *.py,.vimrc,*.sh,*.c* :match ColorColumn ...
4
votes
2answers
118 views

Getting vi/vim syntax highlighting used by certain user

At work most web-development we do, is done in vi/vim, on a debian-server. Sometimes we have to alter some files as root, and the syntax-highlighting-model of that user (root) is absolutely awesome. ...
2
votes
1answer
281 views

Creating Custom Code Syntax Highlighting Color Themes

I've come across a couple of websites that have been very helpful in allowing people to create custom color themes for their favorite IDE's. Visual Studio themes Eclipse themes Is there a similar ...
2
votes
1answer
2k views

How can I add HTML5 support to Vim without plugins?

I'm using OS X, but I don't think that matters. By default, both MacVim and [terminal] Vim handle auto-indentation of HTML 4.0 elements, but any HTML5 elements, such as <header> and ...
1
vote
1answer
987 views

Vim on Solaris. Coloured syntax highlighting?

I spend a lot of my time in vim, usually on some sort of debian/ubuntu OS. I've recently started playing with a Solaris 11 Express server and wondered if it's possible to enable coloured ...
6
votes
2answers
832 views

Multiple foldmethods in vim

I use the folding option of vim quite a lot, and have usually set foldmethod to syntax. Recently I discovered that it is possible to add custom folds, such that I can put whole blocks in /*{{{*/ and ...
3
votes
1answer
1k views

Vim syntax highlighting disappeared for text files (.txt)

My to-do list is a plain text .txt file that I load in Vim. In .txt files Vim has always coloured hash marks (#) and the text following them on the same line, which I use to mark out urgent to-do ...
2
votes
2answers
650 views

Enable syntax highlighting on msysgit's version of vim?

I was wondering if there was a way to enable syntax highlighting on msysgit's "built in" vim. I'm specifically trying to get ruby highlighting to work, but nothing I have tried has enabled it. I'm ...
6
votes
1answer
2k views

How can I configure syntax highlighting for a custom language in vim?

We use our own little language for small tasks, but we do not have Vim highlighting support for it.
7
votes
3answers
3k views

How do I enable syntax highlighting for .bash_aliases in vim?

I'm working on reorganizing my .bashrc. I moved my aliases to .bash_aliases (which is sourced by .bashrc, but I can't figure out how to enable syntax highlighting for this file. vim seems unable to ...
3
votes
2answers
353 views

How to utilize vim's syntax color to replace the `highlight' utility?

I feel that the `highlight' utility doesn't support as many file types as vim does, and the project isn't very active. When the file is gzipped, highlight doesn't recognize it at all. But in ...