
Split the window with a new unnamed buffer :5-10bd deletes buffers in the range or :%bd deletes all buffers). The argument is buffer number or buffer name. You can use :bdelete or :bd to delete a buffer and move it to unlisted (you can still see it using :ls!). :h windows opens windows.txt and puts the corresponding buffer in the unlisted). You can use :ls! to include unlisted buffers (e.g. Use :ls or :buffers or :files to see the list of buffers. Mostly the alternate buffer is the previously edited file. You can use CTRL-6 or CTRL-^ or :e # to switch to alternate buffer. It is possible multiple windows are showing different portions of the same bufferįor a good explanation you can read these Stack Overflow post 1, post 2 and this Wiki page. Unlike other editors, tabs are different in Vim: Make the current window the only one on the screen. If we have more than one window in the current tab, moves the current window to a new tab. In other words if we have two horizontally-splitted windows, this command makes them vertically splitted. Move the current window to be at the far right, using the full height of the screen. Move the current window to be at the far left, using the full height of the screen. In other words if we have two vertically-splitted Windows, this command makes them horizontally splitted. Move the current window to be at the very bottom, using the full width of screen. Move the current window to be at the very top, using the full width of screen. Press CTRL-w b in normal mode Changing the Layout of Windows CTRL-w K


Press CTRL-w t in normal mode Moving to the bottom-right window You can create a new window using :new which will be opened horizontally or :vnew which will be opened vertically Moving to the top-left window For more information you can read these links:įor more information run :h windows.txt. Each tab may have its own working directory (using :tcd command). You can use one window or more to show parts of it. In Vim each file is represented by a buffer. It's difficult to find a tab when you open a lot of them. In other editors each tab represent one file.

In other editors tabs are proxies for files.
