textutil.vim


Ⅰ. 插件描述

Vim plugin for editing rtf,rtfd,doc,wordml files.

Ⅱ. 基本信息

创建日期:  2005-12-13
使用用户:  12
Github星:  3
插件作者:  omi taku

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/textutil-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/textutil-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/textutil-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/textutil.vim

Ⅳ. 文档说明

Usage:
    When you open rtf, rtfd, doc or wordml file with Vim,
    editing file format is automatically converted to plain text.
    And when you write file, file format is automatically converted to
    rtf, rtfd, doc or wordml file format.

Configuration:
    When this script convert rtf, rtfd, doc or wordml file to plain text with textutil command,
    this script use "g:textutil_txt_encoding" encoding.
    Default value of "g:textutil_txt_encoding" is 'utf-8'.
    You want to change text encoding, set "g:textutil_txt_encoding" in your $HOME/.vimrc file.
    for example,

        :let g:textutil_txt_encoding='Shift_JIS'

Note:
    This script is based on 'textutil' command.
    So this script will only run on MacOS 10.4 or later.

添加新评论