GVim 7.3 in full screen

I use a script to open gVim in full screen, downloaded from here: http://www.vim.org/scripts/script.php?script_id=2596 .

I also added this line to the startup settings:

:call libcallnr("gvimfullscreen.dll", "ToggleFullScreen", 0) 

When starting gVim with this parameter, I get the following error:

 Error detected while processing _virmc: E364: Library call failed for "ToggleFullScreen()" 

Is there anything else I need to do with the files from this script? If I need to compile it somehow, I would like someone to guide me through this process, as I'm pretty new to Vim. Thanks!

Edit: I am running Windows 7

+6
source share
5 answers

I think you mean ~/.vimrc or ~/.gvimrc with "startup settings". When this is done, the GUI is not yet initialized. Try to delay execution with autocmd:

 :autocmd GUIEnter * call libcallnr("gvimfullscreen.dll", "ToggleFullScreen", 0) 
+3
source

It does not work if you put this call string in your vimrc . It should be called after Wim has finished loading. I suggest using this mapping from the readme file:

 map <F11> <Esc>:call libcallnr("gvimfullscreen.dll", "ToggleFullScreen", 0)<CR> 

It worked for me.

+2
source

I had the same problem when I installed this script through Vundle .
He solved the problem:

Copy the DLL to the folder where GVIM.EXE is located.

+2
source

This is not a direct answer, but after a long search for a solution, I decided that the best way to run Vim on Windows is through Cygwin through the (included) mintty terminal. It has an authentic full screen and even transparencies!

+1
source

An alternative to copying gvimfullscreen.dll to the executable directory is to specify the path to the file, for example:

 call libcallnr(expand("$VIM") . "/bundle/gvimfullscreen_win32/gvimfullscreen.dll", "ToggleFullScreen", 0) 

In this example, I use $VIM and the bundle directory, but you can change it to the full path or use another variable / path that works best for you.

0
source

All Articles