drmikehenry / vim-fontsize

Adjust Gvim font size via keypresses
42 stars 5 forks source link

Broken in Vim8 #6

Closed xrasto closed 7 years ago

xrasto commented 7 years ago

No resizing effect in vim 8. command line after completed operation: row 1; vim 7 row 2; vim 8

12: FONTNAME:h12:cANSI:qDRAFT (Done) ??: FONTNAME:h12:cANSI:qDRAFT (Done)

drmikehenry commented 7 years ago

It looks like you are on Windows; is that correct? Which version of Vim specifically are you running (use :version to get 8.0.xxx version number).

It's working correctly for me. Have you set a guifont value manually? What is the output of :set guifont?? Try setting guifont to some know font that has multiple font sizes available. One handy way to do that is with :set guifont=*, which lets you browse your available fonts and guarantees a properly set value. Once a valid font is set, re-try the plugin.

xrasto commented 7 years ago

Vim version: version 8.0.41

I entered the issue from windows machine at home.

I use several linux mint machines at work and at home. The same result , Vim ver 8 seems to be the common denominator. Tried disabling of every bundle execpt vim-fontsize, same result.

I set font in .vimrc with:

set guifont=Droid\ Sans\ Mono\ for\ Powerline\ 12

Output from |:set guifont:|

||guifont=Droid Sans Mono for Powerline 12

I tried|:set guifont=*|

and choose Terminus, same result.

It's good to hear your plugin is usable in Vim 8, I will continue to eliminate possible culprits, one thing I haven't tried is dismantling my (overly complex) .vimrc.

Best regards

/Torgny

Den 2016-10-28 kl. 13:50, skrev Michael Henry:

It looks like you are on Windows; is that correct? Which version of Vim specifically are you running (use |:version| to get 8.0.xxx version number).

It's working correctly for me. Have you set a |guifont| value manually? What is the output of |:set guifont?|? Try setting |guifont| to some know font that has multiple font sizes available. One handy way to do that is with |:set guifont=*|, which lets you browse your available fonts and guarantees a properly set value. Once a valid font is set, re-try the plugin.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/drmikehenry/vim-fontsize/issues/6#issuecomment-256901072, or mute the thread https://github.com/notifications/unsubscribe-auth/AFPCpofNAeZwAtiOu3IuvfxPRAwEFKw4ks5q4eFvgaJpZM4KizaG.

version VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Oct 16 2016 15:35:34) Inkluderade patchar: 1-41 Modifierad av pkg-vim-maintainers@lists.alioth.debian.org Kompilerad av pkg-vim-maintainers@lists.alioth.debian.org Enorm version with GTK3 GUI. Funktioner inkluderade (+) eller inte (-): +acl +dialog_con_gui +job +mouse_sgr +rightleft +user_commands +arabic +diff +jumplist -mouse_sysmouse +ruby +vertsplit +autocmd +digraphs +keymap +mouse_urxvt +scrollbind +virtualedit +balloon_eval +dnd +lambda +mouse_xterm +signs +visual +browse -ebcdic +langmap +multi_byte +smartindent +visualextra ++builtin_terms +emacs_tags +libcall +multi_lang +startuptime +viminfo +byte_offset +eval +linebreak -mzscheme +statusline +vreplace +channel +ex_extra +lispindent +netbeans_intg -sun_workshop +wildignore +cindent +extra_search +listcmds +num64 +syntax +wildmenu +clientserver +farsi +localmap +packages +tag_binary +windows +clipboard +file_in_path +lua +path_extra +tag_old_static +writebackup +cmdline_compl +find_in_path +menu +perl -tag_any_white +X11 +cmdline_hist +float +mksession +persistent_undo +tcl -xfontset +cmdline_info +folding +modify_fname +postscript +termguicolors +xim +comments -footer +mouse +printer +terminfo +xpm +conceal +fork() +mouseshape +profile +termresponse +xsmp_interact +cryptv +gettext +mouse_dec -python +textobjects +xterm_clipboard +cscope -hangul_input +mouse_gpm +python3 +timers -xterm_save +cursorbind +iconv -mouse_jsbterm +quickfix +title +cursorshape +insert_expand +mouse_netterm +reltime +toolbar system-vimrc-fil: "$VIM/vimrc" användar-vimrc-fil: "$HOME/.vimrc" Andra användar-vimrc-fil: "~/.vim/vimrc" användar-exrc-fil: "$HOME/.exrc" system-gvimrc-fil: "$VIM/gvimrc" användar-gvimrc-fil: "$HOME/.gvimrc" Andra användar-gvimrc-fil: "~/.vim/gvimrc" defaults file: "$VIMRUNTIME/defaults.vim" systemmenyfil: "$VIMRUNTIME/menu.vim" reserv för $VIM: "/usr/share/vim" Kompilering: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-3.0 -I/usr/i nclude/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbu s-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/mirclient -I/usr/includ e/mircommon -I/usr/include/mircookie -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbu zz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/i nclude/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/in clude/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wdate-time -g -O2 -fPIE -fstack-protector- strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Länkning: gcc -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-ex port-dynamic -Wl,-E -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio- 2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lnsl -lselinu x -lacl -lattr -lgpm -ldl -L/usr/lib -llua5.2 -Wl,-E -fstack-protector-strong -L/usr/local/lib -L/us r/lib/x86_64-linux-gnu/perl/5.22/CORE -lperl -ldl -lm -lpthread -lcrypt -L/usr/lib/python3.5/config-3.5 m-x86_64-linux-gnu -lpython3.5m -lpthread -ldl -lutil -lm -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz -lpthread -lieee -lm -lruby-2.3 -lpthread -lgmp -ldl -lcrypt -lm

drmikehenry commented 7 years ago

I tested on Windows with Gvim 8.0.51 and Linux with Gvim 8.0.52, and both work for me. One way on Linux to test with just fontsize in isolation is to create a new directory such as fakehome containing a .vim directory, then copy the contents of the fontsize directory into .vim and run with a new value for $HOME, something like this (using -N to set nocompatible):

mkdir -p ~/tmp/fakehome/.vim
cp -a ~/.vim/bundle/vim-fontsize/* ~/tmp/fakehome/.vim
HOME=~/tmp/fakehome gvim -N

You can demonstrate that none of your plugins or .vimrc are being used by examining the output from :scriptnames, which should show only files that ship with Vim in addition to fontsize.vim. When I do the above steps, fontsize works for me on my Linux machine.

If the above test works for you as well, then as you suggest you might need to selectively comment out parts of your .vimrc until you find what's causing the problem. Let me know what you find out, in case there's something that fontsize should be doing to work with a broader array of Vim settings.

drmikehenry commented 7 years ago

Since this is working for me with Vim 8.0, I'm closing this ticket for now, but feel free to re-open it if you learn anything more.