neontore.blogg.se

Vim ruby runner
Vim ruby runner









  1. #Vim ruby runner update#
  2. #Vim ruby runner full#

There are many directories that you can create in your plugin root path that will contain a special meaning for loading the plugin. Basic File Structure of Vim Pluginsįirst we'll take a look at the file structure that a modern Vim plugin should follow so that it can be installed using tools such as pathogen.vim or Vundle.

vim ruby runner

Learning VimScript in two days seemed like quite the challenge but I was up for it and after some initial research I decided to use Ruby to develop the plugin. In this article, I'll give you a brief overview and a starting point from which you can develop your own plugins for Vim using Ruby. I'm using vim 7.4.52 and none of these solutions worked for me.Īccording to this github comment on the issue ( ), foldmethod=syntax is responsible for the slowness.Īdding this to my. " Note: Relative number is quite slow with Ruby, so is cursorlineĪutocmd FileType ruby setlocal ts= 2 sts= 2 sw= 2 norelativenumber nocursorlineĪutocmd FileType ruby setlocal ts= 2 sts= 2 sw= 2 vimrc: " Ruby is an oddball in the family, use special spacing/rules Two things that will drastically help speed up Ruby syntax highlighting are disabling cursor line and relative number for Ruby (if you use those). If this is not solving your problem try to start vim without your vimrc to be sure that none of your current settings are screwing it up. You should set this tw options in your vimrc: set ttyfast

#Vim ruby runner update#

I will update this if I get the chance to try the bleeding edge version again. I haven't had a chance to try the absolute latest version, there was a commit last night that may help with this issue. Thanks to Houl, Dolio and dmedvinsky from #vim for help figuring it out. The speculation on #vim on freenode is that the ruby syntax files use something that is slower on the new regex engine.Īny version older than and including Vim 7.3.969 has the old regex engine.Īdd in set re=1 to your vimrc to force the old regex engine on any version newer (and don't forget to reload the file you're currently editing with :e). The solution to this problem turned out to be the regex engine that vim uses. The file in question is a rails controller, but like I've said, I can recreate it to some degree with most any file, but rails controllers see to be the worst. vimrc file that contains the single line syntax on with an empty ~/.vim folderĮDIT4 I uninstalled my compiled version of vim and any versions that I may have installed through apt, manually removed all vim stuff from my system, and I can run vim with vim -u NONE /path/to/file.rb then do :syn on and the issue will be there. I have tested a few other languages(php, c, python, vimL) and none experience any slowdown.ĮDIT: Just to clarify, I am running an ssh session with ssh then once inside the server I am doing vim file.rb.ĮDIT2: I just tried accessing the server directly and the slowness persists without ssh, I have updated to reflect that this isn't a problem with ssh.ĮDIT3: I can reproduce the issue with a.

#Vim ruby runner full#

I can post the full startupttime log for any file if that will help. I have tried running with all plugins disabled (I moved them all from ~/vim/bundle/PLUGINNAME to ~/vim/bundle/disabled/PLUGINNAME, is this correct?), set ruby path, set foldlevel to manual, disabled my colorscheme, nothing helps. vimrc file, I have tried a few different solutions to this problem. not really relevant anymoreĪs you can see in my. I have tried using mosh( ) and it doesn't help. Without syntax highlighting on the same ruby file as above 149.047 000. Haml/erb(they are basically the same) 268.818 000. This slowness isn't just on startup either, moving around and editing the file are both painfully slow. With a comparable length haml file, its about.

vim ruby runner

When I open any ruby file, startup takes about 2 seconds (timed with -startuptime). However, vim on this vps is very slow with ruby/haml files. I can reproduce this issue with the following.

vim ruby runner

Same plugins and same vimrc and no slowness on ruby files. I have cloned my vimrc and vim files onto my local ubuntu desktop and vim runs exactly as expected, no slowness on any files that I can find.

vim ruby runner

Today I decided to add in some syntax highlighting, autocomplete, and some other general plugins. I've been using vim over ssh to work for a week or two now and all has been going great.











Vim ruby runner