update for newer neovim
This commit is contained in:
parent
5a6e686ab3
commit
1bc33a19cc
3 changed files with 12 additions and 33 deletions
|
|
@ -1 +0,0 @@
|
|||
/home/barak/.vimrc
|
||||
3
.vim/init.vim
Normal file
3
.vim/init.vim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
||||
let &packpath = &runtimepath
|
||||
source ~/.vimrc
|
||||
|
|
@ -1,3 +1,12 @@
|
|||
if exists("loaded_bclosePlugin")
|
||||
finish
|
||||
endif
|
||||
if (v:progname == "ex")
|
||||
finish
|
||||
endif
|
||||
let loaded_bclosePlugin = 1
|
||||
|
||||
|
||||
"here is a more exotic version of my original Kwbd script
|
||||
"delete the buffer; keep windows; create a scratch buffer if no buffers left
|
||||
function s:Kwbd(kwbdStage)
|
||||
|
|
|
|||
|
|
@ -1,32 +0,0 @@
|
|||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
function Send_to_Screen(text)
|
||||
if !exists("g:screen_sessionname") || !exists("g:screen_windowname")
|
||||
call Screen_Vars()
|
||||
end
|
||||
|
||||
echo system("screen -S " . g:screen_sessionname . " -p " . g:screen_windowname . " -X stuff '" . substitute(a:text, "'", "'\\\\''", 'g') . "'")
|
||||
endfunction
|
||||
|
||||
function Screen_Session_Names(A,L,P)
|
||||
return system("screen -ls | awk '/Attached/ {print $1}'")
|
||||
endfunction
|
||||
|
||||
function Screen_Vars()
|
||||
if !exists("g:screen_sessionname") || !exists("g:screen_windowname")
|
||||
let g:screen_sessionname = ""
|
||||
let g:screen_windowname = "0"
|
||||
end
|
||||
|
||||
let g:screen_sessionname = input("session name: ", "", "custom,Screen_Session_Names")
|
||||
let g:screen_windowname = input("window name: ", g:screen_windowname)
|
||||
endfunction
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
vmap <C-c><C-c> "ry :call Send_to_Screen(@r)<CR>
|
||||
nmap <C-c><C-c> vip<C-c><C-c>
|
||||
|
||||
nmap <C-c>v :call Screen_Vars()<CR>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue