[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
vim-5.7
http://www.geocities.co.jp/SiliconValley-Bay/7584/rpm/
のvim-5.7でJIS/SJISをそのまま扱つかえるようにするためのファイルを
インストールするpkgsrcです。
が、vimをNetBSDでcompileすると2byte文字を一つの文字として扱ってくれない
みたいで、ちょっと悲しいです。--enable-broken_locale でcompileしても
手元の環境ではうまくいきませんでした。
vim-5.7でうまく日本語を編集できている方いらっしゃいますか?
sakamoto
# completionが凄くうれしい。
--
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# japanese/vim-share
# japanese/vim-share/Makefile
# japanese/vim-share/pkg
# japanese/vim-share/pkg/PLIST
# japanese/vim-share/pkg/COMMENT
# japanese/vim-share/pkg/DESCR
# japanese/vim-share/files
# japanese/vim-share/files/md5
# japanese/vim-share/files/vimrc
#
echo c - japanese/vim-share
mkdir -p japanese/vim-share > /dev/null 2>&1
echo x - japanese/vim-share/Makefile
sed 's/^X//' >japanese/vim-share/Makefile << 'END-of-japanese/vim-share/Makefile'
X# $NetBSD$
X#
X
XDISTNAME= jcode2.vim
XPKGNAME= ja-vim-share-5nb1
XCATEGORIES= japanese editor
XMASTER_SITES= http://www.geocities.co.jp/SiliconValley-Bay/7584/rpm/ \
X http://www.win.ne.jp/~takuhiro/scripts/
XEXTRACT_SUFX= .gz
XDISTFILES= ${DISTNAME}${EXTRACT_SUFX} jcode3.vim${EXTRACT_SUFX} format.vim
X
XMAINTAINER= sakamoto@netbsd.org
XHOMEPAGE= http://www.geocities.co.jp/SiliconValley-Bay/7584/rpm/
X
XDEPENDS+= vim-share-5.*:../../editors/vim-share
XDEPENDS+= p5-jcode:../../japanese/p5-jcode
X
XEXTRACT_ONLY= # empty
XNO_PATCH= yes
XNO_CONFIGURE= yes
X
XDIST_SUBDIR= ja-vim-share
X
XVIM_VERSION= `${GREP} ^VIM_VERSION= ../../editors/vim-share/Makefile.common \
X | ${SED} -e 's/.*\(5\)\.\(.*\)/\1\2/'`
XVIM_SHARE= share/vim/vim${VIM_VERSION}
XPLIST_SUBST+= VIM_SHARE="${VIM_SHARE}"
X
Xdo-build:
X @${SED} -e 's|$${LOCALBASE}|${LOCALBASE}|' \
X -e 's|$${X11BASE}|${X11BASE}|' \
X ${FILESDIR}/vimrc > ${WRKDIR}/vimrc
X
Xdo-install:
X.for f in ${DISTNAME} jcode3.vim
X @${GZCAT} ${_DISTDIR}/${f}${EXTRACT_SUFX} | \
X ${SED} -e 's|$$VIMRUNTIME/tools\(/jcode.pl\)|${PREFIX}/lib/perl5/site_perl|' \
X > ${PREFIX}/${VIM_SHARE}/macros/${f}
X @${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${VIM_SHARE}/macros/${f}
X @${CHMOD} ${SHAREMODE} ${PREFIX}/${VIM_SHARE}/macros/${f}
X.endfor
X @${INSTALL_DATA} ${_DISTDIR}/format.vim ${PREFIX}/${VIM_SHARE}/macros
X @${INSTALL_DATA} ${WRKDIR}/vimrc \
X ${PREFIX}/${VIM_SHARE}/vimrc_example.ja.vim
X
X.include "../../mk/bsd.pkg.mk"
END-of-japanese/vim-share/Makefile
echo c - japanese/vim-share/pkg
mkdir -p japanese/vim-share/pkg > /dev/null 2>&1
echo x - japanese/vim-share/pkg/PLIST
sed 's/^X//' >japanese/vim-share/pkg/PLIST << 'END-of-japanese/vim-share/pkg/PLIST'
X@comment $NetBSD$
X${VIM_SHARE}/macros/format.vim
X${VIM_SHARE}/macros/jcode2.vim
X${VIM_SHARE}/macros/jcode3.vim
X${VIM_SHARE}/vimrc_example.ja.vim
END-of-japanese/vim-share/pkg/PLIST
echo x - japanese/vim-share/pkg/COMMENT
sed 's/^X//' >japanese/vim-share/pkg/COMMENT << 'END-of-japanese/vim-share/pkg/COMMENT'
XJapanese data files for the vim editor (vi clone)
END-of-japanese/vim-share/pkg/COMMENT
echo x - japanese/vim-share/pkg/DESCR
sed 's/^X//' >japanese/vim-share/pkg/DESCR << 'END-of-japanese/vim-share/pkg/DESCR'
XVim is an almost compatible version of the UNIX editor Vi. Many new features
Xhave been added: multi level undo, syntax highlighting, command line history,
Xon-line help, filename completion, block operations, etc.
X
XThis package is only a japanese shared data-package for the `actual' vim
Xpackages. You also have to install one of vim, vim-xaw, or vim-gtk to get
Xa working editor.
END-of-japanese/vim-share/pkg/DESCR
echo c - japanese/vim-share/files
mkdir -p japanese/vim-share/files > /dev/null 2>&1
echo x - japanese/vim-share/files/md5
sed 's/^X//' >japanese/vim-share/files/md5 << 'END-of-japanese/vim-share/files/md5'
X$NetBSD$
X
XMD5 (ja-vim-share/jcode2.vim.gz) = a67687ce5af14334995bfb5cf217da13
XMD5 (ja-vim-share/jcode3.vim.gz) = cf9faba2d10b80b524b6a2d3e33460c6
XMD5 (ja-vim-share/format.vim) = 1fda0ff374152f00f99988f481184093
END-of-japanese/vim-share/files/md5
echo x - japanese/vim-share/files/vimrc
sed 's/^X//' >japanese/vim-share/files/vimrc << 'END-of-japanese/vim-share/files/vimrc'
X"=======================================================================
X" Vine Linux 用 Vim 5.x 設定ファイル
X" Created by Nozomu Kobayashi <nozomu@cup.com>
X"=======================================================================
X" $NetBSD$
X" NetBSD pkgsrc version by Kazuki Sakamoto <sakamoto@netbsd.org>
X"=======================================================================
X
X" vi コンパチモードにしない.
Xset nocompatible
X
X" GNU screen で使う時に TERM=ansi の方が都合が良いので…
Xset term=ansi
X
X" 日本語の設定.
Xset fileencoding=japan
Xset guifontset=-*-*-medium-r-normal--14-*
Xset backspace=2
X
X" バックアップは作らない.
Xset nobackup
X
X" kterm のタイトルを書き替えない.
Xset notitle
Xset noicon
X
X" タブは 4 つ.スペースで行なう.
X"set tabstop=4
X"set shiftwidth=4
X"set expandtab
Xset noautoindent
X
X" Vim を終了させたり後で再起動した時に,いろいろと覚えておいてくれる.
Xset viminfo='50,\"50,%
X
X" バックアップファイルは補完する時に最後の候補になるようにします.
Xset suffixes+=.orig,.org,.rej,.bak
X
X" その他,雑多な設定.
Xset novisualbell
Xset showmode
Xset showcmd
Xset history=100
Xset textwidth=76
Xset winheight=12
Xset scrolloff=0
Xset incsearch
Xset equalprg=
Xset dict=/usr/share/dict/words
Xset ttimeout
Xset notimeout
Xset timeoutlen=100
Xset complete=.,w,b,u,i
Xset listchars=tab:??,trail:-
Xset wildmode=list:full
Xset path=.,/usr/include,${LOCALBASE}/include,${X11BASE}/include
X
X" autocmd のリセット
Xautocmd!
X
X" C/C++ 言語用の設定.
Xautocmd BufRead,BufNewFile *.[chCH] set fo=croql cin com=sr:/*,bm:*,el:*/,://
Xautocmd BufRead,BufNewFile *.[chCH] let &path=&path.",proto"
X
X" Makefile では本物の TAB が必要です.
Xautocmd BufRead,BufNewFile [Mm]akefile* set noexpandtab
X
X" コレをすると,EUC だけでなく JIS/SJIS でも読み書き出来る.
Xif has("perl")
X source $VIMRUNTIME/macros/jcode2.vim
Xelse
X source $VIMRUNTIME/macros/jcode3.vim
Xendif
X
X" format.vim を使うと,日本語の文章の fold が出来る.
Xsource $VIMRUNTIME/macros/format.vim
X
X" 色付きの醍醐味.
Xsyntax on
X
X" gvim を ReverseVideo で使う.
Xhighlight Normal guibg=black guifg=white
END-of-japanese/vim-share/files/vimrc
exit
- Follow-Ups:
- Re: vim-5.7
- From: SUNAGAWA Keiki <Keiki_SUNAGAWA@yokogawa.co.jp>