Vim Tips Wiki
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
  +
For those who has upgraded ubuntu to version 13.04 and got problems with his favorite text editor.
{{TipProposed
 
  +
|id=0
 
  +
The problem: cannot make to work vim with command-t plugin
|previous=0
 
|next=0
 
|created=August 3, 2013
 
|complexity=basic
 
|author=Eugenekorpan
 
|version=7.0
 
|subpage=/2013
 
|category1=
 
|category2=
 
}}
 
After upgrading Ubuntu to version 13.04, Vim may not work with the command-t plugin.
 
   
 
First I tried an old way
 
First I tried an old way
<pre>
 
sudo apt-get install vim-gnome
 
</pre>
 
   
 
sudo apt-get install vim-gnome
by default it installs Vim version to 7.3 with the patch about 545
 
  +
 
by default it installs vim version to 7.3 with the patch about 545
 
when try to use command-t get error
 
when try to use command-t get error
<pre>
 
Vim: Caught deadly signal SEGV
 
Vim: Finished.
 
Segmentation fault
 
</pre>
 
   
 
Vim: Caught deadly signal SEGV
Found out this is due to bug in Vim.
 
 
Vim: Finished.
   
 
Segmentation fault
Tried to build latest Vim version from source according to [https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source these instructions].
 
   
 
found out this is due to bug in vim
Got problem when compiling Vim with ruby support (and gvim).
 
   
  +
tried to apply a patch - no luck
Checked many posts and all of them say to use mercurial (don't know why).
 
   
  +
tried to build latest vim version from source according to
Solution:
 
 
https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source
   
 
got problem when compiling vim with ruby support (and gvim btw)
Build Vim 7.4 from source using git mirror. Don't know how and why but with sources from git it worked for me
 
<pre>
 
git clone https://github.com/b4winckler/vim
 
./configure --with-features=huge --enable-rubyinterp --enable-gui=gnome2
 
make
 
sudo make install
 
</pre>
 
   
 
checked many posts and all of them say to use mercurial (don't know why)
After that I've got Vim 7.4b, gvim and with ruby support.
 
   
  +
SOLUTION:
Now ready to install command-t.
 
   
  +
build vim 7.4 from source using git mirror
I installed it with vundle.vim (I think no matter how to install it).
 
 
don't know how and why but with sources from git it worked for me
   
 
git clone https://github.com/b4winckler/vim
Go to plugin directory and according to installation instructions
 
 
./configure --with-features=huge --enable-rubyinterp --enable-gui=gnome2
<pre>
 
 
make
cd ~/.vim/ruby/command-t
 
 
sudo make install
</pre>
 
  +
 
after that I've got vim 7.4b, gvim and with ruby support
  +
 
now ready to install command-t
  +
 
I installed it with vundle.vim (I think no matter how to install it)
  +
 
go to plugin directory and according to installation instructions
  +
 
cd ~/.vim/ruby/command-t
   
 
(in a case with vundle it is in ~/.vim/bundle/Command-T/ruby/command-t)
 
(in a case with vundle it is in ~/.vim/bundle/Command-T/ruby/command-t)
<pre>
 
ruby extconf.rb
 
make
 
</pre>
 
   
 
ruby extconf.rb
Important: Run those with ruby 1.8.7. Didn't play with other versions but with 2.0.0 definitely didn't work for me Could be problems with RVM.
 
 
make
   
  +
IMPORTANT: run those with ruby 1.8.7.
Even if you explicitly set version to 1.8.7 it still uses 2.0.0. Probably due to default version. I tried to change default version bu 1.8.7 but no luck.
 
 
Didn't play with other versions but with 2.0.0 definitely didn't work for me
   
  +
Could be problems with RVM
Solution:
 
  +
<pre>
 
 
Even if you explicitly set version to 1.8.7 it still uses 2.0.0. Probably due to default version.
rvm uninstall 2.0.0
 
  +
I tried to change default version bu 1.8.7 but no luck
</pre>
 
 
Solution:
 
rvm uninstall 2.0.0
   
 
Conclusion:
 
Conclusion:
*Ubuntu 13.04
+
- Ubuntu 13.04,
*Build Vim from sources
+
- build vim from sources,
*Use Vim 7.4b version
+
- use vim 7.4b version
*Use git repository to fetch sources
+
- use git repository to fetch sources,
*Compile with ruby support
+
- compile with ruby support
*Compile with gnome gui support
+
- compile with gnome gui support
*Use Ruby 1.8.7
+
- use ruby 1.8.7
  +
  +
Hope it will be helpful for somebody
   
 
==Comments==
 
==Comments==
 
"checked many posts and all of them say to use mercurial (don't know why)"
 
"checked many posts and all of them say to use mercurial (don't know why)"
 
:Probably because the official Vim repository is in Mercurial at http://vim.googlecode.com. The Github repository you cloned is only a mirror of the official Mercurial repository. But if you're more familiar with Git, then it should work just as well. It is just not updated as frequently. --[[User:Fritzophrenic|Fritzophrenic]] ([[User talk:Fritzophrenic|talk]]) 14:58, August 5, 2013 (UTC)
 
:Probably because the official Vim repository is in Mercurial at http://vim.googlecode.com. The Github repository you cloned is only a mirror of the official Mercurial repository. But if you're more familiar with Git, then it should work just as well. It is just not updated as frequently. --[[User:Fritzophrenic|Fritzophrenic]] ([[User talk:Fritzophrenic|talk]]) 14:58, August 5, 2013 (UTC)
  +
   
 
I went through Mercurial http://vim.googlecode.com, apt-get install vim-nox and vim-rails all of which where having a-lot of problems on ubuntu 13.04. Nerd tree would load the first file as a shared tab with 1 line showing. Also not all of my plugins would load. The repo here worked great thank you.
 
I went through Mercurial http://vim.googlecode.com, apt-get install vim-nox and vim-rails all of which where having a-lot of problems on ubuntu 13.04. Nerd tree would load the first file as a shared tab with 1 line showing. Also not all of my plugins would load. The repo here worked great thank you.
 
:Guys, the Mercurial repository contains EXACTLY THE SAME STUFF as the Github mirror. If one allowed you to compile and install but not the other, you did the other one WRONG somehow. --[[User:Fritzophrenic|Fritzophrenic]] ([[User talk:Fritzophrenic|talk]]) 13:58, August 28, 2013 (UTC)
 
:Guys, the Mercurial repository contains EXACTLY THE SAME STUFF as the Github mirror. If one allowed you to compile and install but not the other, you did the other one WRONG somehow. --[[User:Fritzophrenic|Fritzophrenic]] ([[User talk:Fritzophrenic|talk]]) 13:58, August 28, 2013 (UTC)
  +
[[Category:VimTip]]
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)

Template used on this page: