R.A. Epigonos et al.

[vim] 履歴サイズを変更 (:set history=9999)

デフォルトの履歴サイズは 50 なので、これを変更するには set history=9999 などを実行する。

まずはデフォルトの履歴サイズを確認。以下のとおり50個だとわかる。

:verbose set history
  history=50
        Last set from /usr/share/vim/vim74/debian.vim
Press ENTER or type command to continue

これを変更するには、vim 内で :set history=9999 などの vim コマンドを実行する。または、設定を vimrc ファイルに書き込んで、設定を永続化させる。ここではシェルで以下のコマンドを実行。

$ echo set history=9999 >> ~/.vim/vimrc

実行後にvimを再起動するか :source /.vim/vimrc などを実行した後、変更内容を確認。

:verbose set history
  history=9999
        Last set from ~/.vim/vimrc
Press ENTER or type command to continue

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2008-01-12T15:53:06+09:00
  2. Modified: 2008-01-12T15:53:06+09:00
  3. Generated: 2023-08-27T23:09:17+09:00