| verzia 1.93, 2003/11/27 18:01:06 |
verzia 1.94, 2003/11/28 10:15:12 |
|
|
| " |
" |
| " 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. |
| Riadok 363 command! -nargs=0 CallProg call CallP |
|
| Riadok 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 |
| " }}} |
" }}} |
| |
|
|
|
| |
|
| " }}} |
" }}} |
| |
|
| " 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 |
| " }}} |
" }}} |