Hi Jay,

On 21 December 2010 21:06, Jay Contonio <[email protected]> wrote:
> Hello,
> I'm new to the group. Recently switched from Textmate to MacVIM and I am
> trying to mimic some Textmate features. I have this sort of working but I
> keep getting odd behavior between vim in the Terminal and MacVim.
> First, command-return remapping
>
> " Textmate style cmd-return
>
> inoremap <D-Enter> <C-o>o
>
> This works great in MacVim, but just beeps at me in regular vim. Any guesses
> as to why?

It simply isn't possible to map to Cmd in terminal Vim -- you have to
use a GUI version.


> My next try to get vim to behave like textmate was to install the
> DelimitMate plugin and try to get the behavior of autoindenting to the right
> spot like Textmate does when pressing Return in between brackets, parens,
> etc. This works occasionally for me, but sometimes spits out an error in the
> expression:
>
> " Textmate style auto indenting when pressing Return inside a pair of empty
> brackets
>
> inoremap <expr> <CR> delimitMate#WithinEmptyPair() ?
>
> \ "\<C-R>=delimitMate#ExpandReturn()\<CR>" :
>
> \ "<CR>"
>
> Any ideas on how to clean that up? Appreciate the help.

I can't help you here.  If nobody else on this list can help you I
suggest you try vim_use instead.

Björn

-- 
You received this message from the "vim_mac" 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

Reply via email to