vim - save current file with a new name but keep editing current file

http://superuser.com/questions/414110/vim-save-a-file-as-a-different-filename-but-keep-w-as-the-current-filename

:w someOtherFile.c

it will write to that file, but stay editing someFile.c.

时间: 2024-08-11 05:34:09

vim - save current file with a new name but keep editing current file的相关文章

The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web

Sharepoint Error : The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web 中文错误: 一次网站突然出现问题 新建网站会报如下错误: 该 URL“DocLib1/Doc1.doc”无效.它可能指向不存在的文件或文件夹,或者是指向不在当前网站中

ueditor百度富文本编辑器linux下报错: class path resource [config.json] cannot be resolved to absolute file path because it does not reside in the file system

具体报错信息如下 java.io.FileNotFoundException: class path resource [config.json] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/home/java/wcq-new-server/wcq/wcq-admin/target/wcq-admin.jar!/BOOT-INF/classes!

项目windows运行正常,而Linux上运行报错: class path resource [kwhRules.json] cannot be resolved to absolute file path because it does not reside in the file system

java.io.FileNotFoundException:class path resource [kwhRules.json] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/root/app/target/app.jar!/BOOT-INF/classes!/kwhRules.json 更改前代码: void initRules() throw

auto-extending data file ./ibdata1 is of a different size auto-extending data file ./ibdata1 is of a different size

160315 17:08:19 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data160315 17:08:19 [Warning] Using unique option prefix thread_cache instead of thread_cache_size is deprecated and will be removed in a future release. Please u

上传文件时,将file对象,经过Qs.stringfly处理后,file文件被过滤

aa(event){//选择的excel文件 var file=event.target.files[0]; console.log(file); var reader = new FileReader(); reader.readAsBinaryString(file); reader.onload=(e=>{ var bb={lang:1,fileinfo:e.target.result,enen:2}; console.log(bb) var xx = Qs.stringify(bb);

Oracle EBS R12 (12.1.3) Installation Linux(64 bit)

Oracle EBS R12 (12.1.3) Installation Linux(64 bit) Contents Objective. 3 1 Download & Unzip. 3 Download. 3 Unzip. 3 MD5 Checksums. 4 2 Pre-Install Task. 5 Disk Space. 5 Specific Software Requirements. 5 RPM... 6 JDK. 8 OS User & Group. 11 3 Instal

(转)vim 常用快捷键 二

转自:http://www.cnblogs.com/wangkangluo1/archive/2012/04/12/2444952.html 键盘移动 (Move) 一切都从键盘的移动 k -> 上 up j -> 下 down h -> 左 left l -> 右 right z -> 重画屏幕,当前光标变成屏幕的第一行 (redraw current line at top of window) CTRL-f -> 跳到下一页 (page down) CTRL-b

vim 的寄存器

If you've been following my series on Vim, it should be clear now that Vim has a pretty clear philosophy of how text editing should work. It's based on the Unix philosophy of small composable tools, and doesn't necessarily match up with the conventio

Vim tips——Working with external commands

A common sequence of events when editing files is to make a change and then need to test by executing the file you edited in a shell. If you're using vim, you could suspend your session (ctrl-Z), and then run the command in your shell. That's a lot o