How to effectively work with multiple files in Vim?

参考: http://stackoverflow.com/questions/53664/how-to-effectively-work-with-multiple-files-in-vim
 You can use tabs (introduced in Vim 7) to switch between tabs with :tabn and :tabp, With :tabe <filepath> you can add a new tab; and with a regular :q or :x you close a tab.

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)

时间: 2024-12-16 04:09:03

How to effectively work with multiple files in Vim?的相关文章

How to attach multiple files in the Send Mail Task in SSIS

Let’s say you need to create a SSIS package that creates 2 files and emails the files to someone. Your package may look something like this: Double-click the Send Mail Task to open the Send Mail Task Editor (shown below). Fill in all the relevant fie

[Tools Vim] Open Files into Vim from the Terminal as buffers, splits, and tabs

You can open files into Vim directly from the terminal. This works for both single files and multiple files. In addition to reading these files into buffers, you can open them as splits or tabs. This video covers the basics of opening files from the

[SCSS] Organize SCSS into Multiple Files with Partials

Tired of dealing with monolithic CSS files? Are requests for multiple CSS files hurting your performance? In this lesson we learn how to separate our styles with SCSS partials, and how SCSS imports compile to one file so there's only one request. Thi

Compress multiple files into a zip file and assign a password.

First things first, include maven dependency to download zip4j jar files 1 <dependency> 2 <groupId>net.lingala.zip4j</groupId> 3 <artifactId>zip4j</artifactId> 4 <version>1.3.1</version> 5 </dependency> Seco

vim使用指北 ---- Multiple Windows in Vim

多窗口打开多个文件 vim -o file1 file2 ... ---- 默认上下分割窗口 vim -0n file1 file2 ... ---- vim默认会上下等分n个窗口 分割窗口 :[v]split file ---- 以横向分割(带v)或纵向分割当前窗口打开文件(等比分割) :[n][v]split/new [++opt] [+cmd] [file] ----  n:从顶部开始在新窗口中现实多少行,opt:vim选项,cmd:在新窗口中执行的命令,file:新窗口中现实的文件.例如

Lab - Archiving and Unarchiving Files

By performing this lab, students will learn how to work with archive files. In this lab, you will perform the following tasks: Create archive files using tar with and without compression Compress and uncompress files into a gzip archive file Compress

ssh超时时间设置(设置ClientAliveInterval),附SSH超详细参数

作者: daodaoliang 版本: V 0.0.1 日期: 2016年12月29日 0x00 OpenSSH 简介 OpenSSH是采用SSH协议实现的重要的远程连接工具,它对所有的数据进行加密以防止被中途窃听,OpenSSH提供了大量的安全通道的组件,比如: 远程操作用ssh.scp.sftp; 秘钥管理用ssh-add.ssh-keysign.ssh-keyscan.ssh-keygen; 服务端包含sshd.sftp-server.ssh-agent; 0x01 方案一 上面的所有信息

[No000098]SVN学习笔记5-分支,合并,属性,补丁,锁,分支图

行结束符和空白选项 在项目的生命周期中,有时可能会将行结束符由 CRLF 改为 LF,或者修改一段代码的缩进.不幸的是这样将会使大量的代码行被标记为已修改,尽管代码本身并没有被修改.这里列出的选项将会在比较差异 和应用补丁时帮助你应对这些修改.你将会在合并和追溯对话框中看到这些设置,它们同样也出现在TortoiseMerge 的设置中. 忽略行结束符 排除仅行结束符的差异. 比较空白 将所有缩进和行内空白差异视为增加/删除的行. 忽略空白修改 排除那些完全是针对空白数量或类型的修改,例如,修改缩

hbase官方文档(转)

Apache HBase™ 参考指南  HBase 官方文档中文版 Copyright © 2012 Apache Software Foundation.保留所有权利. Apache Hadoop, Hadoop, MapReduce, HDFS, Zookeeper, HBase 及 HBase项目 logo 是Apache Software Foundation的商标. Revision History Revision 0.95-SNAPSHOT 2012-12-03T13:38 中文版