Skip to content

Instantly share code, notes, and snippets.

@thanhson1085
Last active October 30, 2015 03:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thanhson1085/5a005680046946e14b12 to your computer and use it in GitHub Desktop.
Save thanhson1085/5a005680046946e14b12 to your computer and use it in GitHub Desktop.
My bashrc and vimrc
export GREP_OPTIONS="-n --color"
export VISUAL=vim
export EDITOR="$VISUAL"
alias ff='find . -type f|xargs grep -in'
alias h="history"
alias vi="vim"
alias j='jobs'
alias 1='fg 1'
alias 2='fg 2'
alias 3='fg 3'
alias 4='fg 4'
alias 5='fg 5'
alias 6='fg 6'
alias 7='fg 7'
alias 8='fg 8'
alias 9='fg 9'
alias 10='fg 10'
alias 11='fg 11'
alias 12='fg 12'
alias 13='fg 13'
alias 14='fg 14'
alias 15='fg 15'
map ,p :set paste<CR>
map ,np :set nopaste<CR>
map ,1 :buffer 1<CR>
map ,,1 :vsp | buffer 1<CR>
map ,2 :buffer 2<CR>
map ,,2 :vsp | buffer 2<CR>
map ,3 :buffer 3<CR>
map ,4 :buffer 4<CR>
map ,5 :buffer 5<CR>
map ,6 :buffer 6<CR>
map ,7 :buffer 7<CR>
map ,8 :buffer 8<CR>
map ,9 :buffer 9<CR>
map ,q :q!<CR>:q!<CR>
map ,c i/* <C-R>=strftime("%a %b %d, %Y %H:%M:%S")<CR> added by Thanh Son */<Esc>
map ,ec i/* <C-R>=strftime("%a %b %d, %Y %H:%M:%S")<CR> end */<Esc>
map ,,c i/**<CR> * <C-R>=strftime("%a %b %d, %Y %H:%M:%S")<CR> added by Thanh Son <CR> * Email: thanhson1085@gmail.com <CR> */<Esc>
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'fholgado/minibufexpl.vim'
Plugin 'moll/vim-node'
Plugin 'pangloss/vim-javascript'
Plugin 'maksimr/vim-jsbeautify'
Plugin 'https://github.com/ervandew/screen.git'
call vundle#end()
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment