LoginSignup
3
6

More than 5 years have passed since last update.

Vim 変数とオプションをコマンドで確認する方法

Posted at

Vimで変数とオプションの確かめ方を調べたのでメモしておく。
設定がちゃんと通っているか確かめたいという時に便利。

変数 (Variable)

:let samplevariable = 'foo'
:echo samplevariable
foo

結果はfooと表示されます。

オプション (Option)

:set textwidth=80
:echo &textwidth
80

結果は80と表示されます。
注意すべき点は、オプションを呼び出すときは前に&をつけることです。


参考
http://learnvimscriptthehardway.stevelosh.com/chapters/19.html

3
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
6