Sunday, April 14, 2013

help! ab multiple line abbreviations MacVIm

Hi all,
I try to ab several multiple line commands by following the instruction on vim wiki http://vim.wikia.com/wiki/Using_abbreviations
However, when copy and paste this line into my vimrc file, I didn't get the expected result (I sourced the vimrc file before my test). Below is the line:
:ab mul Multiple<CR>lines

open test.c file and type "mul", I got "Multiple<CR>lines" rather than
"
Multiple
lines
"

The problem seems like the <CR> is not recognized. I'm using newest version of MacVim and vim.

:version
IM - Vi IMproved 7.3 (2010 Aug 15, compiled Apr 4 2013 13:43:24)
MacOS X (unix) version
Included patches: 1-244, 246-754


If more information is needed, please let me know. Thanks.


Zhigang

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment