Probably a was pressed, which is a scroll-locking signal in terminals Just press to unlock the cursor.
:%s/^M$//g
^M has to be entered by Ctrl+v+Ctrl+m
:%s/regex/=setreg('A', submatch(0), 'V')/n :%s/regex <--- possibly with grouping (regex) .../=setreg('register name', select group (number), 'V' = linewise ... ... /n <--- sandbox, it won't actually make changes
:w !sudo tee %
:%!xxd :%!xxd -r
:%!python -m json.tool
:sort u
grep -Eo '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}'
silent %!xmllint --encode UTF-8 --format -
:3,15norm! @a
Will apply macro in register 'a' from line 3 to line 15
:exec setreg('', [])
let regs=split('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/-"', '\zs') for r in regs call setreg(r, []) endfor
Using external tools with Vim Reddit's Vim Wiki The Patient's Vimmer Vi-improved Power Of Vim