« Back to Index

use control key in norm Ex command

View original Gist on GitHub

Tags: #vim

vim use control key in norm Ex command.viml

" https://vimhelp.org/intro.txt.html#keycodes
" https://vimhelp.org/various.txt.html#:norm
"
" Example: join every two lines
"          
"          foo
"          bar
"          baz
"          qux
"
"          becomes:
"
"          foo bar
"          baz qux
:g/^/exe "norm \<s-j>"