diff options
author | Max Christian Pohle | 2017-11-03 23:34:01 +0100 |
---|---|---|
committer | Max Christian Pohle | 2017-11-03 23:34:01 +0100 |
commit | fc5156e5867877ecb576ba2e0219f050e6c54d6c (patch) | |
tree | 83c1b963aa98fe6f499b7977c951cf007442741d /vimrc-full | |
parent | 694a8236d1418c51cafeefcbbdaa0c76844a6a0a (diff) | |
download | vim-fc5156e5867877ecb576ba2e0219f050e6c54d6c.tar.bz2 vim-fc5156e5867877ecb576ba2e0219f050e6c54d6c.zip |
Improved remote-send menu by removing current session
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -151,7 +151,8 @@ if has("gui_running") | |||
151 | 151 | ||
152 | " its possible to define alternative fonts (order matters) | 152 | " its possible to define alternative fonts (order matters) |
153 | set guifont= | 153 | set guifont= |
154 | set guifont=Hasklug\ Nerd\ Font\ Mono\ Semi-Bold\ 10 | 154 | set guifont=Hasklig\ Semi-Bold\ 10 |
155 | set guifont+=Hasklug\ Nerd\ Font\ Mono\ Semi-Bold\ 10 | ||
155 | set guifont+=FuraMono\ Nerd\ Font\ Mono\ Medium\ 11 | 156 | set guifont+=FuraMono\ Nerd\ Font\ Mono\ Medium\ 11 |
156 | set guifont+=Source\ Code\ Pro\ for\ Powerline\ SemiBold\ 10 | 157 | set guifont+=Source\ Code\ Pro\ for\ Powerline\ SemiBold\ 10 |
157 | set guifont+=LiterationMono\ Nerd\ Font\ Mono\ 10 | 158 | set guifont+=LiterationMono\ Nerd\ Font\ Mono\ 10 |
@@ -291,7 +292,9 @@ else " default Vim? | |||
291 | menu &UI.refresh\ server\ list :call Refresh_server_list()<CR> | 292 | menu &UI.refresh\ server\ list :call Refresh_server_list()<CR> |
292 | menu &UI.-Sep1- : | 293 | menu &UI.-Sep1- : |
293 | for s in split(serverlist(), '\n') | 294 | for s in split(serverlist(), '\n') |
294 | execute ':menu &UI.&Open\ in\ '.s." :execute \":bd<Bar>:call remote_send('".s."', ':e ' . expand('#:p') . '\\<CR\\>')<Bar>:call remote_foreground('".s."')\"<CR>" | 295 | if v:servername != s |
296 | execute ':menu &UI.&Open\ in\ '.s." :execute \":bd<Bar>:call remote_send('".s."', ':e ' . expand('#:p') . '\\<CR\\>')<Bar>:call remote_foreground('".s."')\"<CR>" | ||
297 | endif | ||
295 | endfor | 298 | endfor |
296 | endfunction | 299 | endfunction |
297 | autocmd! VimEnter * call Refresh_server_list() | 300 | autocmd! VimEnter * call Refresh_server_list() |