The Computer Oracle

How to start gVim maximized?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Orient Looping

--

Chapters
00:00 Question
00:35 Accepted answer (Score 13)
00:59 Answer 2 (Score 31)
01:18 Answer 3 (Score 7)
02:10 Answer 4 (Score 6)
02:41 Thank you

--

Full question
https://superuser.com/questions/140419/h...

Accepted answer links:
[Vim's Wiki]: http://vim.wikia.com/wiki/Maximize_or_se...

Answer 2 links:
[Vim wiki]: http://vim.wikia.com/wiki/Maximize_or_se...

Answer 3 links:
http://vim.wikia.com/wiki/Maximize_or_se...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#vim #gvim #crossplatform

#avk47



ANSWER 1

Score 31


From the Vim wiki:

au GUIEnter * simalt ~x

That'll work on Windows; I'm not sure what key combinations you'd need on Gnome/KDE.




ACCEPTED ANSWER

Score 14


The best way if you're concerned about cross-platform compatibility is set lines=999 columns=999. I've found it in Vim's Wiki, and despite it's not perfect, it's a best solution if you need to work on different operating systems.




ANSWER 3

Score 6


Trick with:

au GUIEnter * simalt ~x

depends on Windows language.

For my Polish version works:

au GUIEnter * simalt ~s

Where s comes from Mak_s_ymalizuj.

So if ~x doesn't work press ALT+SPACE to open Window menu and check shortcut for Ma_x_imize Window menu option.




ANSWER 4

Score 4


You can use maximize.dll plugin for fullscreen veiw on Vim (if you are using Windows). Just copy maximize.dll into vimdirectory/plugin folder.