I have a few of these wonderful helpers:
inoremap foreach<Return> foreach (<Space><Space>)<Return>{<Return><R
 eturn>}<Esc>3kA<Left><Left>

I know that there is a snippets plugin, but I like this roll-my-own
solution for a number of reasons (one of which is to learn Vim).
However, one problem that I have is that the text f-o-r-e-a-c-h is not
shown until I get to the end of the map. Is there any way to configure
VIM to show the text normally, until it decides that there will be a
replacement? This is driving me crazy.

Note that I also have hh, ii, ll, {{, and ;; mapped to handy
replacements, and every time I type an h, i, l, { or ; character I go
nuts when the cursor does not move as expected. I am one of those
funny people who look at the monitor, not the keyboard, when I type!

Thanks.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

-- 
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

Reply via email to