On Jun 16, 6:58 pm, björn <[email protected]> wrote:
> On 15 June 2011 15:18, IroNiQ wrote:
>
> > I would like to write a custom function to replace the string i select
> > with visual. Here is the code:
>
> > vmap <silent> <C-T> :call PutTranslate()<CR>
> > function! PutTranslate()
> >        execute ":s/\\%V\\(.*\\)\\%V/\\<\\?php\\ __('\\1')\\ \\?\\>/"
> > endfunction
>
> > In standard case the macvim_hig_shift_movement is not switched on, in
> > this case using GUI the selection disappears if i press ctrl-t. But if
> > i switch it on, the selection remains (the substitution is done). What
> > can i do to get it working the same way (disappearing the selection)?
>
> I think you should ask for help on vim_use.  All I can say is that
> when macvim_hig_shift_movement is enabled MacVim will go into "select
> mode" (:h Select) instead of the "visual mode" when you select with
> the mouse.

That is ok, but i'd like to clear the selection automatically now i
was able to clear the selection in insert mode, but in normal mode the
selection still remains and nothing happens for this:

exec "normal \<Esc>"


IroNiQ

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