|
|
|
@ -105,8 +105,8 @@ set noshowmatch
|
|
|
|
|
" wrap around when searching
|
|
|
|
|
set wrapscan
|
|
|
|
|
|
|
|
|
|
" Just the defaults, these are changed per filetype by plugins.
|
|
|
|
|
" Most of the utility of all of this has been superceded by the use of
|
|
|
|
|
" Just the formatoptions defaults, these are changed per filetype by
|
|
|
|
|
" plugins. Most of the utility of all of this has been superceded by the use of
|
|
|
|
|
" modern simplified pandoc for capturing knowledge source instead of
|
|
|
|
|
" arbitrary raw text files.
|
|
|
|
|
|
|
|
|
@ -199,13 +199,13 @@ au FileType * hi MatchParen ctermbg=236 ctermfg=darkred
|
|
|
|
|
au FileType markdown,pandoc hi Title ctermfg=yellow ctermbg=NONE
|
|
|
|
|
au FileType markdown,pandoc hi Operator ctermfg=yellow ctermbg=NONE
|
|
|
|
|
au FileType yaml hi yamlBlockMappingKey ctermfg=NONE
|
|
|
|
|
au FileType yaml set sw=4
|
|
|
|
|
au FileType yaml set sw=2
|
|
|
|
|
au FileType bash set sw=2
|
|
|
|
|
au FileType c set sw=8
|
|
|
|
|
|
|
|
|
|
set cinoptions+=:0
|
|
|
|
|
|
|
|
|
|
" Edit/Reload vimr configuration file
|
|
|
|
|
" Edit/Reload vimrc configuration file
|
|
|
|
|
nnoremap confe :e $HOME/.vimrc<CR>
|
|
|
|
|
nnoremap confr :source $HOME/.vimrc<CR>
|
|
|
|
|
|
|
|
|
@ -217,23 +217,16 @@ if filereadable(expand("~/.vim/autoload/plug.vim"))
|
|
|
|
|
" github.com/junegunn/vim-plug
|
|
|
|
|
|
|
|
|
|
call plug#begin('~/.local/share/vim/plugins')
|
|
|
|
|
Plug 'frazrepo/vim-rainbow'
|
|
|
|
|
Plug 'zah/nim.vim'
|
|
|
|
|
Plug 'conradirwin/vim-bracketed-paste'
|
|
|
|
|
Plug 'morhetz/gruvbox'
|
|
|
|
|
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
|
|
|
|
|
Plug 'vim-pandoc/vim-pandoc'
|
|
|
|
|
Plug 'pegn/pegn-syntax'
|
|
|
|
|
Plug 'rwxrob/vim-pandoc-syntax-simple'
|
|
|
|
|
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
|
|
|
|
|
"Plug 'pegn/pegn-syntax'
|
|
|
|
|
Plug 'tpope/vim-fugitive'
|
|
|
|
|
Plug 'hashivim/vim-terraform'
|
|
|
|
|
Plug 'morhetz/gruvbox'
|
|
|
|
|
call plug#end()
|
|
|
|
|
|
|
|
|
|
" rainbow
|
|
|
|
|
" FIXME: only do this for non-pandoc file types
|
|
|
|
|
"let g:rainbow_active=1
|
|
|
|
|
|
|
|
|
|
" terraform
|
|
|
|
|
let g:terraform_fmt_on_save = 1
|
|
|
|
|
|
|
|
|
|
" pandoc
|
|
|
|
|
let g:pandoc#formatting#mode = 'h' " A'
|
|
|
|
|
let g:pandoc#formatting#textwidth = 72
|
|
|
|
@ -261,12 +254,6 @@ if filereadable(expand("~/.vim/autoload/plug.vim"))
|
|
|
|
|
"let g:go_metalinter_autosave=1
|
|
|
|
|
set updatetime=100
|
|
|
|
|
"let g:go_gopls_analyses = { 'composites' : v:false }
|
|
|
|
|
au FileType go nmap <leader>t :GoTest!<CR>
|
|
|
|
|
au FileType go nmap <leader>v :GoVet!<CR>
|
|
|
|
|
au FileType go nmap <leader>b :GoBuild!<CR>
|
|
|
|
|
au FileType go nmap <leader>c :GoCoverageToggle<CR>
|
|
|
|
|
au FileType go nmap <leader>i :GoInfo<CR>
|
|
|
|
|
au FileType go nmap <leader>l :GoMetaLinter!<CR>
|
|
|
|
|
au FileType go nmap <leader>m ilog.Print("made")<CR><ESC>
|
|
|
|
|
au FileType go nmap <leader>n iif err != nil {return err}<CR><ESC>
|
|
|
|
|
else
|
|
|
|
|