You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

78 lines
2.3 KiB

" going with vim-plug; has parallel downloading and probably more mature
" install vim plug:
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
" The default plugin directory will be as follows:
" " - Vim (Linux/macOS): '~/.vim/plugged'
" " - Vim (Windows): '~/vimfiles/plugged'
" " - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged'
" " You can specify a custom plugin directory by passing it as the argument
" " - e.g. `call plug#begin('~/.vim/plugged')`
" " - Avoid using standard Vim directory names like 'plugin'
"
" " Make sure you use single quotes
"
" " Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-surround' " https://github.com/tpope/vim-surround
Plug 'pedrohdz/vim-yaml-folds'
Plug 'vim-syntastic/syntastic'
Plug 'vim-scripts/vcscommand.vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'bling/vim-bufferline'
" testing
Plug 'tpope/vim-characterize'
Plug 'tpope/vim-endwise'
Plug 'github/copilot.vim'
call plug#end()
let g:airline_solarized_bg='dark'
let g:airline_theme='solarized'
" let g:syntastic_<filetype>_checkers = ['<checker-name>']
let g:syntastic_yaml_checkers = ['yamllint']
" " syntastic settings
" set statusline+=%#warningmsg#
" set statusline+=%{SyntasticStatuslineFlag()}
" set statusline+=%*
" let g:syntastic_always_populate_loc_list = 1
" let g:syntastic_auto_loc_list = 1
" let g:syntastic_check_on_open = 1
" let g:syntastic_check_on_wq = 0
" let g:pymode_options_max_line_length=120
" " https://vi.stackexchange.com/questions/10007/how-to-make-syntastic-include-sourced-files-for-bash-syntax-as-shellcheck-x
" let g:syntastic_sh_shellcheck_args = "-x"
" let g:syntastic_mode_map = {
" \ "mode": "active",
" \ "active_filetypes": [],
" \ "passive_filetypes": ["sh, yaml"] }
set modeline
set modelines=5
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" copilot config
imap <silent> <C-j> <Plug>(copilot-next)
imap <silent> <C-k> <Plug>(copilot-previous)
imap <silent> <C-l> <Plug>(copilot-dismiss)