From fc5156e5867877ecb576ba2e0219f050e6c54d6c Mon Sep 17 00:00:00 2001
From: Max Christian Pohle
Date: Fri, 3 Nov 2017 23:34:01 +0100
Subject: Improved remote-send menu by removing current session

---
 vimrc-full | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'vimrc-full')

diff --git a/vimrc-full b/vimrc-full
index 92324c3..d197acc 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -151,7 +151,8 @@ if has("gui_running")
 
   " its possible to define alternative fonts (order matters)
   set guifont=
-  set guifont=Hasklug\ Nerd\ Font\ Mono\ Semi-Bold\ 10
+  set guifont=Hasklig\ Semi-Bold\ 10
+  set guifont+=Hasklug\ Nerd\ Font\ Mono\ Semi-Bold\ 10
   set guifont+=FuraMono\ Nerd\ Font\ Mono\ Medium\ 11
   set guifont+=Source\ Code\ Pro\ for\ Powerline\ SemiBold\ 10
   set guifont+=LiterationMono\ Nerd\ Font\ Mono\ 10
@@ -291,7 +292,9 @@ else           " default Vim?
     menu &UI.refresh\ server\ list :call Refresh_server_list()<CR>
     menu &UI.-Sep1- :
     for s in split(serverlist(), '\n')
-      execute ':menu &UI.&Open\ in\ '.s." :execute \":bd<Bar>:call remote_send('".s."', ':e ' . expand('#:p')  . '\\<CR\\>')<Bar>:call remote_foreground('".s."')\"<CR>"
+      if v:servername != s
+        execute ':menu &UI.&Open\ in\ '.s." :execute \":bd<Bar>:call remote_send('".s."', ':e ' . expand('#:p')  . '\\<CR\\>')<Bar>:call remote_foreground('".s."')\"<CR>"
+      endif
     endfor
   endfunction
   autocmd! VimEnter * call Refresh_server_list()
-- 
cgit v1.2.3