Last active
January 31, 2018 19:25
-
-
Save smokingcat/01a0f5d731997c32ab08f6cb2242574d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:set shell=/bin/bash | |
set nocompatible | |
filetype off | |
filetype plugin on | |
call plug#begin('~/.local/share/nvim/plugged') | |
Plug 'altercation/vim-colors-solarized' | |
Plug 'scrooloose/nerdtree' | |
Plug 'terryma/vim-multiple-cursors' | |
Plug 'mileszs/ack.vim' | |
Plug 'mattn/emmet-vim' | |
Plug 'alvan/vim-closetag' | |
Plug 'kchmck/vim-coffee-script' | |
Plug 'mtscout6/vim-cjsx' | |
Plug 'vim-scripts/ScrollColors' | |
Plug 'tpope/vim-fugitive' | |
Plug 'scrooloose/syntastic' | |
Plug 'kien/ctrlp.vim' | |
Plug 'bling/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'jeffkreeftmeijer/vim-numbertoggle' | |
Plug 'mhinz/vim-startify' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'rhysd/devdocs.vim' | |
Plug 'benekastah/neomake' | |
Plug 'chrisbra/colorizer' | |
Plug 'shime/vim-livedown' | |
Plug 'terryma/vim-multiple-cursors' | |
Plug 'othree/javascript-libraries-syntax.vim' | |
Plug 'posva/vim-vue' | |
call plug#end() | |
syntax enable | |
set background=dark | |
colorscheme solarized | |
syntax on | |
set mouse=a | |
set noswapfile | |
set nobackup | |
set visualbell | |
set cursorline | |
set hlsearch | |
set wildmenu | |
set nowrap | |
set number | |
set ruler | |
highlight ExtraWhitespace ctermbg=red guibg=red | |
match ExtraWhitespace /\s\+$/ | |
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ | |
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ | |
autocmd InsertLeave * match ExtraWhitespace /\s\+$/ | |
autocmd BufWinLeave * call clearmatches() | |
setlocal shiftwidth=4 tabstop=4 softtabstop=4 | |
autocmd FileType cjsx,coffee,scss,css,json,js,javascript,jsx setlocal shiftwidth=4 tabstop=4 softtabstop=4 | |
autocmd FileType vue setlocal shiftwidth=2 tabstop=2 softtabstop=2 | |
set expandtab | |
let g:colorpicker_app = 'iTerm.app' | |
"set encoding=utf-8 | |
set t_Co=256 | |
"set term=xterm-256color | |
"set termencoding=utf-8 | |
command! Sp set paste | |
command! Np set nopaste | |
autocmd VimEnter * wincmd p | |
let NERDTreeMinimalUI=1 | |
let NERDTreeCasadeOpenSingleChildDir=1 | |
set modifiable | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
let g:closetag_filenames = "*.html,*.xhtml,*.phtml,*.php" | |
" Syntastic | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
" Define local eslint | |
"let local_eslint = finddir('node_modules', '.;') . '/.bin/eslint' | |
"if matchstr(local_eslint, "^\/\\w") == '' | |
" let local_eslint = getcwd() . "/" . local_eslint | |
"endif | |
" COMET ESLINT ! | |
let local_eslint = '/Users/smokingcat/dev/comet/galaxy/frontend/node_modules/.bin/eslint' | |
" | |
" Syntastic | |
if executable(local_eslint) | |
let g:syntastic_javascript_eslint_exec = local_eslint | |
let g:syntastic_vue_eslint_exec = local_eslint | |
endif | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 1 | |
let g:syntastic_javascript_checkers = ['eslint'] | |
let g:syntastic_vue_checkers = ['eslint'] | |
let g:syntastic_javascript_args = '' | |
let g:syntastic_vue_args = '-c /Users/smokingcat/dev/comet/galaxy/frontend/.eslintrc --ext .vue /Users/smokingcat/dev/comet/galaxy/frontend/src /Users/smokingcat/dev/comet/galaxy/frontend/test/unit/specs /Users/smokingcat/dev/comet/galaxy/frontend/test/e2e/specs' | |
let g:syntastic_debug_file = '/tmp/synstastic.log' | |
" Neomake | |
"if executable(local_eslint) | |
" let g:neomake_javascript_eslint_exe = local_eslint | |
" let g:neomake_vue_eslint_exe = local_eslint | |
"endif | |
"let g:neomake_logfile='/tmp/neomake.log' | |
"autocmd! BufWritePost,BufEnter * Neomake | |
" | |
"let g:neomake_javascript_eslint_maker = { | |
" \ 'exe': 'eslint', | |
" \ 'args': ['-c', '/Users/smokingcat/dev/comet/galaxy/frontend/.eslintrc', '--ext', '.js', '/Users/smokingcat/dev/comet/galaxy/frontend/src', '/Users/smokingcat/dev/comet/galaxy/frontend/test/unit/specs', '/Users/smokingcat/dev/comet/galaxy/frontend/test/e2e/specs'], | |
" \ 'errorformat': '%f: line %l\, col %c\, %m', | |
" \ } | |
"let g:neomake_javascript_enabled_makers = ['eslint'] | |
" | |
"let g:neomake_vue_eslint_maker = { | |
" \ 'exe': 'eslint', | |
" \ 'args': ['-c', '/Users/smokingcat/dev/comet/galaxy/frontend/.eslintrc', '--ext', '.vue', '/Users/smokingcat/dev/comet/galaxy/frontend/src', '/Users/smokingcat/dev/comet/galaxy/frontend/test/unit/specs', '/Users/smokingcat/dev/comet/galaxy/frontend/test/e2e/specs'], | |
" \ 'errorformat': '%f: line %l\, col %c\, %m', | |
" \ } | |
"let g:neomake_vue_enabled_makers = ['eslint'] | |
" | |
"let g:neomake_warning_sign = { | |
" \ 'text': 'W', | |
" \ 'texthl': 'WarningMsg', | |
" \ } | |
"let g:neomake_error_sign = { | |
" \ 'text': 'E', | |
" \ 'texthl': 'ErrorMsg', | |
" \ } | |
" | |
"let g:neomake_open_list = 2 | |
set path+=** | |
set wildignore+=*/node_modules/*,*/vendor/* | |
let g:ack_default_options = " -i -H --nocolor --nogroup --column" | |
let g:airline_powerline_fonts = 1 | |
let g:ctrlp_cmd = 'CtrlPMixed' | |
noremap <Up> <NOP> | |
noremap <Down> <NOP> | |
noremap <Left> <NOP> | |
noremap <Right> <NOP> | |
:imap jj <Esc> | |
noremap - <C-w>\| | |
noremap = <C-w>= | |
noremap <Leader> <C-w> | |
map <F7> mzgg=G`z | |
" don't cut when pasting | |
xnoremap p "_dP | |
let g:startify_custom_header = [ | |
\ '', | |
\ ' __', | |
\ ' __ __ /\_\ ________', | |
\ ' /\ \/\ \\/\ \ / __ __`\', | |
\ ' \ \ \_/ |\ \ \/\ \/\ \/\ \', | |
\ ' \ \___/ \ \_\ \_\ \_\ \_\', | |
\ ' \/__/ \/_/\/_/\/_/\/_/', | |
\ ] | |
com! FormatJSON %!python -m json.tool | |
com! TrailingWhitespaces %s/\s\+$// | |
:let mapleader = "," | |
nmap <Leader>hn <Plug>GitGutterNextHunk | |
nmap <Leader>/ :nohl<CR> | |
let g:ctrlp_max_files=150000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment