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

How to effectively work with multiple files in Vim?

时间:2015-04-07 11:40:39      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:

Why not use tabs (introduced in Vim 7)? You can switch between tabs with :tabn and :tabp, With :tabe <filepath> you can add a new tab; and with a regular :q or :wq you close a tab. If you map :tabn and :tabp to your F7/F8 keys you can easily switch between files.

If there are not that many files or you don‘t have Vim 7 you can also split your screen in multiple files: :sp <filepath>. Then you can switch between splitscreens with Ctrl+W and then an arrow key in the direction you want to move (or instead of arrow keys, w for next and W for previous splitscreen)

 

 

How to effectively work with multiple files in Vim?

标签:

原文地址:http://www.cnblogs.com/welhzh/p/4397563.html

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