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 22797
7 votes
Accepted

Unexpected substitution behavior

why just one instance of the command don't work? Obviously, the string is parsed as (12)(34)(56)(78)(91)0 --> 1,2 3,4 5,6 7,8 9,1 0 A possible solution is s/\d\d\@=/\0,/g. See :h /\@=.
Matt's user avatar
  • 21.6k
6 votes
Accepted

What is the difference between <C-V>x and \x?

Where does this extra byte prefix come from? literal holds an UTF-8 encoded string. <80> is encoded in two bytes according to UTF-8 standard specification. Here bold bits are used by UTF-8 decod …
Matt's user avatar
  • 21.6k
0 votes

Insert text in the middle of a string vimscript

in the middle of the outputted path That depends upon what you think as "a middle". But, in general, you can simply repeat ":h" a few times. For example, let realfile = expand('%:p') let depth = …
Matt's user avatar
  • 21.6k