New answers tagged command-line
1
vote
How to go to previous open buffer from Vim command line?
:bp goes to previous buffer. :bn goes to next buffer.
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.
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
-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 ...
Top 50 recent answers are included
Related Tags
command-line × 464key-bindings × 52
vimscript × 36
external-command × 36
neovim × 35
vimrc × 24
search × 20
autocompletion × 20
normal-mode × 20
autocmd × 17
command × 15
buffers × 13
ex-mode × 13
regular-expression × 11
terminal × 10
visual-mode × 10
replace × 10
range × 10
gvim × 9
cut-copy-paste × 9
split × 9
register × 9
bash × 9
substitute × 8
functions × 8