dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 12a65723b98af873527a54f695d7c0f6713002bd
parent c36ecba838d770053f8326eddcaaa2c7d5d6e148
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon,  2 Jul 2018 07:17:22 -0400

Use vim-polygot for language support and single file for litecorrect

Diffstat:
Mlinks/.vim/ftplugin/mail.vim | 1-
Mlinks/.vim/ftplugin/markdown.vim | 1-
Mlinks/.vim/ftplugin/tex.vim | 1-
Alinks/.vim/plugin/correct.vim | 11+++++++++++
Mlinks/.vim/plugins.vim | 25+------------------------
5 files changed, 12 insertions(+), 27 deletions(-)

diff --git a/links/.vim/ftplugin/mail.vim b/links/.vim/ftplugin/mail.vim @@ -1,6 +1,5 @@ augroup mail_typography call pencil#init({'wrap': 'soft', 'textwidth': 80, 'conceallevel': 0}) - call litecorrect#init() setlocal spell spl=en_us setlocal fdo+=search setlocal list diff --git a/links/.vim/ftplugin/markdown.vim b/links/.vim/ftplugin/markdown.vim @@ -1,6 +1,5 @@ augroup markdown_typography call pencil#init({'wrap': 'soft', 'textwidth': 80, 'conceallevel': 0}) - call litecorrect#init() setlocal spell spl=en_us setlocal fdo+=search setlocal list diff --git a/links/.vim/ftplugin/tex.vim b/links/.vim/ftplugin/tex.vim @@ -31,7 +31,6 @@ augroup END augroup latex_typography call pencil#init({'wrap': 'soft', 'textwidth': 80, 'conceallevel': 0}) - call litecorrect#init() setlocal spell spl=en_us setlocal fdo+=search setlocal list diff --git a/links/.vim/plugin/correct.vim b/links/.vim/plugin/correct.vim @@ -0,0 +1,11 @@ +let user_correct_dict = { + \ 'æ': ['AE'], + \ 'ø': ['OE'], + \ 'å': ['AA'], + \ 'Anders': ['ANders'], + \ } + +augroup litecorrect + autocmd! + autocmd FileType markdown,mkd,latex,tex call litecorrect#init(user_correct_dict) +augroup END diff --git a/links/.vim/plugins.vim b/links/.vim/plugins.vim @@ -64,33 +64,10 @@ Plug 'tpope/vim-dispatch' " for asynchronous :Make """""" File types """""" - -" Go -Plug 'fatih/vim-go' -Plug 'nsf/gocode' - -" Julia -Plug 'JuliaLang/julia-vim' - -" Python -Plug 'davidhalter/jedi-vim' -Plug 'nvie/vim-flake8' -Plug 'vim-scripts/indentpython.vim' -"Plug 'klen/python-mode' - -" HTML/PHP/JS -Plug 'captbaritone/better-indent-support-for-php-with-html' -Plug 'pangloss/vim-javascript' - -" Markdown -Plug 'godlygeek/tabular' " line up text (req for vim-markdown) -Plug 'plasticboy/vim-markdown' +Plug 'sheerun/vim-polyglot' " Support for 100+ languages " Mail Plug 'vim-scripts/mutt-aliases', { 'for': 'mail' } " complete aliases w C-x C-u - -" LaTeX -Plug 'lervag/vimtex' Plug 'anders-dc/vim-scholarref' " search bibtex refs from web " Vimscript