

Set Equal Sizes of Vim WorkspaceĪnd that’s how you can split the Vim screen into various spaces. However, the rest of the install works and so you think everything is fine. To ensure the height of the upper and lower workspaces is equal press Ctrl + w, followed by the = (equals) sign. It's a problem of the installer on Windows 10 The installer tries to write some files into C:\WINDOWS, but if you install without administrator privileges, those files cannot be written. To decrease the height of the workspace, press Ctrl + w, followed by the - (minus) sign. The illustration below shows Increase Vim Workspace Height To increase the height of your current workspace, use the combination press Ctrl + w, followed by SHIFT + ‘+’ combination. Reduce Vim Workspace Width Increase Height of Vim Current Workspace In the screenshot below, you can clearly see that the left section has reduced in width.

To reduce the width of your current Vim selection, press Ctrl + w, and then SHIFT + ‘<’ combination. In the example below, I have increased the width of the left pane. To increase the width of your current selection on the Vim editor, press Ctrl + w, and shortly followed by the SHIFT + ‘>’ combination.

Navigate to Upper VIM Screen Increase Width of Vim Current Workspace To head back to the upper section, press Ctrl + w, followed by the letter ‘k’. To navigate to the bottom section hit Ctrl + w, followed by the letter ‘j’. In the example below, the left section has been split into two workspaces. To split the vim screen horizontally, or open a new workspace at the bottom of the active selection, press Ctrl + w, followed by the letter ‘s’. To head back to the left pane, use the combination Ctrl + w, followed by the letter ‘h’. To navigate to the right pane, press Ctrl + w, followed by the letter ‘l’. Press the keyboard combination Ctrl + w, followed by the letter ‘v’.Enter command mode by pressing the ESC button.Suppose you have opened a file on Vim editor and you want to split it vertically. Start Vim Editor Splitting Vim Screen Vertically Running the vim command without any arguments displays basic information about the Vim editor including the version and basic commands such as how to get help and exit the text editor as shown below. To install vim, run the following commands: $ sudo apt install vim Also, this guide is intended for users running a system with a graphical display so as to observe the split effect of the vim editor on the terminal. Installing Vim in Linuxīefore we proceed, ensure that Vim is installed on your system. In this guide, we endeavor to show you various ways that you can split the Vim editor into different workspaces in the Linux command-line. The list of what you can do is quite long and the learning curve is steep. Vim provides colored syntax among other basic functionalities such as inserting and deleting text, copying and pasting text, and saving changes made to a file. It is an improvement of the vi editor and uses a combination of regular keyboard keys to provide vast functionality. Vim text editor, short for Vi IMproved, is one of the most powerful and popular Linux text editors that enjoys immense patronage from the open-source community.
