flâneur — a map of the web's best reading

Learn-Vim/ch02_buffers_windows_tabs.md at master · iggredible/Learn-Vim

github.com · 1,737 words · saved by 1 readers

If you used a modern text editor before, you are probably familiar with windows and tabs. Vim uses three display abstractions instead of two: buffers, windows, and tabs. In this chapter, I will explain what buffers, windows, and tabs are and how they work in Vim. Before you start, make sure you have the set hidden option in vimrc. Without it, whenever you switch buffers and your current buffer is not saved, Vim will prompt you to save the file (you don't want that if you want to move quickly). I haven't covered vimrc yet. If you don't have a vimrc, create one. It is usually placed in your home directory and is named .vimrc. I have mine on ~/.vimrc. To see where you should create your vimrc, check out :h vimrc. Inside it, add: Save it, then source it (run :source % from inside the vimrc). What is a buffer? A buffer is an in-memory space where you can write and edit some text. When you open a file in Vim, the data is bound to a buffer. When you open 3 files in Vim, you have 3 buffers. Ha

Ch02. Buffers, Windows, and Tabs If you've used a modern text editor before, you are probably familiar with windows and tabs. Vim uses three display abstractions instead of two: buffers windows tabs. In this chapter, I will explain what buffers, windows, and tabs are and how they work in Vim. Before you start, make sure you have the set hidden option in your vimrc. Without it, you will be prompted to save your file whenever you try to switch out of any unsaved buffers (you don't want that if you want to move quickly). I haven't covered what a vimrc is yet. A vimrc file can usually be found in

Explore this link on the map →

related reading