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

Diff for vimconfig/vimrc between version 1.93 and 1.94

version 1.93, 2003/11/27 18:01:06 version 1.94, 2003/11/28 10:15:12
Line 20 
Line 20 
 "  "
 "        Lubomir Host 'rajo' <rajo AT platon.sk>  "        Lubomir Host 'rajo' <rajo AT platon.sk>
   
 " Version: $Platon: vimconfig/vimrc,v 1.92 2003/11/14 16:21:32 rajo Exp $  " Version: $Platon: vimconfig/vimrc,v 1.93 2003/11/27 18:01:06 rajo Exp $
   
 " Debian uses compressed helpfiles. We must inform vim that the main  " Debian uses compressed helpfiles. We must inform vim that the main
 " helpfiles is compressed. Other helpfiles are stated in the tags-file.  " helpfiles is compressed. Other helpfiles are stated in the tags-file.
Line 363  command! -nargs=0 CallProg                call CallP
Line 363  command! -nargs=0 CallProg                call CallP
 command! -nargs=0 OpenAllWin                    call OpenAllWin()  command! -nargs=0 OpenAllWin                    call OpenAllWin()
 command! -nargs=* ReadFileAboveCursor   call ReadFileAboveCursor(<f-args>)  command! -nargs=* ReadFileAboveCursor   call ReadFileAboveCursor(<f-args>)
 command! -nargs=* R                                             call ReadFileAboveCursor(<f-args>)  command! -nargs=* R                                             call ReadFileAboveCursor(<f-args>)
 command! -nargs=0 DiacriticsOn                  call UseDiacritics()  command! -nargs=0 DiacriticsOn                  call ChooseInputMethod(0)
 command! -nargs=0 DiacriticsOff                 let b:disable_imap=1  command! -nargs=0 DiacriticsOff                 let b:disable_imap=1
 " }}}  " }}}
   
Line 685  endfunction
Line 685  endfunction
   
 " }}}  " }}}
   
 " Function UseDiacritics() {{{  " Function ChooseInputMethod() {{{
 function! UseDiacritics()  function! ChooseInputMethod(method)
         let b:disable_imap=0          let b:disable_imap=0
         let g:available_methods = "&Tex-universal\n&tex-iso8859-2\n&iso8859-2\n&windows-1250\nunicode-&Html"          let g:available_methods = "&none\n&Tex-universal\n&tex-iso8859-2\n&iso8859-2\n&windows-1250\nunicode-&Html"
   
           if a:method == 0
                   let choice = confirm("Choose input mapping:", g:available_methods, 1)
           else
                   let choice = a:method
           endif
   
         let choice = confirm("Choose encoding:", g:available_methods, 0)  
         if choice == 1          if choice == 1
                 let b:input_method="tex-universal"                  let b:input_method = "NONE"
         elseif choice == 2          elseif choice == 2
                 let b:input_method="tex-iso8859-2"                  let b:input_method = "tex-universal"
         elseif choice == 3          elseif choice == 3
                 let b:input_method="iso8859-2"                  let b:input_method = "tex-iso8859-2"
         elseif choice == 4          elseif choice == 4
                 let b:input_method="windows-1250"                  let b:input_method = "iso8859-2"
         elseif choice == 5          elseif choice == 5
                 let b:input_method="unicode-html"                  let b:input_method = "windows-1250"
           elseif choice == 6
                   let b:input_method = "unicode-html"
         endif          endif
   
           if choice == 1
                   let b:disable_imap = 1
           elseif choice != 0
                   echo "Sourcing ..."
                   call UseDiacritics()
           endif
   
   endfunction
   "}}}
   
   " Function UseDiacritics() {{{
   function! UseDiacritics()
           let b:disable_imap = 0
         call Source("~/.vim/modules/diacritics.vim")          call Source("~/.vim/modules/diacritics.vim")
 endfunction  endfunction
 " }}}  " }}}

Legend:
Removed from v.1.93  
changed lines
  Added in v.1.94

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