home | codereading | contact | math | misc | patches | tech
:he ascii
To insert a special character in vim, in the insert mode, type Control-v and the combination of keys that produce that special character.
For example: To insert a Control-M (^M), enter at the insert mode, type Control-v and then Control-m.
# vim: set fdm=expr: # vim: set foldexpr=getline(v\:lnum)=~'^\\*.*$'&&getline(v\:lnum+1)!~'^\\*.*$'?'>1'\:1:
The substitution (:s) command in vim has very useful features. To see some special replacement see ":he sub-replace-special".
In a HTML file, to make all tags and their parameters lowercase, type:
:%s/<[^>]*>/\L&\E/g
According to this thread, you should check your 'debug' option. :he debug for more details.