Coding

How do I switch between panes in split mode in Vim?

Ctrl-W, s will create a horizontal split.

Ctrl-W, v will create a vertical split.
Ctrl-W, direction will allow you to move among the panes.
:ls will show your open buffers.
:b <number> will open the specified buffer in the current pane.
 
you can use <ctrl> + w + w To switch the panes in order.
A suggest way is to put this codes in your vimrc file
""""""""""""""""""""""""""""""""""""""""""
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l
""""""""""""""""""""""""""""""""""""""""""
That means you could use <ctrl>+j/k/h/l to switch the right direction just like you use the j/k/h/l to move the cursor
 
 
use :help : split to see more detail

 

0 Bình luận

Trở về
  • HTML5 Canvas
  • HTML5 Canvas

     The <canvas> element is used to draw graphics, on the fly, on a web page. Draw a red rectangle, a gradient rectangle,...