Shadoath
  • Member for 5 years, 6 months
  • Last seen more than a month ago
Can I repeat a macro with the "dot operator"?
7 votes

To repeat your last macro you can use @@ so 3@@ would essentially run @q 3 times. However the @ keystrokes can be unwieldy, so in my .vimrc I have the lines: "- Lazy macro repeat nmap <leader&...

View answer
Add a space and then text at the end of a line
2 votes

You are very close. The reason :%s/$/ /abc/aaa/abc/ does not work here is that you are not escaping the / character in your output string. Run it like this %s/$/ \/abc\/aaa\/abc/ Leaving only the ...

View answer
Tracking down odd behavior right after opening Vim and using fuzzy finder
Accepted answer
1 votes

Thanks to some very helpful comments by @dedowsdi I have discovered some more about the vast world that is Vim. You can test startup load time by running vim --startuptime vtime.log and inspecting ...

View answer
Some of the icons from Devicons not rendering properly
Accepted answer
0 votes

You can customize any icon by adding the following line to your .vimrc let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols['css'] = '' Simply change the 'css' and '' to what you would like (...

View answer
How do I replace a word without putting the word into a register?
0 votes

@statox is spot on with the Black hole register. In fact I use this so much I remapped to my x key in my .vimrc file: noremap x "_x This allows me to visual select then x it away while ...

View answer