Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 25. október 2026

Rozdiely pre vimconfig/vim/ftplugin/html.vim medzi verziami 1.1 a 1.2

verzia 1.1, 2002/04/06 18:01:39 verzia 1.2, 2002/05/09 15:36:51
Riadok 8 
Riadok 8 
 " HTML mappings {{{  " HTML mappings {{{
 if !exists('s:doneMappings')  if !exists('s:doneMappings')
         let s:doneMappings = 1          let s:doneMappings = 1
           let s:ml = exists('g:mapleader') ? g:mapleader : '\'
   
         " HTML commands {{{2          " HTML commands {{{2
         call IMAP ('tab'.s:ml, "<table border=2 cellspacing=2 cellpadding=5>\<cr><tr>\<cr>\<tab><td>ä</td>\<cr>\<bs></tr>\<cr></table>", 'html')          call IMAP ('tab'.s:ml, "<table border=2 cellspacing=2 cellpadding=5>\<cr><tr>\<cr>\<tab><td>ä</td>\<cr>\<bs></tr>\<cr></table>", 'html')
Riadok 69  if !exists('s:doneMappings')
Riadok 70  if !exists('s:doneMappings')
 endif  endif
 " end HTML mappings }}}  " end HTML mappings }}}
   
   " SmartBS: smart backspacing {{{
   let g:smartBS_html = '\(' .
                           \ '&[^;]\+;'  .
                           \ '\)' . "$"
   
   " This function comes from Benji Fisher <benji AT e-mathDOTAMSDOTorg>
   " http://vim.sourceforge.net/scripts/download.php?src_id=409
   " (modified/patched by: Lubomir Host 'rajo' <host8 AT keplerDOTfmphDOTuniba.sk>
   "                       Srinath Avadhanula  <srinath AT fastmailDOTfm> )
   function! s:SmartBS()
           let init = strpart(getline("."), 0, col(".")-1)
           let matchtxt = matchstr(init, g:smartBS_html)
           echo "SmartBS(" . matchtxt . ")"
           if matchtxt != ''
                   let bstxt = substitute(matchtxt, '.', "\<bs>", 'g')
                   return bstxt
           else
                   return "\<bs>"
           endif
   endfun
   inoremap <buffer> <BS> <C-R>=<SID>SmartBS()<CR>
   " }}}
   
 " vim:set ts=4:  " vim:set ts=4:
 " vim600:fdm=marker fdl=0 fdc=3 nowrap:  " vim600:fdm=marker fdl=0 fdc=3 nowrap:

Legend:
Odstranené z verzie1.1  
zmenené riadky
  Pridané vo verzii1.2

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok