

The CTRL-W is the mnemonic for window command, and the.
Of course, you can change and to some other keys if you want to keep the default behavior of your arrow keys. To move from the current Vim window to the next one, type CTRL-W j (or CTRL-W
When buftypenofile, you cannot save the file. resolvent: You can use the following name to view buftype settings. The mappings will call the function, the first one to go up and the second one to go down. At / Add the following text to the vimrc file: call plugbegin () Plug preservim/NERDTree call plugend () Start Vim and type the following command: :NERDTree. The function will get the height of the current window, and accordingly to its parameter will scroll the screen up or down of a quarter of the height. As it sets scroll to the XX value you can then use ctrl d and ctrl u to move 25% of the screen.Īlso, I think that :h scrolling might be interesting for you.Īnd here is another solution with a function and some mappings to add to your. Which means that the first time you want to scroll in a window you can do XX ctrl d where XX is the 25% of the number of lines in your window.

Lines comes from the 'scroll' option (default: half a Maybe ctrl d and ctrl u could be what you are looking for.
