I want to do some abbreviations that contain colons, but it doesn’t work in vimrc:
ab t:u unsigned
I get a syntax error. I tried \: and \\:\ but it didn’t work.
How can I do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This has to do with vim’s keyword recognition. Maybe it is a bug or not. Inserting
:to the listiskeywordwill make the abbreviation of yours possible. But it can cause unexpected side effects navigating your C.Other possibility is to check
snipMateor other similar plugin to provide templates.