1

我喜欢使用 Vim 中的拆分窗口功能。但是我似乎无法将新文件拖放到不同的部分。这样做只会打开一个新标签。我不喜欢使用标签,因为我仍然需要在它们之间轻弹,并且与使用单独的窗口没有太大区别。

无论如何我可以改变这种行为吗?它在 Windows gVim 和 Im 上使用相同的 vimrc 文件运行良好。

4

1 回答 1

3

从文档(: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.
于 2010-05-01T14:30:38.627 回答