Skip to content

Instantly share code, notes, and snippets.

@mkhuda
Created October 14, 2016 09:42
Show Gist options
  • Select an option

  • Save mkhuda/fed4df4a3da903c1415ff1114073fc86 to your computer and use it in GitHub Desktop.

Select an option

Save mkhuda/fed4df4a3da903c1415ff1114073fc86 to your computer and use it in GitHub Desktop.
execute pathogen#infect()
call pathogen#helptags()
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
syntax on
set autoindent
set cindent
set shiftwidth=2
set tabstop=2
set number
inoremap { {<CR>}<up><end><CR> }
map <c-f> :call JsBeautify()<cr>
" or
autocmd FileType javascript noremap <buffer> <c-f> :call JsBeautify()<cr>
" for json
autocmd FileType json noremap <buffer> <c-f> :call JsonBeautify()<cr>
" for jsx
autocmd FileType jsx noremap <buffer> <c-f> :call JsxBeautify()<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>
call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'https://github.com/wincent/Command-T'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment