comparison plugins/core/core.vim @ 17:412c33afd395

Update for core and some minor fixes
author Luka Sitas <lsitas@avatarasoftware.com>
date Fri, 05 Dec 2025 08:48:49 -0500
parents
children
comparison
equal deleted inserted replaced
16:d30762aa23dd 17:412c33afd395
1 function PopupCommand(command)
2 let buf = term_start(a:command, {'hidden': 1, 'term_finish': 'close'})
3 let winid = popup_create(buf, {'minwidth': 120, 'minheight': 28})
4 endfunction
5
6 function! ReadOnlyPopup(content)
7 let lines = split(a:content, "\n")
8 let winid = popup_create(lines, {'minwidth':120, 'minheight':28})
9 let buf = winbuf(winid)
10 call setbufvar(buf, '&modifiable', 0)
11 call setbufvar(buf, '&bufhidden', 'wipe')
12 endfunction
13
14 function! ExecuteCommand(command)
15 " a:command is a shell command string, e.g. 'hg status'
16 return system(a:command . ' 2>&1')
17 endfunction