2010-05-01 13 views
1

J'aime utiliser la fonction de fenêtre fractionnée dans Vim. Cependant, je n'arrive pas à faire glisser de nouveaux fichiers dans les différentes sections. Cela ouvrira simplement un nouvel onglet. Je n'aime pas utiliser les onglets car j'ai encore besoin de les balancer entre eux et pas très différent d'utiliser des fenêtres séparées.Faites glisser déposer un fichier ouvert dans une fenêtre partagée Macvim?

Y at-il de toute façon que je peux changer ce comportement? Cela fonctionne bien sur Windows gVim et Im en utilisant le même fichier vimrc.

Répondre

3

De la documentation (: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.