ABAPG7RJP7HRSJC4KSAAUIX4BT35P7ELBRB5VUSV7VGEGY55LCPQC
X3ADVUAO4IFDRTLGFIZWFP7AH7BGRGIYSAVMFXRMOFKWDXCQMJ2AC
5FLTMCXWFLP6MI36R73NDC5ZZGKRB66IXOWY7ZTESTLC7M357H2QC
2WCOODWOS4Q63X6PGYX5VLOP5W7Y77YBPYYHBWAWSVFTA476FQZAC
6BLD6IH4TA5VQZAKWZNDGQRR5WH2QFCA5FSUHS2EXJGYVCNJSENQC
ZQ73244MQYZ5GMIFPMSXRL3K5GMSGAODZAQLHO6IXHWDX5YZFYEQC
OOZ37CBOKZQJO3YP5EARYSJEVVNQZWLJFUFJ3EYCN6WFNSDZOQJAC
6A4XQRMXW45BFPZDBXTBF32NGB2WPNRM5KNVI377MTBRA6AP54XAC
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-fugitive'
" Swift syntax and indent files
Plug 'keith/swift.vim'
" syntastic
Plug 'https://github.com/scrooloose/syntastic.git'
" uses the local eslint install
Plug 'mtscout6/syntastic-local-eslint.vim'
" vim-go
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
" vim-go has some commands that depend on ctrlp
Plug 'ctrlpvim/ctrlp.vim'
" -- ultisnips / youcompleteme config
augroup load_us_ycm
autocmd!
autocmd InsertEnter * call plug#load('ultisnips', 'YouCompleteMe')
\| autocmd! load_us_ycm
augroup END
let g:ycm_autoclose_preview_window_after_completion=1
nnoremap <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
" UltiSnips triggering
let g:UltiSnipsExpandTrigger = '<S-j>'
let g:UltiSnipsJumpForwardTrigger = '<S-j>'
let g:UltiSnipsJumpBackwardTrigger = '<S-k>'
" syntastic config
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_loc_list_height = 5
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 1
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_error_symbol = 'X'
let g:syntastic_style_error_symbol = '!'
let g:syntastic_warning_symbol = 'W'
let g:syntastic_style_warning_symbol = 'S'
highlight link SyntasticErrorSign SignColumn
highlight link SyntasticWarningSign SignColumn
highlight link SyntasticStyleErrorSign SignColumn
highlight link SyntasticStyleWarningSign SignColumn
" -- status line config
set laststatus=2
set noshowmode
let g:airline_theme='serene'
let g:airline#extensions#tabline#enabled = 1
" -- VIM-GO config
let g:go_fmt_command = "goimports"
let g:go_metalinter_autosave = 1
let g:go_metalinter_autosave_enabled = ['vet', 'golint']
" let g:go_auto_sameids = 1 " this highlights matching declarations and I think I hate it
" these autocmd are like short cuts for moving between files
autocmd Filetype go command! -bang A call go#alternate#Switch(<bang>0, 'edit')
autocmd Filetype go command! -bang AV call go#alternate#Switch(<bang>0, 'vsplit')
autocmd Filetype go command! -bang AS call go#alternate#Switch(<bang>0, 'split')
" prevent issues with syntastic
let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck']
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
let g:go_list_type = "quickfix"
" -- ctr-p config
set wildignore+=*/.git/*,*/node_modules/* " -- hide .git, node_modules
" gV - visually selects last inserted block
nnoremap gV `[v`]
" jj - is escape in insert mode
inoremap jj <esc>
" \j - next buffer
nnoremap <leader>j :bn<ENTER>
" \jw - next buffer in new window
nnoremap <leader>wj :sbnext<ENTER>
" \k - prev buffer
nnoremap <leader>k :bp<ENTER>
" -- GO lang specific remapings
" \rr go run file
autocmd FileType go nmap <leader>rr <Plug>(go-run)
" \bb go build file
autocmd FileType go nmap <leader>bb :<C-u>call <SID>build_go_files()<CR>
" \tt go test file
autocmd FileType go nmap <leader>tt <Plug>(go-test)
" \tc go test coverage
autocmd FileType go nmap <Leader>tc <Plug>(go-coverage-toggle)
" \tcb go test coverage show in browser
autocmd FileType go nmap <Leader>tcb <Plug>(go-coverage-browser)
" \gc go run metalinter (ie all of the static analysis tools)
autocmd FileType go nmap <leader>gc :GoMetaLinter<CR>
" \i go show go info for under cursor
autocmd FileType go nmap <Leader>i <Plug>(go-info)
" \e run go rename
au FileType go nmap <Leader>e <Plug>(go-rename)
" ctrl. vim-go quick fix window next error
nnoremap <C-n> :cnext<CR>
" ctrl, vim-go quik fix window prev error
nnoremap <C-m> :cprevious<CR>
" ctrl/ vim-go quick fix window close
nnoremap <leader>c :cclose<CR>
" -- FUNCTIONS
" run :GoBuild or :GoTestCompile based on the go file
function! s:build_go_files()
let l:file = expand('%')
if l:file =~# '^\f\+_test\.go$'
call go#cmd#Test(0, 1)
elseif l:file =~# '^\f\+\.go$'
call go#cmd#Build(0)
endif
endfunction
'(evil-want-Y-yank-to-eol nil)
'(package-selected-packages
(quote
(php-auto-yasnippets drupal-mode phpunit phpcbf php-extras php-mode yaml-mode sql-indent vmd-mode helm-gtags ggtags slime-company slime common-lisp-snippets rvm ruby-tools ruby-test-mode rubocop rspec-mode robe rbenv rake minitest chruby bundler inf-ruby web-beautify livid-mode skewer-mode simple-httpd json-mode json-snatcher json-reformat js2-refactor multiple-cursors js2-mode js-doc company-tern tern coffee-mode web-mode tagedit slim-mode scss-mode sass-mode pug-mode less-css-mode helm-css-scss haml-mode emmet-mode company-web web-completion-data vimrc-mode dactyl-mode xterm-color shell-pop multi-term eshell-z eshell-prompt-extras esh-help toml-mode racer flycheck-rust seq cargo rust-mode flyspell-correct-helm flyspell-correct auto-dictionary insert-shebang fish-mode company-shell csv-mode unfill smeargle orgit org-projectile org-category-capture org-present org-pomodoro alert log4e gntp org-download mwim mmm-mode markdown-toc markdown-mode magit-gitflow htmlize helm-gitignore helm-company helm-c-yasnippet gnuplot gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link git-gutter-fringe+ git-gutter-fringe fringe-helper git-gutter+ git-gutter gh-md fuzzy flycheck-pos-tip pos-tip flycheck evil-magit magit magit-popup git-commit with-editor diff-hl company-statistics company-anaconda company auto-yasnippet yasnippet ac-ispell auto-complete yapfify pyvenv pytest pyenv-mode py-isort pip-requirements live-py-mode hy-mode dash-functional helm-pydoc cython-mode anaconda-mode pythonic ws-butler winum which-key volatile-highlights vi-tilde-fringe uuidgen use-package toc-org spaceline powerline restart-emacs request rainbow-delimiters popwin persp-mode pcre2el paradox spinner org-plus-contrib org-bullets open-junk-file neotree move-text macrostep lorem-ipsum linum-relative link-hint info+ indent-guide hydra hungry-delete hl-todo highlight-parentheses highlight-numbers parent-mode highlight-indentation hide-comnt help-fns+ helm-themes helm-swoop helm-projectile helm-mode-manager helm-make projectile pkg-info epl helm-flx helm-descbinds helm-ag google-translate golden-ratio flx-ido flx fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state smartparens evil-indent-plus evil-iedit-state iedit evil-exchange evil-escape evil-ediff evil-args evil-anzu anzu evil goto-chg undo-tree eval-sexp-fu highlight elisp-slime-nav dumb-jump f dash s diminish define-word column-enforce-mode clean-aindent-mode bind-map bind-key auto-highlight-symbol auto-compile packed aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line helm avy helm-core popup async)))