map jj to Esc in inputrc (readline)

You should rearrange the inputrc so the commented line comes after set keymap vi-insert. Like this: set bell-style none $if mode=vi set keymap vi-command “gg”: beginning-of-history “G”: end-of-history set keymap vi-insert #notice how the “jj” movement is “jj”: vi-movement-mode #after ‘set keymap vi-insert’? “\C-w”: backward-kill-word “\C-p”: history-search-backward $endif

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!