做梦捡钱是什么预兆
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 external-command
Search options not deleted
user 11054
百度 昨日上午,随着铲车、水车的作业,这一片违建厂房被拆除,各类杂物垃圾被陆续清理,腾出了万平方米空间。
Questions about calling external (shell) commands from within Vi or Vim.
3
votes
Accepted
Paste the first column at the bottom line of the editing file
So two sub-questions...
How do I have an Ex command operate at the end of the buffer?
How do I read in the output of a shell command?
The answers are :$ and :r[ead] !{cmd}, respectively. The former …
1
vote
Prevent "Press ENTER or type command to continue" prompt after external command executes
Well, you need to do a redraw...per :h :!cmd...
This requires a hit-enter prompt, so that you can read any messages. To avoid this use :silent !{cmd}. The screen is not redrawn then....
But if y …
1
vote
How can I make external command use current line as input and append output to end of same l...
There are two ways to approach this. Go heavy on the Vim or do what a rational person would do in the real world: lean heavily on the shell and let it do all the work as that's its strength. Though th …
6
votes
How to run zsh aliased command from vim command mode?
The question originally asked about a solution for bash. I answered before I discovered that it was subsequently changed to be all about zsh. Fortunately, that original answer is very similar to the a …
4
votes
Accepted
Piping buffer through a command, handling failure gracefully
Hmmm. Good question. Is there really not a Vim mechanism for dealing with this? I can't recall seeing one.
If there's not I was able to leverage Bash semantics to get something to work. I'm using sort …
1
vote
Accepted
How to account for special characters \% in mapping
First off, you should always use inoremap rather than imap (with a small number of exceptions that are not relevant here).
The difficulty here is that as soon as % is put after \, the backslash goes …
2
votes
Accepted
:global, how to use matched pattern in the cmd of :g/pat/cmd?
With a file on every line and assuming each file either has a path or can be found in the current directory:
:g/./ r !wc -l <cfile>
Per :h :<cfile>, <cfile> is a special token that when encountered …
3
votes
Filter specific lines matching a pattern through external command
I'm not aware of any builtin, compact functionality that let's you filter the output of any vim command through any external command. With a little one-time scripting, though, you could get something …
5
votes
Accepted
How to reference a register in an ex command
By putting @a and @b inside the quotes you're preventing Vim from evaluating them so you're really just passing the literal strings "@a" and "@b".
Pull them out of the quotes and build a Vim string us …