New answers tagged

1 vote

How to go to previous open buffer from Vim command line?

:bp goes to previous buffer. :bn goes to next buffer.
YuhaoHanHarry's user avatar
1 vote
Accepted

How can I echo a variable and redirect it to a file, register or the clipboard?

I would do: :redir @* | echo g:terminal_ansi_colors | redir END It moves the output of echo g:terminal_ansi_colors to the * register.
Vivian De Smedt's user avatar
4 votes
Accepted

Vim command-line just say 'saved' upon save

You could use the BufWriteCmd to override the write operation: augroup OverrideWrite autocmd! autocmd! BufWriteCmd * silent w | echo 'Saved' augroup END
Vivian De Smedt's user avatar
-1 votes

MacVim: how to prevent :[range]!say to remove text?

:help :range filters the given range of lines through an external command. The whole point of that feature is precisely to replace the given lines by the output of the external command so using it and ...
romainl's user avatar
  • 39.3k

Top 50 recent answers are included