-
-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strange text at the top of vim when starting it #579
Comments
I don't know what this could be. You could try commenting out portions of |
Hi Tim, first off thanks for all your amazing contributions to the VIM community! I'm setting this weird text glob on launch too, screenshot below. Tried as suggested and the issue disappears if I comment the call to Hope that helps?! |
It's a start, but narrower would be more actionable. You may need to dive into the |
Interestingly, in Lines 2804 to 2806 in 03a5c3e
Replacing Hope that helps? |
That maps to |
This seems to be an issue with vim-bundler and the If I comment out the index 45c2e44..8446f72 100644
--- a/plugin/bundler.vim
+++ b/plugin/bundler.vim
@@ -395,7 +395,8 @@ function! s:project_paths(...) dict abort
exe chdir s:fnameescape(self.real())
if empty(gem_paths)
- let gem_paths = split(system(prefix.'ruby -rrbconfig -rrubygems -e '.s:shellesc('print(([RbConfig::CONFIG["ruby_version"]] + Gem.path).join(%(;)))')), ';')
+ " let gem_paths = split(system(prefix.'ruby -rrbconfig -rrubygems -e '.s:shellesc('print(([RbConfig::CONFIG["ruby_version"]] + Gem.path).join(%(;)))')), ';')
+ let gem_paths = ['2.6.0', '/Users/mwoods/.gem/ruby/2.6.0', '/Users/mwoods/.rbenv/gems/2.6.0']
let abi_version = empty(gem_paths) ? '' : remove(gem_paths, 0)
else``` |
Does this happen with any |
No, adding index 45c2e44..e07c007 100644
--- a/plugin/bundler.vim
+++ b/plugin/bundler.vim
@@ -395,7 +395,9 @@ function! s:project_paths(...) dict abort
exe chdir s:fnameescape(self.real())
if empty(gem_paths)
- let gem_paths = split(system(prefix.'ruby -rrbconfig -rrubygems -e '.s:shellesc('print(([RbConfig::CONFIG["ruby_version"]] + Gem.path).join(%(;)))')), ';')
+ call system('true')
+ " let gem_paths = split(system(prefix.'ruby -rrbconfig -rrubygems -e '.s:shellesc('print(([RbConfig::CONFIG["ruby_version"]] + Gem.path).join(%(;)))')), ';')
+ let gem_paths = ['2.6.0', '/Users/mwoods/.gem/ruby/2.6.0', '/Users/mwoods/.rbenv/gems/2.6.0']
let abi_version = empty(gem_paths) ? '' : remove(gem_paths, 0)
else |
Ok, so this seems to be some vim weirdness... adding a call to |
Might be a bad shell config. Try |
Sticking this at the bottom of my
|
Adding |
It could be worked around by using jobs, which would be an improvement anyways, but it will take more than a one-liner. |
Running shell commands via a call to system() within a user defined function on vim startup causes weird text to be written to the screen, on MacOS/bash/iTerm. See tpope/vim-rails#579 At some point I'll probably delve into this some more and try to find the root cause, but for now just work around it by disabling running both rails and projectionist VimEnter autocmds which trigger the issue.
This problem occurs when I uncomment vim-rails in .vimrc and that I restart Vim without opening a file. I just installed vim.rails with bundler.vim and dispatch.vim
this weird text :`$r2 q^[^[[?12;4$y appear next to the '1' of the first line.
It seems the string is not really there. As soon as the space it occupy is interacted with, it just vanish and the space previously occupied by the char(s) behave normaly.
Vim 8.2.2995, vim-rails installed with vim-plug.
The text was updated successfully, but these errors were encountered: