Search code examples
vimnetrw

How can I put cursor back to netrw window after finish editing


After open a file in my gvim, it looks like this

________________________
|           |          |
|           |          |
|           |          |
|  NETRW    |  EDITOR  |
|           |          |
|           |          |
|           |          |
------------------------

By default cursor will be in the editor window when the file is open up, which is good, but how can i get back to netRw window after finish editing so I can choose or open other files?


Solution

  • Yes, you can do <C-w>h or <C-w><Left> to move to the left window or <C-w>p to move to the previous window or <C-w>w to cycle between windows.

    See :help window-move-cursor.