sponsor Vim development Vim logo Vim Book Ad

textutil.vim : Vim plugin for editing rtf,rtfd,doc,wordml files.

 script karma  Rating 69/36, Downloaded by 3556  Comments, bugs, improvements  Vim wiki

created by
omi taku
 
script type
utility
 
description

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.

 
install details
    1. Copy the textutil.vim script to the $HOME/.vim/plugin directory.
       Refer to ':help add-plugin', ':help add-global-plugin' and ':help runtimepath'
       for more details about Vim plugins.
    2. Restart Vim.

 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
textutil.vim 0.1.1 2005-12-16 6.0 omi taku Add "inputencoding" textutil command option.
textutil.vim 0.1 2005-12-13 6.0 omi taku Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github