Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [syntax]

The tag has no usage guidance.

1
vote
0answers
55 views

vim syntax for python call and keyword arguments: issues with built-in keyword

I am trying to come up with a vim syntax for python function call, e.g. foo(notarg==0, arg2, kwarg='a', kwarg2='b') dict(a=1, b=2, c=3) where we want to highlight (i) function name foo, dict (ii) ...
0
votes
0answers
25 views

Syntax RegEx optimisations

Below is a pretty massive regex to match all supported IANA schemes enclosed in angled brackets (e.g. <mailto:...>). It works as expected. However, on big documents, I feel the lag whenever I ...
0
votes
1answer
54 views

Matching 'Capitalized' words in Vim

Hello fellow mouse haters. I'm trying to use the following regex to match 'Capitalized' words: "\l\@<!\<\u\w\+" Which matches 'Main' and 'Canvas' in: public class Main extends Canvas Or ...
0
votes
0answers
31 views

Automatically uncompress section of buffer

I'm using a simple text file in Vim as a task manager and am keeping completed tasks in an archive section of the same file. I'd like to compress that section of the buffer when saving changes to a ...
0
votes
1answer
25 views

How to use a regexp to search/match specific pattern only for the custom statusline and/or tabline?

I got this regexp from google which is for matching specific glyphs in vim-nerdtree. autocmd FileType nerdtree syntax match {hl-group} /\v{glyph}/ containedin=ALL But obviously it won't work on ...
0
votes
0answers
22 views

Syntax hightligh broken in html file after ^F [duplicate]

Expected behaviour Syntax highlight should work even after CTRL-F Actual behaviour Syntax hightlighting stops working after scrolling to next page Steps to reproduce using nvim -u NORC: nvim -u ...
0
votes
0answers
44 views

Specify a syntax checker for Chef on Vim with Syntastic

[Arch linux 4.18.14 with Vim 8.1 and Syntastic 3.9.0.] I am trying to configure the syntastic plugin on vim with a checker for Chef recipes. For that I installed the plugin dougireton/vim-chef inside ...
0
votes
1answer
25 views

folding in matlab

I'm using vim for my matlab editor. And It works nicely, except I cannot get folding to work. I found my syntax file on github: matlab.vim And I wanted to add folding. I changed the line syn ...
0
votes
1answer
37 views

What are the allowable characters in identifiers?

In Vim, what characters are allowed in identifiers, such as variable names and function names? I looked up the help for both variables and functions and neither one defines the allowable character ...