Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for vimconfig/vim/plugin/imaps.vim between version 1.5 and 1.6

version 1.5, 2003/01/21 13:46:07 version 1.6, 2003/02/24 16:13:47
Line 71 
Line 71 
 " LHS of the required mapping.  " LHS of the required mapping.
 "  "
 " NOTE: some functions may confuse user. Therefore if exists variable  " NOTE: some functions may confuse user. Therefore if exists variable
 " "g:disable_imap" and is set to ":let g:disable_imap=1", all functions  " "g:disable_imap" or "b:disable_imap" and is set to ":let g:disable_imap=1",
 " returns ASAP. This feature was added by Lubomir Host <rajo AT host.sk>  " all functions returns ASAP. This feature was added by Lubomir Host 'rajo'
   " <rajo AT platon.sk>
 "  "
 " NOTE: There are other plugins out there which do the same thing. For  " NOTE: There are other plugins out there which do the same thing. For
 " example, Dr. Chip's Cabbr script at  " example, Dr. Chip's Cabbr script at
Line 123  function! IMAP(lhs, rhs, ft)
Line 124  function! IMAP(lhs, rhs, ft)
                         return                          return
                 endif                  endif
         endif          endif
           if exists("b:disable_imap")
                   if b:disable_imap == 1
                           return
                   endif
           endif
         let lastLHSChar = a:lhs[strlen(a:lhs)-1]          let lastLHSChar = a:lhs[strlen(a:lhs)-1]
         " s:charLens_<ft>_<char> contains the lengths of the left hand sides of          " s:charLens_<ft>_<char> contains the lengths of the left hand sides of
         " the various mappings for filetype <ft> which end in <char>. its a comma          " the various mappings for filetype <ft> which end in <char>. its a comma
Line 277  function! IMAP_PutTextWithMovement(text)
Line 283  function! IMAP_PutTextWithMovement(text)
                         return                          return
                 endif                  endif
         endif          endif
           if exists("b:disable_imap")
                   if b:disable_imap == 1
                           return
                   endif
           endif
   
         " if the text contains a ä or a «label», then get to the first one of          " if the text contains a ä or a «label», then get to the first one of
         " those.          " those.
Line 325  function! <SID>Strntok(s, tok, n)
Line 336  function! <SID>Strntok(s, tok, n)
                         return                          return
                 endif                  endif
         endif          endif
           if exists("b:disable_imap")
                   if b:disable_imap == 1
                           return
                   endif
           endif
         return matchstr( a:s . a:tok[0],          return matchstr( a:s . a:tok[0],
                                 \ '\v(\zs([^' . a:tok . ']*)\ze[' . a:tok . ']){' . a:n . '}')                                  \ '\v(\zs([^' . a:tok . ']*)\ze[' . a:tok . ']){' . a:n . '}')
 endfunction  endfunction
Line 363  function! <SID>Snip() range
Line 379  function! <SID>Snip() range
                         return                          return
                 endif                  endif
         endif          endif
           if exists("b:disable_imap")
                   if b:disable_imap == 1
                           return
                   endif
           endif
         let i = a:firstline          let i = a:firstline
         let maxlen = -2          let maxlen = -2
         " find out the maximum virtual length of each line.          " find out the maximum virtual length of each line.
Line 394  function! SAImaps_RemoveLastHistoryItem(
Line 415  function! SAImaps_RemoveLastHistoryItem(
                         return                          return
                 endif                  endif
         endif          endif
           if exists("b:disable_imap")
                   if b:disable_imap == 1
                           return
                   endif
           endif
         call histdel("/", -1)          call histdel("/", -1)
         let @/ = histget("/", -1)          let @/ = histget("/", -1)
 endfunction  endfunction
Line 408  function! IMAP_Jumpfunc()
Line 434  function! IMAP_Jumpfunc()
                         return                          return
                 endif                  endif
         endif          endif
           if exists("b:disable_imap")
                   if b:disable_imap == 1
                           return
                   endif
           endif
         if !search('«.\{-}»','W') "no more marks          if !search('«.\{-}»','W') "no more marks
                 return "\<CR>"                  return "\<CR>"
         else          else

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top