Set Equal Sizes of Vim WorkspaceĪnd that’s how you can split the Vim screen into various spaces. To ensure the height of the upper and lower workspaces is equal press Ctrl + w, followed by the = (equals) sign. To decrease the height of the workspace, press Ctrl + w, followed by the - (minus) sign. If the 'autowrite' or 'autowriteall' option is on and the buffer was changed, write it. It is equivalent to ':e ', except that it also works when there is no file name. This is a quick way to toggle between two files. The illustration below shows Increase Vim Workspace Height Mostly the alternate file is the previously edited file. 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’.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |