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 |
For questions about searching for text with / or search(). For find/replace operations, use tag [substitute] instead.
3
votes
Vim - find an occurence of a pattern one by one and and edit it at once
There are 2 ways to achieve what you want.
using c flag for :s
searching for whatever text you want and then you can use cgn to change next occurrence and then . through rest of occurrences. The dif …
1
vote
Project Wide replace using Ag
But why you want to do this via Vim? It would be much easier to run ag -l pattern | xargs -n1 sed 's/pattern/replacement/g in Your shell (or at least via :!).
1
vote
0
answers
1k
views
Enter insert to insert mode from function
I want to create function that search for selection and then automatically replace selection with given text. Something like *Ncgn but with custom movement (not exactly word only). …