From 809315abbef049369f31b2dd882606738569b7e2 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 29 Apr 2018 20:21:21 +0200 Subject: Update vim configuration --- pkgs/vim/conf/rc.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkgs/vim/conf') diff --git a/pkgs/vim/conf/rc.vim b/pkgs/vim/conf/rc.vim index 090c08b..4072bf2 100644 --- a/pkgs/vim/conf/rc.vim +++ b/pkgs/vim/conf/rc.vim @@ -45,10 +45,16 @@ autocmd InsertLeave * :setlocal hlsearch autocmd FileType scheme setlocal shiftwidth=2 tabstop=2 expandtab autocmd FileType lisp setlocal shiftwidth=2 tabstop=2 expandtab autocmd FileType racket setlocal shiftwidth=2 tabstop=2 expandtab +autocmd FileType haskell setlocal shiftwidth=2 tabstop=4 softtabstop=2 shiftround expandtab autocmd FileType pandoc setlocal nonumber autoread autocmd FileType pandoc let g:airline#extensions#whitespace#checks=['indent', 'trailing', 'long'] autocmd FileType tex set conceallevel=2 +" select previous line on file reload, useful when cycling file extensions +autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | execute "normal! g`\" zz" | endif +nnoremap :CounterpointNext +nnoremap :CounterpointPrevious + nnoremap gT nnoremap gt nnoremap @q -- cgit v1.2.3