Skip to content

Instantly share code, notes, and snippets.

@sekimura
Created August 9, 2012 17:08
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 sekimura/3305965 to your computer and use it in GitHub Desktop.
Save sekimura/3305965 to your computer and use it in GitHub Desktop.
syntax on
filetype on
set autoindent
set shiftwidth=4set shiftround
set tabstop=4set expandtabset showmatch
set magicset ignorecase
set smartcaseset hlsearch
set incsearchset matchpairs+=<:>set history=30set backspace=2" encodings, formartsset encoding=utf-8
set fileencoding=utf-8
set fileformat=unix"set winminheight=0":nmap <C-J> <C-W>j<C-W>_
":nmap <C-K> <C-W>k<C-W>_":nmap <C-W>m <C-W>_
":nmap + <C-W>+set grepprg=ack\ --color\ -a" 256 colorsset t_Co=256
set background=dark"colorscheme tir_black
"colorscheme wombat256mod
colorscheme ir_black
" Simple JavaScript indenter
let g:SimpleJsIndenter_BriefMode = 1
let g:SimpleJsIndenter_CaseIndentLevel = -1
" http://vim.wikia.com/wiki/Display_line_numbers
set number
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE
" ignore pyc files in Netrw
let g:netrw_list_hide= '[\..]*\.sw[op]$,.*\.pyc$'
autocmd FileType html expandtab tabstop=2 shiftwidth=2 autoindent smartindent
" vim-jsbeautify
".vimrc
let g:jsbeautify = {'indent_size': 4, 'indent_char': '\t'}
let g:htmlbeautify = {'indent_size': 4, 'indent_char': ' ', 'max_char': 78, 'brace_style': 'expand', 'unformatted': ['a', 'sub', 'sup', 'b', 'i', 'u']}
let g:cssbeautify = {'indent_size': 4, 'indent_char': ' '}
" by default
let g:jsbeautify_engine = "node"
let g:jsbeautify_engine = "v8"
"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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment