From 6864071ef37f1d0dbabe4d2be07cdf49081e9000 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 1 Jun 2023 16:03:46 +0100 Subject: Markdown config changes --- vim/vimrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'vim') diff --git a/vim/vimrc b/vim/vimrc index 8b0be1a..148d91a 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -48,6 +48,20 @@ set completeopt=menuone,longest colorscheme gruber-darker highlight SignColumn guibg=blue ctermbg=black +" macro to go to end of sentence and add a line break (for +" one-line-per-sentence vimming...) +let @s = ")i\\\" + +" i don't bother with folding, but it's here if i need it. +if has('folding') + set foldmethod=marker + set foldmarker=#\ {{{,#\ }}} + set viewoptions=folds,options,cursor,unix,slash +endif + +" disable folding by default with vim-markdown +let g:vim_markdown_folding_disabled = 1 + " Open vimrc nnoremap ev sjL:e $HOME/.vim/vimrc -- cgit v1.2.3