vim-syntax-highlighting

Vim Syntax Highlighting does not work

本小妞迷上赌 提交于 2020-12-27 08:20:12
问题 I've installed a fresh Arch Linux system on my laptop and downloaded the vim package. I haven't altered the .vimrc file, but the syntax highlighting doesn't seem to work with any of the languages I tried (Python, Ruby, CSharp, C...). Auto formatting (gg, =, G) also fails. Until now when playing with vim (because I can't really say I've extensively used it) in other OSs (Ubuntu, Fedora), the syntax highlighting came on automatically. Is there something I am missing here? 回答1: You need to have

Vim Syntax Highlighting does not work

被刻印的时光 ゝ 提交于 2020-12-27 08:19:59
问题 I've installed a fresh Arch Linux system on my laptop and downloaded the vim package. I haven't altered the .vimrc file, but the syntax highlighting doesn't seem to work with any of the languages I tried (Python, Ruby, CSharp, C...). Auto formatting (gg, =, G) also fails. Until now when playing with vim (because I can't really say I've extensively used it) in other OSs (Ubuntu, Fedora), the syntax highlighting came on automatically. Is there something I am missing here? 回答1: You need to have

Vim Syntax Highlighting does not work

心已入冬 提交于 2020-12-27 08:18:48
问题 I've installed a fresh Arch Linux system on my laptop and downloaded the vim package. I haven't altered the .vimrc file, but the syntax highlighting doesn't seem to work with any of the languages I tried (Python, Ruby, CSharp, C...). Auto formatting (gg, =, G) also fails. Until now when playing with vim (because I can't really say I've extensively used it) in other OSs (Ubuntu, Fedora), the syntax highlighting came on automatically. Is there something I am missing here? 回答1: You need to have

Syntax highlighting in vim

一笑奈何 提交于 2020-06-24 22:26:28
问题 I'm having trouble reading dark blue on black when I turn on syntax colours in vim. How do I change some of the default colours or the colours of schemas like: http://www.vim.org/scripts/script.php?script_id=1571 回答1: First, try :set background=dark , which will cause vim to change to a color scheme that works better for reading on a black background. If that doesn't work well enough, you can create your own color scheme by following these directions: http://vim.wikia.com/wiki/Create_a_color

assembly vim syntax highlighting

一世执手 提交于 2020-05-09 17:46:08
问题 The default assembly syntax file didn't work well and searching the web about gas assembly I found nothing about a gas (AT&T) syntax file for vim. Has anyone found this? I can't write my own syntax file. http://img168.imageshack.us/img168/46/nasm.png ft=nasm http://img160.imageshack.us/img160/5857/asm.png ft=asm(default) http://img164.imageshack.us/img164/8476/tasm.png ft=tasm 回答1: This may get you started. Is that more like what you're looking for? Just had a quick search - it looks like

Custom Vim HTML syntax

北战南征 提交于 2020-01-14 07:59:10
问题 I have a script that reads an HTML file and replaces occurrences of ~%foo%~ with a value set by Perl. Something like this: <span class="~%classname%~">~%hi_mom%~</span> Would produce something like this in the browser: <span class="classyclass">Hello World</span> Right so I want to use Vim syntax highlighting to distinguish the occurrences ~%foo%~ in the HTML. By default, the HTML syntax highlighting will make an HTML element's attribute values Magenta and I want the ~%foo%~ portion to be

Syntax highlight for Sass is not working in Vim

老子叫甜甜 提交于 2020-01-13 03:41:35
问题 I just downloaded a Vim plugin for Sass syntax highlight. The instructions say: install details put it into syntax directory and add sass filetype au! BufRead,BufNewFile *.sass setfiletype sass in your filetype.vim I already placed sass.vim in vimfiles/syntax/ (using windows). And created a filetype.vim file with the code above ( au! Buf... ) in all the following directories: vimfiles/ vimfiles/ftdetect vimfiles/ftplugins but no one worked (I even typed the au! Buf... code in my vimrc). My

Using folds with synmaxcol in vim

一个人想着一个人 提交于 2020-01-04 02:41:08
问题 Sometimes when I'm working on a project I want to play around with some data. Often times the data is on one line and is huge (>25k characters). I understand I could set nowrap and have this line just run off the screen, but I tend to like set wrap for other reasons. So, as a workaround I want to hide these long lines in a marker fold (e.g. {{{ long line }}} ). This works fine but I run into a problem with synmaxcol for some reason. If the folded line exceeds synmaxcol then when I open the

Vim syntax and Latex math inside markdown

Deadly 提交于 2019-12-29 07:35:10
问题 I write documentation in markdown using ViM and I also put math using the latex $$ symbol (I compile using pandoc). The thing is that ViM syntax wouldn't ignore the underscores _ inside the dollar symbols and it is pretty annoying. For instance if I write this: $$ a_1 = 0 $$ Then Vim will highlight all the following text as italics due to to the underscore used. How can I change that? Also it would be nice if I could highlight what's inside $ with a different format. 回答1: I have put these

Number pane not being highlighted in vim dracula theme

♀尐吖头ヾ 提交于 2019-12-24 22:54:49
问题 I am using dracula theme for vim and am not able to get the number pane, that is, the side panel which contains the line numbers, to be displayed in a sort of translucent manner. The preview image shows that it's possible. How the terminal should look like How it actually looks To fix this issue, I think I need to configure some attributes accordingly, but being a beginner, I don't know which ones, therefore any help and guidance would be appreciated. As a reference, these are my dotvim files