:redir @a
:__commands__
:redir END
"ap
Redirect output of telesope to quickfix C-q
Run bash (or any shell) for buffer content
:%!bash
$ vim filename.txt -c "hardcopy > filename.ps | q"; pstopdf filename.ps
pstopdf may be names ps2pdf on other OSes
:earlier __time__
:later __time__
where time = x(s|m|h|d) (s = second, m = minute, h = hour, day)
to go back and forth on state of buffer in time of x units
:e scp://staging/~/path/to/file.ext
Assuming a Host for ‘staging’ is set in ~/.ssh/config
:% bd | e # | bd #
where
spaces are optional
TAB cycles through options; Ctrl-a inputs all options.
Example: To delete all *.js files in buffer list
:bd js Ctrl-a
Can use :bwipeout to completely remove a buffer
Search and Replace (Using neovim telesope)
:Telescope live_grep
<C-q>
:cdo s/<sterm>/<rterm>/g[ci] | update
\1
\2
etc and original string by &
Check diff of files
$ nvim -d -R file_one file_two