Re: [Vim-latex-devel] imaps, version of 3rd jan 2003
Brought to you by:
srinathava,
tmaas
From: Luc H. <her...@fr...> - 2003-01-07 18:30:27
|
Hello, I have looked at imaps.vim, the version shipped with the archive made on the 3rd January. To be more precise, I've focused on the jumping function. So, I have several questions and remarks: - we don't have to test 'wrapscan', |search()| does it implicitly for us - The jumpBack does not work correclty. Try for instance: :vmap <C-k> <Plug>IMAP_JumpBack i<+foo+> <+bar+> <+three+> <esc>gg ^J^J^K - the mappings are not silent. - why do you need a specific jump function to use with IMAP() ? I haven't looked in the mecanics, but I find this odd ; I didn't need such a thing with µTemplate. Otherwise, I've integrated in bracketing.base.vim some of the things you use [thanks!]: - the 'nomagic' stuff ; BTW, the psh and phe strings need to have their '\' escaped -- I haven't checked if it is needed for other characters. - I don't mess with @" anymore - less screen flashes (s/<esc><c-l>/<c-\><c-n>) And: - I've managed the visual selection in another way that does not mess with the search-history at all-- way that expext the marker/placeholder to hold on a single line. There is also a new command: :SetMarker {open} {close} that sets the two strings used to define the marker -- no need to know the name of the two options. I've also tried to automatically manage the value of the 'encoding'. But I'm not sure it is really useful. So, I still have: - to tune/change some little things regarding iconv -- but so far it works fine on my win32 version of Vim. I can insert (<M-Insert> [1]) and jump to markers in latin1 and utf-8, the markers beeing defined with: :SetMarker « » or :SetMarker \foo \bar or :SetMarker <+ +> or :SetMarker «+ +» - and to test the echoing approach (as opposed to the marker-selection). [1] I must confess: I use some meta-mappings in insert mode. -- Luc Hermitte The latest version of the file should be available at: http://hermitte.free.fr/vim/ressources/vimfiles/plugin/bracketing.base.vim |