Search Results
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 |
Vim's "count" feature allows you to multiply or iterate a command by passing it an optional number. Questions about counting things should use the "counting" tag instead.
1
vote
Accepted
Call function with count after performing some normal! level tasks
I've ran into this exact issue many times. The same problem comes up with v:reg as well. In general, there's two main solutions.
Do what you did. Like you said, this isn't always the most convenient …
6
votes
Accepted
Make mapping that accepts count independent of line count
.+29call MyFunction(30)
This is because it's basically like you typed 30:call MyFunction(30), and putting a count before : will always insert a range. (Try it!) …