Blog

Currently showing blog posts in terminal. For all blog posts, please click here.

Installing NERDTree plugin for vim

How to install NERDTree plugin for vim editor

1. To Install NERDTree plugin – Visit GitPage

cd ~/.vim/bundle 
git clone https://github.com/jistr/vim-nerdtree-tabs.git

—————————-

Open NERDTree on gvim/macvim startup

g:nerdtree_tabs_open_on_gui_startup

Have problem?

Some times you will see this in NERDTree “?~V?”, don’t worry here is the fix for it.

Adding the following to your bashrc / zshrc

export LC_ALL=en_US.utf-8
export LANG="$LC_ALL"

Tutorial

1. Vim Essential Plugin : NERDTree – By NetTutsPlus

Sort cut to toggle NERDTreeToggle – Insert following line in ~/.vimrc “General” section

nmap   :NERDTreeToggle

nmap means map in normal mode
imap means map in insert mode

How to close open file in VIM?

:nmap   :bd

How to search open file in VIM?

CTRL + P or /serch term

NERDNERDTreeterminalVIM

Read More

Powder – Changing RAILS_ENV

powder env RAILS_ENV staging

For IE – Precompile assest for IE as it doesn’t support more than 30 files.

For Staging

RAILS_ENV=staging bundle exec rake assets:precompile

For development

RAILS_ENV=development bundle exec rake assets:precompile

powder restart

Read More

Terminal

1. Alias

alias name="command to run"

commandgitmac terminalterminal

Read More

Git Basics

1. How to initialise Git –

git init

2. Clone your project –

git clone git@github.com:APP_FOLDER/APP.git

3. Push to new branch

git push --set-upstream origin brach_name

4. Change local git branch name

git branch -m <oldname> <newname>

bitbucketgitgithub

Read More