Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1563  / 2 Years ago, tue, november 8, 2022, 12:06:39

I'm running Ubuntu 10.04 LTS with a dual screen setup. I have a launcher in my panel that starts up VIM, and I always want it to start on the right monitor. Is there something that I can add to the command line in the launcher to make that happen? Either a VIM parameter, or some other non-VIM-specific trick?



Note that I don't want all instances of VIM to launch to the right monitor. For instance, if I start it from a terminal, I prefer to have it on the left, or whatever monitor my terminal was on.



EDIT FWIW, I'm using GNOME, currently on version 2.30.2.


More From » 10.04

 Answers
4

Try:



gvim -c "winpos 1600 0"



where, e.g., 1600 is the pixel width of the left monitor. This should make it start on the first pixel of the right monitor. See :help winpos in vim for more info.


[#44614] Tuesday, November 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
calronze

Total Points: 0
Total Questions: 110
Total Answers: 112

Location: Belarus
Member since Thu, Aug 11, 2022
2 Years ago
calronze questions
Sun, Jan 9, 22, 13:41, 2 Years ago
Wed, Feb 15, 23, 01:41, 1 Year ago
Sat, Jul 23, 22, 21:03, 2 Years ago
Sat, Feb 5, 22, 01:57, 2 Years ago
;