Add support for line continuation when executing a register using :@ command#6272
Closed
yegappan wants to merge 2 commits into
Closed
Add support for line continuation when executing a register using :@ command#6272yegappan wants to merge 2 commits into
yegappan wants to merge 2 commits into
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6272 +/- ##
=======================================
Coverage 87.46% 87.47%
=======================================
Files 143 143
Lines 158557 158591 +34
=======================================
+ Hits 138679 138720 +41
+ Misses 19878 19871 -7
Continue to review full report at Codecov.
|
Contributor
|
I'm wondering if this is really something we should encourage to be used. In a :def function it's now possible to omit the line continuation, especially for a list and dict. Why not use a :def function instead? It's not fully stable yet, but this pull request is also new. |
|
Hi Bram,
On Tue, Jun 16, 2020 at 10:34 AM Bram Moolenaar ***@***.***> wrote:
I'm wondering if this is really something we should encourage to be used.
In a :def function it's now possible to omit the line continuation,
especially for a list and dict. Why not use a :def function instead? It's
not fully stable yet, but this pull request is also new.
This will still be needed for executing pre-vim9 scripts from a register.
For example, many times when developing the test scripts, I needed this
support
to copy a Vim script fragment and execute it. If the fragment had line
continuation,
then I need to copy it to another buffer, remove the line continuation and
then
yank it again and execute it.
Regards,
Yegappan
|
Contributor
|
Hmm, OK. Would be good to add a remark in the help somewhere, with a hint that this is mainly for trying out a part of a Vim script, not for normal use. |
zeertzjq
added a commit
to zeertzjq/neovim
that referenced
this pull request
Feb 23, 2022
…ation
Problem: Cannot execute a register containing line continuation.
Solution: Concatenate lines where needed. (Yegappan Lakshmanan,
closes vim/vim#6272)
vim/vim@856c111
According to neovim#2542 the "Future:" part was removed intentionally.
Use size_t in more places to reduce type casts.
zeertzjq
added a commit
to zeertzjq/neovim
that referenced
this pull request
Feb 23, 2022
…ation
Problem: Cannot execute a register containing line continuation.
Solution: Concatenate lines where needed. (Yegappan Lakshmanan,
closes vim/vim#6272)
vim/vim@856c111
According to neovim#2542 the "Future:" part was removed intentionally.
Use size_t in more places to reduce type casts.
zeertzjq
added a commit
to zeertzjq/neovim
that referenced
this pull request
Mar 8, 2022
…ation
Problem: Cannot execute a register containing line continuation.
Solution: Concatenate lines where needed. (Yegappan Lakshmanan,
closes vim/vim#6272)
vim/vim@856c111
According to neovim#2542 the "Future:" part was removed intentionally.
Use size_t in more places to reduce type casts.
zeertzjq
added a commit
to zeertzjq/neovim
that referenced
this pull request
Mar 8, 2022
…ation
Problem: Cannot execute a register containing line continuation.
Solution: Concatenate lines where needed. (Yegappan Lakshmanan,
closes vim/vim#6272)
vim/vim@856c111
According to neovim#2542 the "Future:" part was removed intentionally.
Use size_t in more places to reduce type casts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When executing register contents using the :@ command, currently line
continuation is not supported. This is very useful for testing VimScript
snippets by yanking the contents to a register and then executing it.