New answers tagged

1

An alternative implementation which does not stop at the first error in a script: command! -range=% Exec call execute(getline(<line1>, <line2>), '') Now in visual mode type :'<,'>Exec to process the selected lines ('<,'> is added automatically as usual). Also, :Exec in normal mode executes the whole buffer, just as :source %, except ...


2

Not with the ! command. You'll have to use system instead. From :h system(): system({expr} [, {input}]) *system()* *E677* Get the output of the shell command {expr} as a string. See |systemlist()| to get the output as a List. When {input} is given and is a string this string is written to a file and passed as ...


3

As far as my understanding is correct, p always has the same effect (pasting the content of a buffer, by default the " buffer). In Vim they say "putting", not "pasting". And what is more important, that particular "thing" is called "a register", so to find a relevant help topic you should type: :h registers, not :h buffers (which will lead you to a totally ...


Top 50 recent answers are included