Maybe this is because this issue is from 2011, but I'm not finding it works for my JRuby usage. Thanks a lot for the info, that is an amazing speed improvement for me! discussion #9 Heck, you could probably even get away with: if !empty($MY_RUBY_HOME) That also eliminates the dependence on the shell. I'd do if !empty(matchstr($MY_RUBY_HOME, 'jruby')) G:ruby_path is supposed to be comma separated (although spaces do work for backwards compatibility reasons). Let g:ruby_path=system('echo $MY_RUBY_HOME/lib/ruby/')ĭo you see anything wrong with this? discussion #7 Do I need to compile vim again or is there any way to fix this. This is my workaround: if !empty(matchstr(system('rvm current'), 'jruby')) Referenced from: /usr/local/Cellar/macvim/8.0-134/MacVim.app/Contents/bin/./MacOS/Vim. If that still isn't enough, you can disable the load path querying entirely by setting g:ruby_path in your vimrc. sudo cp /usr/local/Cellar/vim/7.4.712 /usr/bin/vim. #Cellar macvim install#My Mac currently reports that it takes about 125 ms, a significant improvement over what you're seeing. brew install macvim -with-cscope -with-lua -HEAD brew uninstall vim brew install vim -with-lua. Just days ago, I significantly improved the speed of this by dropping the querying of Ruby Gems. arch x8664 -arch arm64 -I/usr/local/Cellar/libsodium/1.0.181/include -DREENTRANT. The delay is attributable to ftplugin/ruby.vim querying the Ruby load path. I have installed MacVim on OS X 12.5 (Monterey) and have the Lisp. discussion #4Īctually, I realized that the slowdown was happening because of another plugin: syntastic. Reply to this email directly or view it on GitHub:Īre you using jruby? I definitely see a slowdown when I'm using jruby with rvm. Your output correctly, taking the least amount of time to load of theĪh you are right I misread the output indeed, so it isįtplugin/ruby.vim that is taking a while to load. Is taking a long time? The indent/ruby.vim file is, if I understand vimrc is the most commonly used configuration file for vim. Here is some relevant output where you can see how long it takes to load and when it jumps on loading the indent file:Ģ19.092 003.356 003.356: sourcing /Users/markmulder/.vim/syntax/ruby.vimĪm I missing something, or do you mean that the ftplugin/ruby.vim file /usr/local/Cellar/macvim/8.0-133/MacVim.app/Contents/Resources/vim. Here is some relevant output where you can see how long it takes to load and when it jumps on loading the indent file: 219.092 003.356 003.356: sourcing /Users/markmulder/.vim/syntax/ruby.vimĢ19.882 000.071 000.071: sourcing /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/syntax/ruby.vimĢ20.841 000.622 000.622: sourcing /Users/markmulder/.vim/indent/ruby.vimĢ21.398 000.054 000.054: sourcing /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/indent/ruby.vimĨ89.381 667.747 667.747: sourcing /Users/markmulder/.vim/ftplugin/ruby.vimĨ90.520 000.138 000.138: sourcing /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/ftplugin/ruby.vim /usr/local/Cellar/macvim/7.4-107/MacVim.app/Contents/MacOS/MacVim sublimeProg /Applications/Sublime Text.app/Contents/SharedSupport/bin/subl. I was just wondering if others are experiencing this as well. In my situation loading the ruby indent file is taking a very long time. I've been trying to see what could cause it with the -startuptime flag: mvim -startuptime vim.out file.rb The last item ('Update Pasteboard immediately when new text is selected') is not selected by default which I didn't know was necessary in order to have vim copy to clipboard.When I open a ruby file it takes a (relatively) very long while before Vim is fully loaded. to all use the same Vim distribution as your MacVim. This also removes the need to create any aliases and also changes your vi, vim, etc. in /usr/local/bin (all symlinked to the copy in the Cellar). After you've installed it, make sure that your preference pane is set up like this (this step is vital!): brew install macvim -with-override-system-vim That will provide mvim, vim, vi, view, etc. The solution to this is to run XQuartz (installer for it is there). Since you're running OS X, you don't have an X11 server running. The reason for this is because I can then forward my X11 session to the systems I ssh into and have Vim on those systems copy to my clipboard! This works great in a Vagrant setup as welll, you just need to set _x11 to true. I prefer to run my Vim in conjunction with the X11 server, though. So at this point, you have clipboard support and it should be yanking to your clipboard. This also removes the need to create any aliases. " yank to clipboard if has ( "clipboard" ) set clipboard =unnamed " copy to the system clipboard if has ( "unnamedplus" ) " X11 supportĮndif endif (optional) Running XQuartz X11 server That will provide mvim, vim, vi, view, etc.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |