Ⅰ. 插件描述
Mapping deadkeys (accents)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/dks-il2-tex-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/dks-il2-tex-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/dks-il2-tex-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/dks-il2-tex.vim
Ⅳ. 文档说明
Central European chars in latin2 (cp1250, pl2) and TeX encoding
The most of Central European accented characters are defined,
also in TeX encoding. Changing encoding between these codes. I used to work
with:
- 'digraphs', but not all CTRL-K {char1} {char2} work the way that I want;
it does not work in command-line mode and in search also. - 'keymap' (see 'loadkeymap') but it does not works to me anyway, and in
$vim/keymap/accents.vim there are no all CZ, HU and SK chars from
mentioned encodings (I think there are just East European characters).
This 'keymap' shows more MSWord "compatibility" for Central Europe (I
think), for those who works half-time with Word it is very useful :-)
Usage: Use [=+:;.,^] + <char> to write an accented character: <char> with
acute, ve, etc.
- <leader>at - convert the file from accents to TeX and map TeX deadkeys
- <leader>ta - convert the file from TeX to accents and map accent dedakeys
- <leader>da - map accent dedakeys
- <leader>dt - map TeX deadkeys
- <leader>du - unmap deadkeys
<leader> is usually a ''