I'm moving my code from my mac to my linux laptop - the reason? Â Developing on my mac looks like this:
 developing on my linux looks like this:Â
On the Mac i used Textmate, but its mac only. At first i used gedit and made it look a lot like Textmate http://1b.ag/x1m and its great - really great, but its still in the GUI - i need a distraction free place to code, somewhere way over in the <Ctrl><alt><f1> of ubuntu - so its gotta be vim.
The problem is  I am trying to make vim beautiful like Textmate for my brutish hacking at Ruby.  Vim can be a daunting place
This looks like just what i am after: http://swemoney.com/post/4254324066/more-ruby-on-rails-with-ubuntu-rails-vim but it, as is often the way, all falls down at the first hurdle:
ERROR: Could not find a valid gem 'vim-ruby' (>= 0) in any repositoryi
The Solution: http://shinodogg.com/?p=3334 - My Japanese has gotten a little rusty of late** but its pretty easy to follow, I put up the following for anyone else googling this or to remind myself after i drunkenly format my machine. Again.
toast@buntubox:~$ git clone http://github.com/vim-ruby/vim-ruby.git Cloning into vim-ruby... remote: Counting objects: 3917, done. remote: Compressing objects: 100% (1351/1351), done. remote: Total 3917 (delta 2345), reused 3848 (delta 2304) Receiving objects: 100% (3917/3917), 488.52 KiB | 396 KiB/s, done. Resolving deltas: 100% (2345/2345), done.
toast@buntubox:~$ cd vim-ruby/ toast@buntubox:~/vim-ruby$ git checkout vim7.3 Note: checking out 'vim7.3'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name HEAD is now at c4d3ca9... Whitespace fix
toast@buntubox:~/vim-ruby$ rake package (in /home/toast/vim-ruby) NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#has_rdoc= called from /home/toast/vim-ruby/Rakefile:31 . mkdir -p etc/package mkdir -p etc/package/vim-ruby-2011.04.07 rm -f etc/package/vim-ruby-2011.04.07/ChangeLog ln ChangeLog etc/package/vim-ruby-2011.04.07/ChangeLog rm -f etc/package/vim-ruby-2011.04.07/CONTRIBUTORS ln CONTRIBUTORS etc/package/vim-ruby-2011.04.07/CONTRIBUTORS rm -f etc/package/vim-ruby-2011.04.07/FAQ ln CONTRIBUTORS etc/package/vim-ruby-2011.04.07/CONTRIBUTORS rm -f etc/package/vim-ruby-2011.04.07/FAQ ln FAQ etc/package/vim-ruby-2011.04.07/FAQ rm -f etc/package/vim-ruby-2011.04.07/INSTALL ln INSTALL etc/package/vim-ruby-2011.04.07/INSTALL rm -f etc/package/vim-ruby-2011.04.07/NEWS ln NEWS etc/package/vim-ruby-2011.04.07/NEWS rm -f etc/package/vim-ruby-2011.04.07/README ln README etc/package/vim-ruby-2011.04.07/README mkdir -p etc/package/vim-ruby-2011.04.07/bin rm -f etc/package/vim-ruby-2011.04.07/bin/vim-ruby-install.rb ln bin/vim-ruby-install.rb etc/package/vim-ruby-2011.04.07/bin/vim-ruby-install.rb mkdir -p etc/package/vim-ruby-2011.04.07/doc rm -f etc/package/vim-ruby-2011.04.07/doc/ft-ruby-syntax.txt ln doc/ft-ruby-syntax.txt etc/package/vim-ruby-2011.04.07/doc/ft-ruby-syntax.txt rm -f etc/package/vim-ruby-2011.04.07/doc/ft-ruby-omni.txt ln doc/ft-ruby-omni.txt etc/package/vim-ruby-2011.04.07/doc/ft-ruby-omni.txt mkdir -p etc/package/vim-ruby-2011.04.07/autoload rm -f etc/package/vim-ruby-2011.04.07/autoload/rubycomplete.vim ln autoload/rubycomplete.vim etc/package/vim-ruby-2011.04.07/autoload/rubycomplete.vim mkdir -p etc/package/vim-ruby-2011.04.07/compiler rm -f etc/package/vim-ruby-2011.04.07/compiler/rspec.vim ln compiler/rspec.vim etc/package/vim-ruby-2011.04.07/compiler/rspec.vim rm -f etc/package/vim-ruby-2011.04.07/compiler/eruby.vim ln compiler/eruby.vim etc/package/vim-ruby-2011.04.07/compiler/eruby.vim rm -f etc/package/vim-ruby-2011.04.07/compiler/rubyunit.vim ln compiler/rubyunit.vim etc/package/vim-ruby-2011.04.07/compiler/rubyunit.vim rm -f etc/package/vim-ruby-2011.04.07/compiler/ruby.vim ln compiler/ruby.vim etc/package/vim-ruby-2011.04.07/compiler/ruby.vim mkdir -p etc/package/vim-ruby-2011.04.07/ftdetect rm -f etc/package/vim-ruby-2011.04.07/ftdetect/ruby.vim ln ftdetect/ruby.vim etc/package/vim-ruby-2011.04.07/ftdetect/ruby.vim mkdir -p etc/package/vim-ruby-2011.04.07/ftplugin rm -f etc/package/vim-ruby-2011.04.07/ftplugin/eruby.vim ln ftplugin/eruby.vim etc/package/vim-ruby-2011.04.07/ftplugin/eruby.vim rm -f etc/package/vim-ruby-2011.04.07/ftplugin/ruby.vim ln ftplugin/ruby.vim etc/package/vim-ruby-2011.04.07/ftplugin/ruby.vim mkdir -p etc/package/vim-ruby-2011.04.07/indent rm -f etc/package/vim-ruby-2011.04.07/indent/eruby.vim ln indent/eruby.vim etc/package/vim-ruby-2011.04.07/indent/eruby.vim rm -f etc/package/vim-ruby-2011.04.07/indent/ruby.vim ln indent/ruby.vim etc/package/vim-ruby-2011.04.07/indent/ruby.vim mkdir -p etc/package/vim-ruby-2011.04.07/syntax rm -f etc/package/vim-ruby-2011.04.07/syntax/eruby.vim ln syntax/eruby.vim etc/package/vim-ruby-2011.04.07/syntax/eruby.vim rm -f etc/package/vim-ruby-2011.04.07/syntax/ruby.vim ln syntax/ruby.vim etc/package/vim-ruby-2011.04.07/syntax/ruby.vim cd etc/package tar zcvf vim-ruby-2011.04.07.tgz vim-ruby-2011.04.07 vim-ruby-2011.04.07/ vim-ruby-2011.04.07/autoload/ vim-ruby-2011.04.07/autoload/rubycomplete.vim vim-ruby-2011.04.07/CONTRIBUTORS vim-ruby-2011.04.07/syntax/ vim-ruby-2011.04.07/syntax/eruby.vim vim-ruby-2011.04.07/syntax/ruby.vim vim-ruby-2011.04.07/INSTALL vim-ruby-2011.04.07/indent/ vim-ruby-2011.04.07/indent/eruby.vim vim-ruby-2011.04.07/indent/ruby.vim vim-ruby-2011.04.07/bin/ vim-ruby-2011.04.07/bin/vim-ruby-install.rb vim-ruby-2011.04.07/compiler/ vim-ruby-2011.04.07/compiler/rspec.vim vim-ruby-2011.04.07/compiler/eruby.vim vim-ruby-2011.04.07/compiler/rubyunit.vim vim-ruby-2011.04.07/compiler/ruby.vim vim-ruby-2011.04.07/FAQ vim-ruby-2011.04.07/NEWS vim-ruby-2011.04.07/doc/ vim-ruby-2011.04.07/doc/ft-ruby-syntax.txt vim-ruby-2011.04.07/doc/ft-ruby-omni.txt vim-ruby-2011.04.07/ftplugin/ vim-ruby-2011.04.07/ftplugin/eruby.vim vim-ruby-2011.04.07/ftplugin/ruby.vim vim-ruby-2011.04.07/ftdetect/ vim-ruby-2011.04.07/ftdetect/ruby.vim vim-ruby-2011.04.07/ChangeLog vim-ruby-2011.04.07/README cd - cd etc/package zip -r vim-ruby-2011.04.07.zip vim-ruby-2011.04.07 adding: vim-ruby-2011.04.07/ (stored 0%) adding: vim-ruby-2011.04.07/autoload/ (stored 0%) adding: vim-ruby-2011.04.07/autoload/rubycomplete.vim (deflated 73%) adding: vim-ruby-2011.04.07/CONTRIBUTORS (deflated 37%) adding: vim-ruby-2011.04.07/syntax/ (stored 0%) adding: vim-ruby-2011.04.07/syntax/eruby.vim (deflated 68%) adding: vim-ruby-2011.04.07/syntax/ruby.vim (deflated 78%) adding: vim-ruby-2011.04.07/INSTALL (deflated 56%) adding: vim-ruby-2011.04.07/indent/ (stored 0%) adding: vim-ruby-2011.04.07/indent/eruby.vim (deflated 58%) adding: vim-ruby-2011.04.07/indent/ruby.vim (deflated 69%) adding: vim-ruby-2011.04.07/bin/ (stored 0%) adding: vim-ruby-2011.04.07/bin/vim-ruby-install.rb (deflated 64%) adding: vim-ruby-2011.04.07/compiler/ (stored 0%) adding: vim-ruby-2011.04.07/compiler/rspec.vim (deflated 45%) adding: vim-ruby-2011.04.07/compiler/eruby.vim (deflated 50%) adding: vim-ruby-2011.04.07/compiler/rubyunit.vim (deflated 43%) adding: vim-ruby-2011.04.07/compiler/ruby.vim (deflated 50%) adding: vim-ruby-2011.04.07/FAQ (deflated 60%) adding: vim-ruby-2011.04.07/NEWS (deflated 60%) adding: vim-ruby-2011.04.07/doc/ (stored 0%) adding: vim-ruby-2011.04.07/doc/ft-ruby-syntax.txt (deflated 51%) adding: vim-ruby-2011.04.07/doc/ft-ruby-omni.txt (deflated 55%) adding: vim-ruby-2011.04.07/ftplugin/ (stored 0%) adding: vim-ruby-2011.04.07/ftplugin/eruby.vim (deflated 65%) adding: vim-ruby-2011.04.07/ftplugin/ruby.vim (deflated 68%) adding: vim-ruby-2011.04.07/ftdetect/ (stored 0%) adding: vim-ruby-2011.04.07/ftdetect/ruby.vim (deflated 70%) adding: vim-ruby-2011.04.07/ChangeLog (deflated 74%) adding: vim-ruby-2011.04.07/README (deflated 56%) cd - Successfully built RubyGem cd - Successfully built RubyGem Name: vim-ruby Version: 2011.04.07 File: vim-ruby-2011.04.07.gem mv vim-ruby-2011.04.07.gem etc/package/vim-ruby-2011.04.07.gem
toast@buntubox:~/vim-ruby$ gem install etc/package/vim-ruby-2011.04.07 Successfully installed vim-ruby-2011.04.07 1 gem installed Installing ri documentation for vim-ruby-2011.04.07... Installing RDoc documentation for vim-ruby-2011.04.07...
toast@buntubox:~/vim-ruby/bin$ ls -l total 16 -rwxr-xr-x 2 toast toast 13171 2011-04-07 13:54 vim-ruby-install.rb
then run that ting. It will check with you whether your want this in your home or shared for all:
toast@buntubox:~/vim-ruby/bin$ ruby vim-ruby-install.rb Possible Vim installation directories: 1) /home/toast/.vim 2) /usr/share/vim/vimfiles Please select one (or anything else to specify another directory): 1 mkdir -p -m 755 /home/toast/.vim/autoload autoload/rubycomplete.vim -> /home/toast/.vim/autoload/rubycomplete.vim mkdir -p -m 755 /home/toast/.vim/compiler compiler/eruby.vim -> /home/toast/.vim/compiler/eruby.vim compiler/ruby.vim -> /home/toast/.vim/compiler/ruby.vim compiler/rubyunit.vim -> /home/toast/.vim/compiler/rubyunit.vim mkdir -p -m 755 /home/toast/.vim/ftdetect ftdetect/ruby.vim -> /home/toast/.vim/ftdetect/ruby.vim mkdir -p -m 755 /home/toast/.vim/ftplugin ftplugin/eruby.vim -> /home/toast/.vim/ftplugin/eruby.vim ftplugin/ruby.vim -> /home/toast/.vim/ftplugin/ruby.vim mkdir -p -m 755 /home/toast/.vim/indent indent/eruby.vim -> /home/toast/.vim/indent/eruby.vim indent/ruby.vim -> /home/toast/.vim/indent/ruby.vim mkdir -p -m 755 /home/toast/.vim/syntax syntax/eruby.vim -> /home/toast/.vim/syntax/eruby.vim syntax/ruby.vim -> /home/toast/.vim/syntax/ruby.vim
Thats it installed... it was now and only now i decided to check to see what this did when i saw that it was last updated in.... 2002 Balls. Oh well - Rails.vim looks great!Â
* Image from the rather wonderful http://fuckyeahterminals.tumblr.com/
**>ăăăŤăĄăŻç§ăŽćĽćŹäşşăŽĺäşşăŻăăąăŤăćăŽăăĄăłăă䟸äťä¸ćç§ăŽćăč¨ĺ
ĽăăŚăă ăă Â