Questions tagged [vim-registers]

35 questions
0
votes
1 answer

Find first uncommented line in vim without erasing search

When uncommenting code in vim, I want to have a macro to jump to the first uncommented line in a variety of files. I am using the nerdcommenter in Vim so (after highlighting the first commented line) I search for any line starting with any non # or…
jmlarson
  • 656
  • 5
  • 27
0
votes
1 answer

How to fill a register without entering in insert mode?

I'd like to optimize the initialization of a register when I use it in a macro. I usually initialize my register by doing something like q:i0 "eyiw:q, but I think there is a better way... I'd like to avoid entering insert mode if possible.
odessos
  • 203
  • 2
  • 11
0
votes
2 answers

Vim register completion

I would like to have some sort of auto completion for named registers. If I try to access one (" or CTRL+r ...) a completion similar to the line completion (CTRL+l) should be opened. Some nice visualization of the unused/free register would be nice…
Ivaldi
  • 641
  • 6
  • 21
0
votes
2 answers

VIM to delete a range of lines into a register

I am trying to delete a range of lines into a register a. Is this the easiest way to achieve this? :5,10d a
UNagaswamy
  • 1,636
  • 2
  • 25
  • 32
0
votes
2 answers

How to save registers in VIM

I am new to VIM and I use the command qa to start recording the operations in register a and the following command q to stop saving. And the following command to use the operations in a: @a But the problem is that, when I close the VIM, all these…
orezvani
  • 3,015
  • 8
  • 37
  • 53
1 2
3