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)?
Regards,
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