X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/b546781a4dfb5c244a8813c1ee3e6383e3d725fb..77078b9f629a09eb531c8b8c8206812f70fcaa93:/.vimrc diff --git a/.vimrc b/.vimrc index 6712b95..171bf25 100644 --- a/.vimrc +++ b/.vimrc @@ -670,7 +670,7 @@ set fo=tcroqn1l " pattern to recognize a numbered list " (local to buffer) " set flp=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s* -let &flp='^\v\s*(((\a|\d{,4})[]:.)}/])+|[-\*.·→+])\s+' +let &flp='^\v\s*(((#|\a|\d{,4}|[ivx]{,4})[]:.)}/])+|[-\*.·→+])\s+' " formatexpr " expression used for "gq" to format lines @@ -1474,14 +1474,6 @@ augroup tsperrorinsert autocmd InsertLeave * match Error /\s\+$/ augroup end -" treat wrapped lines normally -nnoremap k gk -nnoremap gk -inoremap gk -nnoremap j gj -nnoremap gj -inoremap gj - " this isn't windows, screw the F1->help key map imap @@ -1498,7 +1490,13 @@ map ft :%s,⇝·*, ,g:nohlsearch`` " replace fake spaces with real ones map fs :%s,·, ,g:nohlsearch`` -map sy :echo synIDattr(synID(line("."), col("."), 1), "name") +function WhatHighlight() + echon 'hi<' . synIDattr(synID(line('.'),col('.'),1),'name') . '> ' + echon 'trans<' . synIDattr(synID(line('.'),col('.'),0),'name') . '> ' + echon 'lo<' . synIDattr(synIDtrans(synID(line('.'),col('.'),1)),'name') . '>' +endfunction + +map sy :call WhatHighlight() map / :nohlsearch