Re: Speeding up cold startup
On Wednesday, December 11, 2013 3:00:43 AM UTC-8, Tony Mechelynck wrote: On Wednesday, December 11, 2013 7:42:43 AM UTC+1, Kevin Burke wrote: So I used binary search to track down the issue and narrowed it to this line in my vimrc: set rtp+=$GOROOT/misc/vim If $GOROOT is not set, vim gets very slow (for me 'Starting GUI' takes about 5.5 seconds). Otherwise macvim boots in about half a second, which isn't great, but is fast enough for me. I can produce more info if it'll be useful for debugging but you'll have to show me how. Try if $GOROOT != set rtp+=$GOROOT/misc/vim endif Or else, use the standard directories ($HOME/.vim and $HOME/.vim/after for user-private scripts, $VIM/vimfiles and $VIM/vimfiles/after for system-wide scripts not distributed with Vim, and $VIMRUNTIME — at the moment, normally $VIM/vim74 — for ONLY the files that come with Vim). These are the 'runtimepath' default. On Unix-like OSes, $VIM is usually /usr/local/share/vim but it may vary a little from one installation to the next; one factor may be whether you compiled Vim yourself or got it from the same source as your OS. One way to have it both ways if you don't need _different_ scripts in $GOROOT/misc/vim and $HOME/.vim is to symlink the latter to the former on installations where $GOROOT is defined. Best regards, Tony. -- The devout are always urged to seek the absolute truth with their hearts and not their minds. [Eric Hoffer, The True Believer] Hi Tony, Thanks! I guess I'm just curious why the start time slows down so dramatically if that variable is not defined. -- -- You received this message from the vim_mac maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups vim_mac group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_mac+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Speeding up cold startup
So I used binary search to track down the issue and narrowed it to this line in my vimrc: set rtp+=$GOROOT/misc/vim If $GOROOT is not set, vim gets very slow (for me 'Starting GUI' takes about 5.5 seconds). Otherwise macvim boots in about half a second, which isn't great, but is fast enough for me. I can produce more info if it'll be useful for debugging but you'll have to show me how. On Tuesday, October 15, 2013 12:43:52 PM UTC-7, björn wrote: On Tue, Oct 15, 2013 at 4:49 PM, Bee wrote: On Monday, October 14, 2013 10:46:47 PM UTC-7, Kevin Burke wrote: Are there any tricks I can use to speed up Macvim's cold startup? On my old old old PowerBook G3 Pismo 500 MHz MacVim 7.4.52, compiled from source, loads in 4 seconds ! Terminal vim, using the MacVim binary, loads in 1 second. .vimrc 28K .gvimrc 3K Try this from terminal to see where yours is slow: vim --startuptime starting.txt For comparison: on my 2010 MacBook Air it takes 15 ms to start console Vim and about 140 ms to start GUI Vim (as measured with vim -g -u NONE --startuptime start.txt). To me that is more than fast enough... Björn -- -- You received this message from the vim_mac maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups vim_mac group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_mac+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Speeding up cold startup
Hi, Are there any tricks I can use to speed up Macvim's cold startup? It takes maybe a second to load on my machine, when it's called via the mvim executable. The last post I could find about speeding up about Macvim was from 2008 - https://groups.google.com/forum/#!msg/vim_mac/bEC5e4BLb-4/nkMIsfsRygUJ... has any progress been made since then, or are there any outstanding areas that could be sped up? Best, Kevin -- -- You received this message from the vim_mac maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups vim_mac group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_mac+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Macvim slow with set list and Unicode listchars
Hi, I've been investigating a problem with Unicode listchars. My .vimrc looks like: show line endings set list set listchars=tab:▸\ ,eol:¬ When I open a file containing many tab characters, Macvim is extremely slow to scroll - holding down j yields a key repeat rate of about once per second. If I turn off list: set nolist Or, use a different tab listchar: set listchars=tab:+\ ,eol Scrolling suddenly becomes very fast. Here is information about my version: VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar 4 2013 10:46:00) MacOS X (unix) version Included patches: 1-754 Compiled by kevin@kevin-twilio-macbook.local Huge version with MacVim GUI. Features included (+) or not (-): +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +conceal +cryptv -cscope +cursorbind +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding -footer +fork() +fullscreen -gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname +mouse +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm +mouse_sgr -mouse_sysmouse +mouse_urxvt +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg +odbeditor +path_extra +perl +persistent_undo +postscript +printer +profile +python -python3 +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white +tcl +terminfo +termresponse +textobjects +title +toolbar +transparency +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset +xim -xsmp -xterm_clipboard -xterm_save system vimrc file: $VIM/vimrc user vimrc file: $HOME/.vimrc user exrc file: $HOME/.exrc system gvimrc file: $VIM/gvimrc user gvimrc file: $HOME/.gvimrc system menu file: $VIMRUNTIME/menu.vim fall-back for $VIM: /Applications/MacVim.app/Contents/Resources/vim Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -DMACOS_X_UNIX -no-cpp-precomp -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/System/Library/Frameworks/Tcl.framework/Headers -D_REENTRANT=1 -D_THREAD_SAFE=1 -D _DARWIN_C_SOURCE=1 Linking: clang -L. -L.-L/usr/local/lib -o Vim -framework Cocoa -framework Carbon -lncurses -liconv -framework Cocoa-fstack-protector -L/usr/local/lib -L/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc -framework Python -F/System/Library/Frameworks -framework Tcl -framework CoreFoundation -framework Ruby I am running on Mountain Lion. Let me know if I can do anything to help debug this issue further. -- -- You received this message from the vim_mac maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups vim_mac group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_mac+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
MacVim hanging on open file in new tab
I haven't been able to reproduce this consistently, but I get a behavior where opening a file in a new tab in MacVim fails. I started seeing this error maybe beginning about a week ago. Generally it happens after a terminal has been open for a while and I open a new tab, then try to load a file in the buffer with `:e`. The screen becomes unresponsive and does not respond to key commands. There is nothing on the screen when this happens. I can still open/ close the Macvim menus. Trying to close the window via the menu does nothing; I have to quit the app and restart. Here is a stack trace of the last 15 seconds or so before the hang: http://paste.pocoo.org/show/568246/ After the freeze the logging to terminal just stopped and the terminal prompt appeared again. Here are some possible culprits, ordered by how likely I think they are: - 3rd party plugins, including syntastic and rainbow highlights. - my .vimrc file. I tried putting echo's in to see if it was failing mid-load, but the .vimrc file loads fine. Also, the freeze only happens when I load the 3rd or 4th file into a buffer, and the vimrc doesn't look like it's running again. - using zsh. I'm not sure what about zsh would cause the freeze but it's possible. - editing files across a symbolic link - downloading Snow Leopard updates - currently running 10.6.8 with version 53 of MacVim. -- You received this message from the vim_mac maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
Re: Tab character ▸ leads to inconsistent line height
That fixed the problem. Thanks! On Nov 25, 5:12 am, björn bjorn.winck...@gmail.com wrote: On 24 November 2011 06:57, Kevin Burke wrote: In my .vimrc I have the following line: set listchars=tab:▸\ ,eol:¬ One annoying thing however is that MacVim does not like it when lines with tab characters are next to lines without tabs. See this screenshot for example: https://skitch.com/kburke/gmdwa/docsquickstarttutorialcontroller.php-... If you look closely you can see an extra space between the 1 and 0, and the 4 and 5 are squished too close together. This height problem persists for the whole line. Unsetting that option fixes the line spacing, but apparently only because dollar sign characters and ^I characters have the same height: https://skitch.com/kburke/gmdw5/router.php-projects-twilio-src-php-cs... What is actually going on in this case? Is there an easy fix to this problem? Try opening the advanced preferences and toggle the option for use experimental renderer. I'm guessing the problems go away if you enable the experimental renderer? (It is also much faster than the default renderer.) Björn -- You received this message from the vim_mac maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php