diff options
author | Max Christian Pohle | 2018-06-01 00:07:54 +0200 |
---|---|---|
committer | Max Christian Pohle | 2018-06-01 00:07:54 +0200 |
commit | 7d10104b42aea22b1f5ec956234801af898ae42f (patch) | |
tree | c7aa1d1caa5637d9fba7122f005ca5252b012149 | |
parent | 72051c9cbac574e23abce233240ec6768193262e (diff) | |
download | vim-7d10104b42aea22b1f5ec956234801af898ae42f.tar.bz2 vim-7d10104b42aea22b1f5ec956234801af898ae42f.zip |
Added location list to sign function
Is ugly and will be improved
-rw-r--r-- | vimrc-full | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -560,7 +560,10 @@ if has("autocmd") | |||
560 | \ g, | 560 | \ g, |
561 | menu &List.location.signs\ to\ list | 561 | menu &List.location.signs\ to\ list |
562 | \<Tab>CMD | 562 | \<Tab>CMD |
563 | \ :execute ":call setloclist(0, map(get(getbufinfo('.')[0], 'signs'), {_, p->extend(p, {'bufnr':buffer_number('.'), 'text':get(p, 'name')})}))"<CR> | 563 | \ :execute ":call setloclist(0, map(get(getbufinfo('%')[0], 'signs'), {_, p->extend(p, {'bufnr':buffer_number('.'), 'text':get(p, 'name')})}))"<CR> |
564 | menu &List.location.list\ to\ signs | ||
565 | \<Tab>CMD | ||
566 | \ :call execute(extend(['sign define LocationListEntry text=L', 'sign unplace *'], map(getloclist('%'), {key, val->'sign place '.(key+100).' name=LocationListEntry line='.val['lnum'].' buffer='.buffer_number('%')})))<CR> | ||
564 | menu &Jump.list | 567 | menu &Jump.list |
565 | \<Tab>:jumps | 568 | \<Tab>:jumps |
566 | \ :jumps<CR> | 569 | \ :jumps<CR> |