aboutsummaryrefslogtreecommitdiff
path: root/plugin/vim-options.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/vim-options.vim')
-rw-r--r--plugin/vim-options.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim
index c0d3c5f..e1ef2a5 100644
--- a/plugin/vim-options.vim
+++ b/plugin/vim-options.vim
@@ -55,10 +55,12 @@ au BufLeave *.py call clearmatches()
" Neovim (Docker) vs Vim
if has('nvim')
+ nnoremap <leader>y :call system('nc -w 1 172.17.0.1 41401', @0)<CR>
let $EditorDir=$HOME.'/.config/nvim/'
let $SessionDir='.vimcache'
silent! execute '!mkdir -p .vimcache/backup'
else
+ nnoremap <leader>y :call system('nc -w 1 127.0.0.1 41401', @0)<CR>
let $EditorDir=$HOME.'/.vim/'
let $SessionDir='.'
endif
@@ -126,8 +128,6 @@ function! SaveSession()
endfunction
nnoremap <leader>ess :call SaveSession()<CR>
nnoremap <leader>esr :source $SessionDir/session.vim<CR>
-" Paste
-nnoremap <leader>y :call system('nc -w 1 172.17.0.1 41401', @0)<CR>
" Delete current file and purge buffer
function! Rm()
:call delete(expand('%')) | bdelete!