Deleting HTML tags with vim

Text objects are your friends… dat : “delete around tag” dit : “delete inside tag” There are also similar operations for changing the text (cat and cit) and selecting it visually (vat and vit). Have fun!

Mapping -Arrows to selecting characters/lines

I completed @escrafford mapping with insert mode’s ones: ” shift+arrow selection nmap <S-Up> v<Up> nmap <S-Down> v<Down> nmap <S-Left> v<Left> nmap <S-Right> v<Right> vmap <S-Up> <Up> vmap <S-Down> <Down> vmap <S-Left> <Left> vmap <S-Right> <Right> imap <S-Up> <Esc>v<Up> imap <S-Down> <Esc>v<Down> imap <S-Left> <Esc>v<Left> imap <S-Right> <Esc>v<Right> Also mapping usual copy/cut/paste like this you can … Read more