commit 1187d56c74167fd99724a5309d29504d91bd2d83
parent 09a7ff43bd09a85e506bd02312dd4e19c069992e
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 2 Jul 2018 10:30:01 -0400
Add vimtex, vim-test, improve completes
Diffstat:
3 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/links/.vim/plugin/correct.vim b/links/.vim/plugin/correct.vim
@@ -1,8 +1,7 @@
let user_correct_dict = {
- \ 'æ': ['AE'],
- \ 'ø': ['OE'],
- \ 'å': ['AA'],
\ 'Anders': ['ANders'],
+ \ 'anders@adamsgaard.dk': ['@@'],
+ \ 'https://adamsgaard.dk': ['adweb'],
\ }
augroup litecorrect
diff --git a/links/.vim/plugin/keybinds.vim b/links/.vim/plugin/keybinds.vim
@@ -208,3 +208,15 @@ nnoremap <silent> [d :PrevWordy<cr>
" Other:
" <C-x><C-u>: emoji
" <C-x><C-z>: unicode
+
+" janko-m/vim-test
+" in a test file run tests nearest to the cursor otherwise the last nearest test
+nnoremap <silent> t<C-n> :TestNearest<CR>
+" in a test file run all tests
+nnoremap <silent> t<C-f> :TestFile<CR>
+" run entire test suite
+nnoremap <silent> t<C-s> :TestSuite<CR>
+" run last test
+nnoremap <silent> t<C-l> :TestLast<CR>
+" visit the test file from the last test
+nnoremap <silent> t<C-g> :TestVisit<CR>
diff --git a/links/.vim/plugins.vim b/links/.vim/plugins.vim
@@ -63,9 +63,13 @@ Plug 'tpope/vim-dispatch' " for asynchronous :Make
"""""" File types """"""
Plug 'sheerun/vim-polyglot' " Support for 100+ languages
-Plug 'vim-scripts/mutt-aliases', { 'for': 'mail' } " complete aliases w C-x C-u
+
+let g:polyglot_disabled = ['latex']
+Plug 'lervag/vimtex' " Better LaTeX plugin
+
Plug 'anders-dc/vim-scholarref' " search bibtex refs from web
-Plug 'junegunn/vader.vim' " testing framework
+Plug 'vim-scripts/mutt-aliases', { 'for': 'mail' } " complete aliases w C-x C-u
+Plug 'janko-m/vim-test' " test with t<C-n>, t<C-f>, t<C-s>
call plug#end() " Initialize plugin system