Monday, October 28, 2013

Quote - by Aldous Huxley

"I wanted to change the world. But I have found that the only thing one can be sure of changing is oneself" - Aldous Huxley

GIT: Atlassian cheat sheet

Here is link to GIT cheat sheet. Click here to download it

Thursday, October 24, 2013

Friday, October 18, 2013

.vimrc file for Drupal



set term=xterm-color
syntax on
"set background=dark " adapt colors for background
":colorscheme evening
set t_vb=
"set nowrap
set expandtab
set tabstop=2
set shiftwidth=2
set autoindent
set smartindent
set ruler
set number
"setlocal spell spelllang=en_us

" Use vim defaults.
set nocompatible

" Set filetype detection on, load plugins and indent.
filetype plugin indent on

set history=3000
set title
set matchtime=2
set showmatch
set showcmd " show commands while they're being typed
set t_Co=256

" Bells and whistles.
"set novisualbell
"set noerrorbells

" Backup.
set nobackup " Don't backup files.
set nowritebackup
set noswapfile

set hlsearch " Highlight searches
set incsearch " Search incrementally
set ignorecase " Ignore case
set smartcase " Set case
set wildmode=longest,list " File and directory matching mode.

" Diff opt
set diffopt=vertical

if has("autocmd")
" Drupal *.module and *.install files.
  augroup module
  autocmd BufRead,BufNewFile *.module set filetype=php
  autocmd BufRead,BufNewFile *.install set filetype=php
  autocmd BufRead,BufNewFile *.test set filetype=php
  autocmd BufRead,BufNewFile *.inc set filetype=php
  autocmd BufRead,BufNewFile *.profile set filetype=php
  autocmd BufRead,BufNewFile *.view set filetype=php
  augroup END
endif

" Highlight chars that go over the 80-column limit
:highlight OverLength ctermbg=black ctermfg=red
:match OverLength '\%81v.*'

" " Highlight redundant whitespaces and tabs.
highlight RedundantSpaces ctermbg=red
match RedundantSpaces /\s\+$\| \+\ze\t\|\t/

let php_sql_query = 1
let php_baselib = 1
let php_htmlInStrings = 1
let php_parent_error_close = 1
let php_noShortTags = 1

"let php_folding = 1

" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
  au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
    \| exe "normal! g'\"" | endif
endif

screen: move cursor to beginning and end of a line

beginning of like: Ctrl-A a

end of line: Ctrl-e