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 f6f0cc69914f2f16a9be10cc87206773b159743e
parent 12a65723b98af873527a54f695d7c0f6713002bd
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon,  2 Jul 2018 08:44:48 -0400

Use manual autoclose and danish letter remappings

Diffstat:
Mlinks/.vim/plugin/correct.vim | 18+++++++++++++++++-
Mlinks/.vim/plugins.vim | 8+-------
2 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/links/.vim/plugin/correct.vim b/links/.vim/plugin/correct.vim @@ -7,5 +7,21 @@ let user_correct_dict = { augroup litecorrect autocmd! - autocmd FileType markdown,mkd,latex,tex call litecorrect#init(user_correct_dict) + autocmd FileType mail,markdown,tex call litecorrect#init(user_correct_dict) +augroup END + +augroup autoclose + inoremap " ""<left> + inoremap ' ''<left> + inoremap ( ()<left> + inoremap [ []<left> + inoremap { {}<left> + inoremap {<CR> {<CR>}<ESC>O + inoremap {;<CR> {<CR>};<ESC>O +augroup END + +augroup danish_symbols + inoremap AE æ + inoremap OE ø + inoremap AA å augroup END diff --git a/links/.vim/plugins.vim b/links/.vim/plugins.vim @@ -34,7 +34,7 @@ Plug 'christoomey/vim-tmux-navigator' " seamless tmux pane/vim window navigation Plug 'junegunn/vim-slash' " clear highlight when moving cursor Plug 'justinmk/vim-sneak' " move cursor s{char}{char}, use cl for sub -"""""" Text editing """""" +" """""" Text editing """""" Plug 'tpope/vim-surround' " modify surrounding symbols Plug 'tpope/vim-repeat' " repeat plugin bindings with . Plug 'tpope/vim-commentary' " comment line with gcc, motion with gc @@ -42,7 +42,6 @@ Plug 'tpope/vim-abolish' " :%Subvert/facilit{y,ies}/building{,s}/g Plug 'junegunn/vim-easy-align' " align in columns (select > return > space) Plug 'reedes/vim-litecorrect' " autocorrect common typos Plug 'reedes/vim-pencil' " used for line wrapping in mails -Plug 'townk/vim-autoclose' " automatically add end brackets/parens """""" Writing """""" Plug 'szw/vim-dict' " query dict.org using :Dict @@ -62,15 +61,10 @@ Plug 'airblade/vim-gitgutter' " show line changes since last git commit """""" Processes """""" Plug 'tpope/vim-dispatch' " for asynchronous :Make - """""" File types """""" Plug 'sheerun/vim-polyglot' " Support for 100+ languages - -" Mail Plug 'vim-scripts/mutt-aliases', { 'for': 'mail' } " complete aliases w C-x C-u Plug 'anders-dc/vim-scholarref' " search bibtex refs from web - -" Vimscript Plug 'junegunn/vader.vim' " testing framework call plug#end() " Initialize plugin system