X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.vimrc;h=ad3a73ab4a326756403b8b0351c2634a4daa5368;hp=9b1c07f47a3692905f8eb0a61cfeafe28ec69a2a;hb=5454451f97a9e7762d25d22ea646e20bff55da92;hpb=8258aae3ed4e6059d22911a4ad7e41d40ebe9ac3 diff --git a/.vimrc b/.vimrc index 9b1c07f..ad3a73a 100644 --- a/.vimrc +++ b/.vimrc @@ -411,7 +411,9 @@ fun! Number(resize) "{{{2 endfun "}}}2 " Restore window size. -au Display VimLeave * if exists("g:oldcols") | call Resize_Columns("-", (&columns - g:oldcols)) | endif +if ! has("gui_running") + au Display VimLeave * if exists("g:oldcols") | call Resize_Columns("-", (&columns - g:oldcols)) | endif +endif " Map Makefile mode. au Mode BufEnter * if &ft == "make" | call MakeMode_map() | endif