码迷,mamicode.com
首页 > 系统相关 > 详细

vim note write

时间:2017-05-08 14:29:57      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:open   vim   horizon   ide   com   ica   less   current   and   

Try:

:vert sb N

which will open a left vertical split (by default, unless you have modified some options).

To open a split to the right, on the other hand:

:vert belowright sb N

You can use :split and :vsplit to divide the current area into two windows with the same buffer. If you supply an argument then one of the new windows is created with the argument as a file name used for the buffer in the new window

To gain more control over how the splits are created, you can combine the :vertical:leftabove and :rightbelow commands. Also of use are the the :sfind and :sb commands.

Examples技术分享

:vertical sb 3
Create a vertical split and show buffer number 3 in the window to the left.
:vertical rightbelow sfind file.txt
Create a vertical split and read file.txt into the buffer in the right window.
:rightbelow sfind file.txt
Create a horizontal split and read file.txt into the buffer in the bottom window.

Navigating splits技术分享Edit

Use Ctrl-W followed by one of the hjkl movement keys.

 

vim note write

标签:open   vim   horizon   ide   com   ica   less   current   and   

原文地址:http://www.cnblogs.com/chjbbs/p/6824434.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!