blog

vi / vim Shortcuts

Open filevi filenameAs i am newb on linux macine, i dont know vi shortcuts.so, i am listing down shortcuts which i am getting familier. :)Insert in fileiExit fileqforced exitq!save filewqforced savewq!Copy no of linesyyPaste copied linesppUndo changesuuDelete linesddTo search and replace string in vi :%s/search_string/replacement_string/gTo find particular word in file?string1If you have any quick list. … Continue reading vi / vim Shortcuts

Working with multiple ruby versions on same server

click for original postNice post by Michael GreenlyI recently changed how I'm handling multiple simultaneous Ruby installations and I'd like to share.What I needed was to make it convenient to switch between the system provided packages and specific, from source, installations. After some experiments I decided to use 'update-alternatives' to do it.Here's a quick walk … Continue reading Working with multiple ruby versions on same server