X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/dc71922c768e543c9c3bbb1db5ea6d7fa801a814..716a818c25cf0a654f91dee85df0e47cc9e2146c:/.vimrc?ds=inline;pf=etc diff --git a/.vimrc b/.vimrc index 6712b95..30b4e2a 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,19 +1490,18 @@ 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 / :nohlsearch +map sy :call WhatHighlight() -omap [{ :normal {jj -nmap [{ :normal {jj -omap ]} :normal }kk -nmap ]} :normal }kk +map / :nohlsearch iab => ➬ -let g:airline_theme='minimalist' - try execute pathogen#infect() catch