aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2018-06-01 00:07:54 +0200
committerMax Christian Pohle2018-06-01 00:07:54 +0200
commit7d10104b42aea22b1f5ec956234801af898ae42f (patch)
treec7aa1d1caa5637d9fba7122f005ca5252b012149
parent72051c9cbac574e23abce233240ec6768193262e (diff)
downloadvim-karlmarks-7d10104b42aea22b1f5ec956234801af898ae42f.tar.bz2
vim-karlmarks-7d10104b42aea22b1f5ec956234801af898ae42f.zip
Added location list to sign function
Is ugly and will be improved
-rw-r--r--vimrc-full5
1 files changed, 4 insertions, 1 deletions
diff --git a/vimrc-full b/vimrc-full
index 9f1f743..7d178ce 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -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>
..