Skip to content

Instantly share code, notes, and snippets.

@PaulBGD
Last active Jun 5, 2016
Embed
What would you like to do?
Vim Files
{
"indent": {
"value": " ",
"FunctionExpression": 1,
"ArrayExpression": 1,
"ObjectExpression": 1
},
"plugins": [
"esformatter-jsx"
],
"jsx": {
"formatJSXExpressions": true,
"JSXExpressionsSingleLine": true,
"formatJSX": true,
"attrsOnSameLineAsTag": true,
"maxAttrsOnTag": 1,
"firstAttributeOnSameLine": false,
"spaceInJSXExpressionContainers": " ",
"alignWithFirstAttribute": true,
"htmlOptions": {
"brace_style": "collapse",
"indent_char": " ",
"indent_size": 4,
"max_preserve_newlines": 2,
"preserve_newlines": true
}
}
}
set nocompatible
set relativenumber
set backspace=indent,eol,start
let g:airline_powerline_fonts = 1
set laststatus=2
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
syntax on
let g:airline#extensions#tabline#enabled = 1
autocmd QuickFixCmdPost [^l]* nested cwindow
autocmd QuickFixCmdPost l* nested lwindow
autocmd StdinReadPre * let s:std_in=1
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
map <C-m> :NERDTreeToggle<CR>
map <C-n> :bn<CR>
map <C-b> :bp<CR>
map <C-v> :bp<bar>sp<bar>bn<bar>bd<CR>
let g:rustfmt_autosave = 1
let g:ycm_rust_src_path = '~/rust/src'
let g:EclimCompletionMethod = 'omnifunc'
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
let g:formatters_javascript = [
\ 'esformatter'
\ ]
let g:formatdef_esformatter = '"esformatter --config ~/.esconfig.json"'
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'leafgarland/typescript-vim'
Plugin 'Shougo/vimproc.vim'
Plugin 'Quramy/tsuquyomi'
Plugin 'rust-lang/rust.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'Chiel92/vim-autoformat'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
call vundle#end()
filetype plugin indent on
@PaulBGD
Copy link
Author

PaulBGD commented Jun 5, 2016

I use the following NPM modules:

  • js-beautify
  • esformatter
  • esformatter-jsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment