From: martin f. krafft Date: Thu, 21 Feb 2019 01:24:16 +0000 (+1300) Subject: fix format list pattern X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/5e3ed1e5a5c0bd74536e3b8d412a4906fe014568?ds=sidebyside;hp=--cc fix format list pattern --- 5e3ed1e5a5c0bd74536e3b8d412a4906fe014568 diff --git a/.vimrc b/.vimrc index 68ec6af..6f3d5f6 100644 --- a/.vimrc +++ b/.vimrc @@ -673,7 +673,7 @@ set fo=tcroqn1l " pattern to recognize a numbered list " (local to buffer) " set flp=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s* -let &flp='^\v\s*%(%(\a{1,2}|\d+)[]:.)}\t/-]|[-*.·→+])\s+' +let &flp='^\v\s*((\a|\d+)[\]:.)}\t/-]\s|[-\*.·→+]\s)\s*' " formatexpr " expression used for "gq" to format lines