Complete solutions for 2020 MIT Missing Semester course
vimtutor. Note: it looks best in a
80x24 (80 columns by 24 lines)
terminal window.~/.vimrc. Read
through the well-commented file (using Vim!), and observe how Vim looks and
behaves slightly differently with the new config.mkdir -p ~/.vim/pack/vendor/startcd ~/.vim/pack/vendor/start; git clone https://github.com/ctrlpvim/ctrlp.vim:CtrlP.~/.vimrc to open CtrlP by pressing Ctrl-P.~/.vimrc and install more plugins.(Advanced) Convert XML to JSON (example file) using Vim macros. Try to do this on your own, but you can look at the macros section above if you get stuck.
:g/people/d :%s/<person>/{/g :%s/<\/person>/}/g :%s/<name>\(.*\)<\/name>/"name": "\1",/g :%s/<email>\(.*\)<\/email>/"email": "\1",/gVim commands / macros
Delete first and last lines
Gdd
ggdd
e)
Go to line with <name>
qe^r"f>s": "<ESC>f<C"<ESC>q
<person>
qpS{<ESC>j@eA,<ESC>j@ejS},<ESC>q
Macro to format a person and go to the next person
Go to line with <person>
qq@pjq
999@q
, and add [ and ] delimiters