0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Vimの設定/変数の一覧を確認する (Vim/Vimscript)

Posted at

概要

Vimscriptに親しむため、一覧を出すコマンドを確認してみる。

内容

環境

macOS Catalina
VIM - Vi IMproved 8.1 macOS version Normal version without GUI.

今回は基本的に、外部ファイル記述保存し、vim起動後、コマンドを実行する。

レジスタの一覧

:registers
output
Type Name Content
  c  ""   を得る
  l  "0   ##環境^J
  l  "1   ^J
  l  "2   #環境^J
  l  "3   ^J
  l  "4   SayHello^J
  l  "5   Say Hello world^J
  l  "6   scriptencoding utf-8^J
  l  "7   SayHello^J
  l  "8     echo a:0^J  echo a:1^J  echo a:2^J  for s in a:000^J    echon ' ' . s^J  endfor^J
  l  "9     echo^J
  c  "a   A^R-^[u$pj
  c  "d   d^[dq
  c  "j   jjjjjjjjjj
  c  "k   kkk^[
  c  "q   yyp^A
  c  "v   j^[kkjjjggFkkkjjj
  c  "w   2@qj
  c  "-   を得る
  c  "*   Vimscriptに親しむため、コマンドから関数に引数を渡してみる。
  c  ".   ```:output^@```
  c  ":   let name = "hello"
  c  "%   qiita1.txt
  c  "#   qiita1.txt
  c  "/   \<super\>

マーカの一覧

:marks
output
mark line  col file/text
 '     45    0
 0      6    0 ~/hello.vim
 1      1    0 ~/hello.vim
 2      1    0 ~/hello.vim
 3      5    6 ~/hello.vim
 4      5    6 ~/hello.vim
 5      5    6 ~/hello.vim
 6      5    6 ~/hello.vim
 7      5    0 ~/hello.vim
 8      5    0 ~/hello.vim
 9      5    0 ~/hello.vim
 "      1    0 #概要
 [      1    0 #概要
 ]     56    0 #今後
 ^     43    6 :marks
 .     43    5 :marks
 <     47    0 ```Vimscript
 >     49    0 ```

その他の一覧

引数を渡さないことで、変数・バッファなどの一覧が確認できる。
cf. 現在の設定を出力する

蛇足

見られて困る内容は出力されてないはず。。

参考にさせていただいた頁・本

感想

整理できて良かった。
正確にはVimscriptの話題ではないかもしれないが、通ずると思うのでタグはそのままとした。

今後

たまに確認して、慣れていきたいと思う。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?