aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2020-03-05 10:17:46 -0700
committerCody Hiar <cody@hiar.ca>2020-03-05 10:17:46 -0700
commite7971e24dade99477824b68130894c70b23f199e (patch)
tree17e1b45531f7a98d1a5ce71fc889ed3b0bf12aaa
parentaa2f7ebde404d813e40ec1c4da14f836b2741533 (diff)
Updating paste command depending on if it's vim or nvim
-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!