Skip to content

Instantly share code, notes, and snippets.

@kenornotes
Created October 18, 2015 09:04
Show Gist options
  • Save kenornotes/d4314a20f9a1a1e87260 to your computer and use it in GitHub Desktop.
Save kenornotes/d4314a20f9a1a1e87260 to your computer and use it in GitHub Desktop.
" au BufRead,BufNewFile *.js set filetype=javascript
" Note: Skip initialization for vim-tiny or vim-small.
if 0 | endif
if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
" Required:
call neobundle#begin(expand('~/.vim/bundle/'))
" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'
" My Bundles here:
" Refer to |:NeoBundle-examples|.
" Note: You don't set neobundle setting in .gvimrc!
NeoBundle 'plasticboy/vim-markdown'
" NeoBundle 'altercation/vim-colors-solarized' " vim-colors-solarized
" NeoBundle 'JavaScript-syntax' " JavaScript syntax
" NeoBundle 'pangloss/vim-javascript' " Javascript indent
NeoBundle 'maksimr/vim-jsbeautify'
NeoBundle 'einars/js-beautify'
NeoBundle 'vim-scripts/java.vim'
NeoBundle 'walm/jshint.vim'
" NeoBundle 'powerline/powerline'
NeoBundle 'bling/vim-airline'
NeoBundle 'honza/vim-snippets'
NeoBundle 'othree/javascript-libraries-syntax.vim'
" NeoBundle 'Shougo/neocomplcache'
" NeoBundle 'Shougo/neocomplete'
" NeoBundle 'Shougo/neosnippet'
" NeoBundle 'Shougo/neosnippet-snippets'
NeoBundleLazy 'jelera/vim-javascript-syntax', {'autoload':{'filetypes':['javascript']}}
call neobundle#end()
" Required:
filetype plugin indent on
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck
syntax enable
set encoding=utf-8
set showcmd " display incomplete commands
set nocompatible
set laststatus=2
set fillchars+=stl:\ ,stlnc:\
set term=xterm-256color
set termencoding=utf-8
" Whitespace
" set nowrap " don't wrap lines
set tabstop=2 shiftwidth=2 " a tab is two spaces (or set this to 4)
map <c-f> :call JsBeautify()<cr>
" or
" autocmd FileType javascript noremap <buffer> <c-f> :call JsBeautify()<cr>
"
" Java
let g:java_highlight_functions = 'style'
let g:java_highlight_all = 1
let g:java_allow_cpp_keywords = 1
let g:java_highlight_debug = 1
let g:java_space_errors = 1
let g:Powerline_symbols = 'fancy'
let g:snipMate = {}
let g:snipMate.scope_aliases = {}
let g:config_Beautifier = {'js':
\ {'path': '~/.vim/bundle/js-beautify/js/lib/beautify.js',
\ 'indent_style': 'tab',
\'indent_size': '2',
\"jslint_happy": 'true',
\'bin': 'node'}
\}
autocmd BufReadPre *.js let b:javascript_lib_use_angularjs = 1
autocmd FileType javascript noremap <buffer> <c-f> :call JsBeautify()<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment