I have google search and found nothing on it. DO anyone know any tutorial that is about installing and use rails.vim in ubuntu?
From the website for rails.vim.
install details Extract the zip file
to ~/.vim (or vimfiles on Windows).
To use the help, see :help
add-local-help. In a nutshell,
:helptags ~/.vim/doc.
But I suggest you look into pathogen for managing your vim plugins. For directions on installing and usage check this blog post.
You can also follow this step-by-step recipe.
Related
I am building my Rails projects with Vim but I have had a horrible experience switching files. I have been reading about Ctags and I think this may help me have a better experience.
The problem is that I see so many different opinions on the configuration of Ctags and I'm not sure what to do. I also don't want to manually run a command every time files change so the index can be refreshed.
Is there a standard in the Rails community of Vim plugins for Ctags?
For rails development I suggest you use rails.vim. It provides a :Ctags command. See :h rails-:Ctags.
If you have fugitive.vim installed it will automatically look for tags in .git/tags. You can combine this with setting up ctags to run on 4 git hooks: post-commit, post-merge, post-checkout, and post-rewrite. You can follow Tim Pope's instructions in the article: Effortless Ctags with Git
Look into some tagging plugins like Gutentags or vim-easytags
You should check out vim-easytags
https://github.com/xolox/vim-easytags
Automated tag generation and syntax highlighting in Vim
I hope this question is suitable for this forum, I'm still learning what's deemed fit and what isn't. Anyway here is my question, a lot of places seem to state I need to install homebrew on my mac to install rails, do I really need to and what benefits does it offer to do so and for the development environment?
This question is pretty bad but I remember when I started programming that I had a similar question, so here we go:
How do you install stuff on your computer? Obviously you use the Mac App Store if you want something from Apple, and if you want to install Chrome just go the Google Chrome website etc.
But when you want some kind of programmer tool, let's say a compiler. How do you install this? Either you go to their website, download a tarball with the source code, compile it from scratch and bind the necessary environment variables. Or you are unlucky and the compiler has a bunch of dependencies so you have to download them first.
Then some geniuses thought that "Oh damn, that's a pain", so instead they created so called package managers, so now when I want Rails on my computer, I just installed it through the "gem" ruby package/dependency manager.
So you can install rails through the command "gem" (just google "ruby gem") and you'll see what it is, but I advise you to if you want to have a nice development environment where it's easy to install and uninstall stuff, use brew or macports.
I am new to vim, and I just followed this setup tutorial, but something went wrong. I am a ruby developer and I am not getting a a ruby highlighting syntax. I have installed janus, before with pathogen I had syntax highlighting but not know.
Also I am using the solarized theme the guy suggested but there is no difference now (in color) between folders and files in my terminal when listing a directory.
Could somebody tell me if I can install pathogen with janus? WIll this break my vim?
Thanks!
Don't install anything (and don't install Janus).
Run $ vimtutor in your terminal. As many times as needed (and don't install Janus).
Once you feel ready to use Vim for day-to-day coding, install MacVim which is built with a better feature set than the default Vim. It comes with a CLI executable so you can use it in your terminal and in tmux (and don't install Janus).
Install the vim-ruby package for better, more up-to-date Ruby support (and don't install Janus).
Don't install Janus. This thing is a pile of crap that will make your life overly complicated, hook you on plugins that may or may not be the best for you needs and prevent you from actually learning Vim properly in exchange of an artificially flattened learning curve.
Decide for a plugin/runtimepath management solution (VAM, vundle or plain Pathogen) and choose your plugins yourself according to your needs (and don't install Janus).
If you have problems with Solarized, take a look at their issue tracker and their wiki. It is fragile and you need some work to set it up correctly (and… you know the rest).
Hi am a Ruby on rails developer. I have done a project in ROR and currently its hosted in Ubuntu.Now the requires it to be changed to FreeBSD. As am entirely fresh to FreeBSD i would like to know more about how can configure or install it.
Any Reference Links ?
The simple answer to this question is:
Make sure you have the ports collection installed. See the handbook for details if you don't.
cd /usr/ports/www/rubygem-rails
sudo make install
If you have problems from there, ask specific questions.
I've directly downloaded the tar file from here onto my desktop for Mac OSX (which is what I'm using) and extracted its contents. Now I've read the following instructions on how to set it up, but honestly they're a bit too cryptic for me. I was wondering if anyone could please break down these instructions into simpler, bite size pieces for someone who typically has trouble configuring new things...
I'd truly appreciate any help! Thanks!
Btw, my end goal is to set this up for the Paperclip plugin.
The first step would be to install MacPorts if you don't have it already. Once MacPorts is installed it should be fairly straightforward based on the instructions listed at the link you provided.
sudo port install ImageMagick
For others interested in this topic, I might look into installing homebrew instead of MacPorts.