[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:31833] Re: set-language-env 㨠vi



ã©ã†ã‚‚。久ä¿ç”°ã§ã™ã€‚

At Wed, 20 Feb 2002 04:26:20 +0900,
cbtown wrote:

>   viã§æ—¥æœ¬èªžè¡¨ç¤ºãŒã§ããªã„ã‚“ã§ã™gã€set-language-envã¨viã®
> 設定ã«ã¤ã„ã¦æ•™ãˆã¦é ‚ã‘ãªã„ã§ã—ょã†ã‹ï¼Ÿ

ã™ã¿ã¾ã›ã‚“ã€ãƒã‚°ã£ã¦ãŸã‚ˆã†ã§ã™ã€‚(csh スクリプトã¯å®Ÿã¯ã‚ã¾ã‚Šã‚ˆã
知らãªã„ã®ã§ã™)。

以下ã®å†…容を .cshrc ã«æ›¸ãã“ã¨ã§ã€ã†ã¾ãã„ã‹ãªã„ã§ã—ょã†ã‹?
ã†ã¾ãã„ã‘ã°ã€æ¬¡ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã«å映ã•ã›ã¾ã™ã€‚

alias vi ':\
  if ( -x /usr/bin/nvi-m17n-canna ) then \
    (setenv NEXINIT "source ~/.nexrc-m17n-canna" ; exec /usr/bin/nvi-m17n-canna \!*) \
  else if ( -x /usr/bin/nvi-m17n ) then \
    (setenv NEXINIT "source ~/.nexrc-m17n" ; exec /usr/bin/nvi-m17n \!*) \
  else \
    \vi \!* \
  endif\
'
alias nvi-m17n '(setenv NEXINIT "source ~/.nexrc-m17n" ; exec /usr/bin/nvi-m17n \!*)'
alias nvi-m17n-canna '(setenv NEXINIT "source ~/.nexrc-m17n-canna" ; exec /usr/bin/nvi-m17n-canna \!*)'

ã¨ã“ã‚ã§ã€1行目ã®ã€Œalias vi ':\ã€ã®ã€Œ:ã€ã§ã™ãŒã€ã“ã‚ŒãŒãªã„ã¨ã€
ãªãœã‹ã€vi ã§ç·¨é›†ã—ãŸã„テキストファイルを実行ã—よã†ã¨ã—ã¦ã—ã¾ã„ã€
エラーã«ãªã£ã¦ã—ã¾ã„ã¾ã™ã€‚(実行パーミションãŒã¤ã„ãŸãƒ•ã‚¡ã‚¤ãƒ«ã®
å ´åˆã€ãã®ãƒ•ã‚¡ã‚¤ãƒ«ãŒå®Ÿè¡Œã•ã‚Œã¦ã—ã¾ã„ã¾ã™)。解決方法ãŒè¦‹ä»˜ã‹ã£ãŸã®ã§
ã¾ã‚ã„ã„ã‚„ã€ã¨ã„ã†ã®ã‚‚ã²ã¨ã¤ã®è€ƒãˆã‹ãŸã§ã™ãŒã€ç†ç”±ãŒåˆ†ã‹ã‚‰ãªã„ã‚‚ã®ã‚’
自分ã®è¨­å®šã§ä½¿ã†ã®ãªã‚‰ã¨ã‚‚ã‹ãã€Debian ã®ãƒ‘ッケージã«ä½œã‚Šè¾¼ã‚€ã®ã¯
ãªã‚“ã ã‹ãªã‚ã€ã¨æ€ã†ã®ã§ã€ã©ãªãŸã‹ã€ã†ã¾ã説明ã§ãã‚‹æ–¹ã¯ã„らã£ã—ゃã„
ã¾ã™ã‹?

>   vi関係ã®è¨­å®šãƒ•ã‚¡ã‚¤ãƒ«ã®å†…容ã¨ã—ã¦ã¯ã€
> 
> ~% cat .nexrc
...
>   ã¨ã„ã£ãŸæ„Ÿã˜ã«ãªã£ã¦ã„ã¾ã™ã€‚
>   ã¾ãŸã€ã“れらã®ãƒ•ã‚¡ã‚¤ãƒ«ã®ã‚³ãƒ¡ãƒ³ãƒˆãªã®ã§ã™ãŒã€#ã§ã¯ãªã
> "ã ã£ãŸã®ã§æ¶ˆåŽ»ã—ã¾ã—ãŸã€‚

.nexrc ãªã©ã®ãƒ•ã‚¡ã‚¤ãƒ«ã®ã‚³ãƒ¡ãƒ³ãƒˆã¯ã€" ã§ã‚ã£ã¦ã„ã‚‹ã¨æ€ã„ã¾ã™ã€‚

---
ä¹…ä¿ç”°æ™ºåºƒ Tomohiro KUBOTA <kubota@debian.org>
http://www.debian.or.jp/~kubota/
"Introduction to I18N"  http://www.debian.org/doc/manuals/intro-i18n/