Hughmoris posted:I'm running Windows 7. Is there a way to have Vim launch " :! " commands in powershell, instead of the command prompt? For instance, if I executed According to this site the relevant commands are code:
|
|
# ¿ Sep 14, 2015 06:32 |
|
|
# ¿ May 8, 2024 01:31 |
Hughmoris posted:Is there a simple way to copy all regex matches in a file, and paste it into a new buffer? If not, maybe highlight all matches and delete anything that is not a match? For the first: :g/regex/y A will yank all matching lines into register a. Then you switch to your new buffer and hit :p"a to paste them. If you mess this up, hit qaq to clear register a before trying again. For the second: :v/regex/d will delete all non-matching lines.
|
|
# ¿ Sep 17, 2015 19:29 |
Found an answer on stack exchange. Apparently what we want is this:code:
|
|
# ¿ Sep 17, 2015 21:29 |
Hughmoris posted:Thanks for the ideas. Yeah, I was hoping to grab just the captures and delete everything else. So, the starting text would be: Gotcha. This worked for me: code:
|
|
# ¿ Sep 19, 2015 21:52 |