可型桐以自己写
:command! -nargs=1 Rename let tpname = expand('%:t') | saveas <袜租伏args>| edit <args>| call delete(expand(tpname))!
Register % contains the name of the current file, and register # contains the name of the alternate file. These registers allow the name of the current or alternate files to be displayed or inserted. The name, or full path, or directory containing the file can be used.
For example, in directory /abc the command vim def/my.txt would edit file /abc/def/my.txt. The following commands could be entered to display the information shown.
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)