From e7971e24dade99477824b68130894c70b23f199e Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Thu, 5 Mar 2020 10:17:46 -0700 Subject: Updating paste command depending on if it's vim or nvim --- plugin/vim-options.vim | 4 ++-- 1 file 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 y :call system('nc -w 1 172.17.0.1 41401', @0) let $EditorDir=$HOME.'/.config/nvim/' let $SessionDir='.vimcache' silent! execute '!mkdir -p .vimcache/backup' else + nnoremap y :call system('nc -w 1 127.0.0.1 41401', @0) let $EditorDir=$HOME.'/.vim/' let $SessionDir='.' endif @@ -126,8 +128,6 @@ function! SaveSession() endfunction nnoremap ess :call SaveSession() nnoremap esr :source $SessionDir/session.vim -" Paste -nnoremap y :call system('nc -w 1 172.17.0.1 41401', @0) " Delete current file and purge buffer function! Rm() :call delete(expand('%')) | bdelete! -- cgit v1.2.3