Get hand over VI / VIM editor

Movementsb previous wordw next worde end of word0/^ begining of line$ end of lineG end of file1G/gg begining of file/pattern search next?pattern search previousn repeat search forword ( i.e next occurence )N repeat search backword:line goto line specified *****Modes**** i insert mode r replace mode s delete character under cursor and eneter insert mode *****Delete****** … Continue reading Get hand over VI / VIM editor

YAML file configuration in ruby & rails

While coding in ruby and rails, we often requires variables to be initialized that can be usedacross application. There are many ways to define configuration variables1. Initialize variables inside environment file # This agencies can be used across application AGENCIES = ['TIMES NEWS NETWORK', 'AGENCIES', 'AFP', 'PTI'] # Configuration for html nodes Article_title_tag = "h1.heading" … Continue reading YAML file configuration in ruby & rails