1
我喜欢在Vim中使用分割窗口功能。但我似乎无法拖放新文件到不同的部分。这样做只会打开一个新标签页。我不喜欢使用制表符,因为我仍然需要在它们之间轻弹,而使用单独的窗口则没有多大区别。在Macvim拆分窗口中拖放打开的文件?
有反正我可以改变这种行为吗?它可以在使用相同的vimrc文件的Windows gVim和Im上正常工作。
我喜欢在Vim中使用分割窗口功能。但我似乎无法拖放新文件到不同的部分。这样做只会打开一个新标签页。我不喜欢使用制表符,因为我仍然需要在它们之间轻弹,而使用单独的窗口则没有多大区别。在Macvim拆分窗口中拖放打开的文件?
有反正我可以改变这种行为吗?它可以在使用相同的vimrc文件的Windows gVim和Im上正常工作。
从文档(:help macvim-drag
):
Dragging files and dropping them on a window opens those files in tabs in that
window, unless Vim is in command-line mode. In command-line mode the names of
the files are added to the command line. Holding down modifier keys whilst
dragging is not supported.
If a file is dropped on the Dock icon, it is always opened in a new tab
regardless of the mode Vim is currently in. The same holds if you
double-click on a file in the Finder.
The "Open files from applications" preference in the General preference pane
gives more options on how dropped files should open, in case tabs are not
desired.