From 1bc33a19cc87b752a28dd285f11e91bb344de8a7 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Thu, 12 Apr 2018 13:17:30 -0700 Subject: [PATCH] update for newer neovim --- .vim/init.vim | 4 +++- .vim/plugin/bclose.vim | 9 +++++++++ .vim/plugin/slime.vim | 32 -------------------------------- 3 files changed, 12 insertions(+), 33 deletions(-) mode change 120000 => 100644 .vim/init.vim delete mode 100644 .vim/plugin/slime.vim diff --git a/.vim/init.vim b/.vim/init.vim deleted file mode 120000 index 4d1e87b..0000000 --- a/.vim/init.vim +++ /dev/null @@ -1 +0,0 @@ -/home/barak/.vimrc \ No newline at end of file diff --git a/.vim/init.vim b/.vim/init.vim new file mode 100644 index 0000000..f182e5b --- /dev/null +++ b/.vim/init.vim @@ -0,0 +1,3 @@ +set runtimepath^=~/.vim runtimepath+=~/.vim/after +let &packpath = &runtimepath +source ~/.vimrc diff --git a/.vim/plugin/bclose.vim b/.vim/plugin/bclose.vim index 3769df4..3c1bb19 100644 --- a/.vim/plugin/bclose.vim +++ b/.vim/plugin/bclose.vim @@ -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) diff --git a/.vim/plugin/slime.vim b/.vim/plugin/slime.vim deleted file mode 100644 index 940c349..0000000 --- a/.vim/plugin/slime.vim +++ /dev/null @@ -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 "ry :call Send_to_Screen(@r) -nmap vip - -nmap v :call Screen_Vars() -