i mean, you know the most interesting thing? i exec the normal command
in insert mode... so i never know it should be.
there is a function called in insert mode, witch can select some text:
" s:select_text {{{2
function! s:select_text(range)
" CCAtrace 'select_text() called, range = '.string(a:range)
if foldclosed(line('.')) != -1
norm! zO
endif
exec "norm! \<c-\>\<c-n>"
call cursor(0, a:range[0])
norm! v
call cursor(0, a:range[1] + (&sel == 'exclusive'))
" leave visual mode, you can use "gv" re-select the same region
" CCAtrace 'select_text() line = '.getline('.')
exec "norm! \<esc>"
endfunction
" }}}2
you see, this function can use normal command in a strange way, after
"normal v", the mode isn't back to normal mode, it keeps visual mode,
and i must norm! \<ESC> to end visual mode. why in insert mode mornal
command can't be the same with others?
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---