v:last_reg global variable as feature request #12003 by cero1988 · Pull Request #12063 · vim/vim · GitHub
Skip to content

v:last_reg global variable as feature request #12003#12063

Closed
cero1988 wants to merge 9 commits into
vim:masterfrom
cero1988:vlast_reg
Closed

v:last_reg global variable as feature request #12003#12063
cero1988 wants to merge 9 commits into
vim:masterfrom
cero1988:vlast_reg

Conversation

@cero1988

Copy link
Copy Markdown
Contributor

added global variable v:last_reg with the latested putted register as feature request #12003

@codecov

codecov Bot commented Feb 25, 2023

Copy link
Copy Markdown

@brammool

Copy link
Copy Markdown
Contributor

We should have a more generic mechanism for commands previously executed. The operator used is also relevant. Making a list of them will also be useful.

I sometimes type something different from what I intended, it would then be good to be able to see what happened, the last few commands executed. At least for changes, possibly also for other commands. E.g. if you wonder why a window was closed.

@cero1988

cero1988 commented Feb 27, 2023

Copy link
Copy Markdown
Contributor Author

you mean like :history, but with the operators commands used ?

@brammool

brammool commented Feb 27, 2023 via email

Copy link
Copy Markdown
Contributor

@cero1988

cero1988 commented Mar 5, 2023

Copy link
Copy Markdown
Contributor Author

I could create a new history like :history nvcmd with all the last normal mode command used, for the non printable keys i could translate the more commonly used like the Arrow keys in text

@yegappan yegappan added this to the backlog milestone Aug 13, 2023
@chrisbra

chrisbra commented Nov 9, 2024

Copy link
Copy Markdown
Member

@chrisbra chrisbra closed this Nov 9, 2024
cyan12green added a commit to cyan12green/vim that referenced this pull request May 27, 2026
Problem:  Built-in tracing and profiling support of all the
	  commands/inputs/scripts/plugins.
Solution: Add configurable tracing support with documentation and
          tests (Siddarth Balaji).

Built-in support to log and print the last few typed keys and executed
commands. To be used for debugging or understanding what when wrong.
Could also be used for statistics. Allows for various verbosity and
filtering levels.

related: vim#12046
related: vim#12063

Signed-off-by: Siddarth Balaji <49455519+cyan12green@users.noreply.github.com>
cyan12green added a commit to cyan12green/vim that referenced this pull request May 27, 2026
Problem:  Built-in tracing and profiling support of all the
	  commands/inputs/scripts/plugins.
Solution: Add configurable tracing support with documentation and
          tests (Siddarth Balaji).

Built-in support to log and print the last few typed keys and executed
commands. To be used for debugging or understanding what when wrong.
Could also be used for statistics. Allows for various verbosity and
filtering levels.

related: vim#12046
related: vim#12063

Signed-off-by: Siddarth Balaji <49455519+cyan12green@users.noreply.github.com>
cyan12green added a commit to cyan12green/vim that referenced this pull request Jun 3, 2026
Problem:  Built-in tracing and profiling support of all the
	  commands/inputs/scripts/plugins.
Solution: Add configurable tracing support with documentation and
          tests (Siddarth Balaji).

Built-in support to log and print the last few typed keys and executed
commands. To be used for debugging or understanding what when wrong.
Could also be used for statistics. Allows for various verbosity and
filtering levels.

related: vim#12046
related: vim#12063
related: vim#19377

Signed-off-by: Siddarth Balaji <49455519+cyan12green@users.noreply.github.com>
cyan12green added a commit to cyan12green/vim that referenced this pull request Jun 21, 2026
Problem:  Built-in tracing and profiling support of all the
	  commands/inputs/scripts/plugins.
Solution: Add configurable tracing support with documentation and
          tests (Siddarth Balaji).

Built-in support to log and print the last few typed keys and executed
commands. To be used for debugging or understanding what when wrong.
Could also be used for statistics. Allows for various verbosity and
filtering levels.

related: vim#12046
related: vim#12063
related: vim#19377

Signed-off-by: Siddarth Balaji <49455519+cyan12green@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants