Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

バッファについてのメモ #2

Open
myokoym opened this issue Dec 14, 2017 · 1 comment
Open

バッファについてのメモ #2

myokoym opened this issue Dec 14, 2017 · 1 comment

Comments

@myokoym
Copy link
Contributor

myokoym commented Dec 14, 2017

バッファについて:

  • Vimがファイルを読み込んだ後にファイルの内容をコピーするメモリ領域のこと
    • Vimでファイルを編集するときは、ファイルそのものではなくファイルの内容を読み込んだバッファを編集している
    • バッファ間でコピーや補完ができる
  • :e (ファイル名)でバッファを開く
    • :set hiddenしておけば保存ぜずに切り替えられる
  • :ls でバッファ一覧
  • :b (バッファ番号またはファイル名)でバッファ切り替え
    • <Tab>で補完できる
  • :bd (バッファ番号またはファイル名)でバッファを閉じる
    • そのファイルだけ別のウィンドウで開きたいときなどに使う
  • <C-^>または<C-6>で直前に開いていたバッファに切り替え
    • <C-o>/<C-i>でも可

参考:

@myokoym
Copy link
Contributor Author

myokoym commented Dec 14, 2017

まとまったらWikiかどこかに移して閉じる。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant