mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated vim plugins
This commit is contained in:
@ -149,6 +149,7 @@ let [s:lcmap, s:prtmaps] = ['nn <buffer> <silent>', {
|
||||
\ 'CreateNewFile()': ['<c-y>'],
|
||||
\ 'MarkToOpen()': ['<c-z>'],
|
||||
\ 'OpenMulti()': ['<c-o>'],
|
||||
\ 'YankLine()': [],
|
||||
\ 'PrtExit()': ['<esc>', '<c-c>', '<c-g>'],
|
||||
\ }]
|
||||
|
||||
@ -1325,6 +1326,18 @@ fu! s:OpenMulti(...)
|
||||
unl! s:tabct
|
||||
endf
|
||||
|
||||
fu! s:YankLine(...)
|
||||
let @" = s:getinput()
|
||||
let has_marked = exists('s:marked')
|
||||
if !has_marked
|
||||
let line = ctrlp#getcline()
|
||||
if line == '' | retu | en
|
||||
let marked = { 1 : fnamemodify(line, ':p') }
|
||||
en
|
||||
let @" = join(values(has_marked ? s:marked : marked), "\n")
|
||||
cal s:PrtExit()
|
||||
endf
|
||||
|
||||
fu! s:OpenNoMarks(md, line)
|
||||
if a:md == 'a'
|
||||
let [s:marked, key] = [{}, 1]
|
||||
|
Reference in New Issue
Block a user