2010-05-01 73 views
1

我喜歡在Vim中使用分割窗口功能。但我似乎無法拖放新文件到不同的部分。這樣做只會打開一個新標籤頁。我不喜歡使用製表符,因爲我仍然需要在它們之間輕彈,而使用單獨的窗口則沒有多大區別。在Macvim拆分窗口中拖放打開的文件?

有反正我可以改變這種行爲嗎?它可以在使用相同的vimrc文件的Windows gVim和Im上正常工作。

回答

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.