Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 626
3 votes

How to concatenate two registers?

When registers only contain strings, we can do it with the old :let @c = @a . @b If you want to handle the registers as lists (one element per line), then you'll need to use the new functions desc …
Luc Hermitte's user avatar
  • 17.8k
2 votes

String comparison not working as expected!

Note that you don't need to execute external processes with system() which adds trailing newlines & all. let os = matchstr(filter(readfile('/etc/os-release'), 'v:val =~ "^NAME"')[0], '.*"\zs.*\ze".*' …
Luc Hermitte's user avatar
  • 17.8k
33 votes
Accepted

What is the difference between single and double quoted strings?

The only difference between single and double quoted string is related to backslash. To display special characters like newline, bells, tabs, etc, you need to use double-quotes -> "\n". Within a sin …
Luc Hermitte's user avatar
  • 17.8k