aboutsummaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-06-01 16:03:46 +0100
committerMatthew Lemon <y@yulqen.org>2023-06-01 16:03:46 +0100
commit6864071ef37f1d0dbabe4d2be07cdf49081e9000 (patch)
tree8235eb5d4d6b46eb3e1c67422b79740ed894aab0 /vim
parentbba6a526ecc4d050acde536cd16db22feb190a1a (diff)
Markdown config changes
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc14
1 files changed, 14 insertions, 0 deletions
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\<BS>\<CR>\<Esc>"
+
+" 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 <leader>ev <C-w>s<C-w>j<C-w>L:e $HOME/.vim/vimrc<cr>