Skip to content

Instantly share code, notes, and snippets.

@zhang-ning
Last active December 29, 2015 07:19
Show Gist options
  • Save zhang-ning/7635415 to your computer and use it in GitHub Desktop.
Save zhang-ning/7635415 to your computer and use it in GitHub Desktop.
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
DocumentRoot /home/jonathan/Documents/work/AustinTUCONDemo/ion-web/src/main/webapp/ngapps/
ServerName jonathan.austin.com
<Directory />
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
syntax enable
set nu
set background=dark
" set colorcolumn=120
colorscheme solarized
"colorscheme github
let g:solarized_diffmode="low"
" Disable swapfile and backup {{{
set nobackup
set noswapfile
" }}}
"
" "remap leader key{{{
let mapleader=','
" "}}}
"
set completeopt-=preview
set autoindent
set tabstop=2 " tab width is 4 spaces
set shiftwidth=2 " indent also with 4 spaces
set softtabstop=2
set expandtab
set textwidth=300
set t_Co=256
set number
set hidden
set showmatch
set comments=sl:/*,mb:\ *,elx:\ */
set autoread
set title
set ruler
set backspace=indent,eol,start
set laststatus=2
set nolist
syntax on
"
"Tab-completion in command-line mode{{{
set wildmenu
set wildmode=longest:full
set wildignore=*.pdf
"}}}
set incsearch
set hls
set tags+=./tags
"
" " Prevent :bd inside NERDTree buffer
"au FileType nerdtree cnoreabbrev <buffer> bd <nop>
"au FileType nerdtree cnoreabbrev <buffer> BD <nop>
"}}}
"
" "config syntastic {{{
let g:syntastic_check_on_open=1
"}}}
"
" "set colorscheme {{{
syntax enable
" "config tagbar plugin {{{
let Tlist_Use_Right_Window = 1
"}}}
"
let g:ctrlp_open_multiple_files = 'v'
set wildignore+=*/tmp/*,*.so,*.swp,*.zip
let g:ctrlp_max_height = 10
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git)$',
\ 'file': '\v\.(log|jpg|png|jpeg)$',
\ }
set wildignore+=*.pyc
set wildignore+=*_build/*
set wildignore+=*.o
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
Bundle 'scrooloose/syntastic'
Bundle 'Shutnik/jshint2.vim'
Bundle 'elzr/vim-json'
Bundle 'scrooloose/nerdtree'
Bundle 'mattn/emmet-vim'
Bundle 'majutsushi/tagbar'
Bundle 'vim-scripts/bufexplorer.zip'
Bundle 'kien/ctrlp.vim'
Bundle 'fholgado/minibufexpl.vim'
Bundle 'flazz/vim-colorschemes'
Bundle 'magic-dot-files/TagHighlight'
Bundle 'Shougo/neocomplcache.vim'
Bundle 'Lokaltog/vim-powerline'
" Bundle 'Valloric/YouCompleteMe'
" Bundle 'walm/jshint.vim'
" My Bundles here:
"
" original repos on github
Bundle 'maksimr/vim-jsbeautify'
filetype plugin indent on " required!
"
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..
"let g:syntastic_javascript_checkers = ['jshint']
"let g:syntastic_always_populate_loc_list=1
"au BufWritePost *.js :JSHint
"jshint when saving
let jshint2_save = 1
" 在 vim 启动的时候默认开启 NERDTree(autocmd 可以缩写为 au)
" autocmd VimEnter * NERDTree
" close vim if the only window left open is a NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
"
" " 按下 F2 调出/隐藏 NERDTree
map <silent> OQ :NERDTreeToggle
" " 按下 F3 调出/隐藏 TagbarToggle
map <silent> OR :TagbarToggle
"
" " 将 NERDTree 的窗口设置在 vim 窗口的右侧(默认为左侧)
" let NERDTreeWinPos="right"
"
" " 当打开 NERDTree 窗口时,自动显示 Bookmarks
let NERDTreeShowBookmarks=1
"
" Or, in MRU fashion
"
noremap <C-n> :MBEbf<CR>
noremap <C-b> :MBEbb<CR>
"jsbeautify
"
map <c-f> :call JsBeautify()<cr>
" " or
autocmd FileType javascript noremap <buffer> <c-f> :call JsBeautify()<cr>
" " for html
autocmd FileType html noremap <buffer> <c-f> :call HtmlBeautify()<cr>
" " for css or scss
autocmd FileType css noremap <buffer> <c-f> :call CSSBeautify()<cr>
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
let g:ctrlp_working_path_mode = 'ra'
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
let g:miniBufExplMapCTabSwitchBufs = 1
"let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
let g:ctrlp_user_command = 'find %s -type f' " MacOSX/Linux
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
ServerName jonathan.fv.com
DocumentRoot /home/jonathan/Documents/work/fv/WebContent/versionedfiles/
</VirtualHost>
127.0.0.1 localhost
127.0.1.1 nizhang-lt
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# here is for customize local project
127.0.0.1 jonathan.fv.com
127.0.0.1 jonathan.austin.com
127.0.0.1 jonathan.dev.com
# here is for tibco
10.106.148.129 confluence.tibco.com
10.106.148.128 jira.tibco.com
10.106.128.81 svn.tibco.com
10.106.128.82 wiki.tibco.com
# google
203.208.46.179 mail.google.com
203.208.46.179 www.google.com
203.208.46.179 chrome.google.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment