vim-suda icon indicating copy to clipboard operation
vim-suda copied to clipboard

vimdiff does not work with suda.vim

Open IMOKURI opened this issue 5 years ago โ€ข 4 comments

nvim -u minimal_init.vim -d <ใƒ•ใ‚กใ‚คใƒซ1> <ใƒ•ใ‚กใ‚คใƒซ2> ใฎใ‚ˆใ†ใซ้–‹ใ„ใŸใจใใซใ€ๆœ€ๅˆใฎใƒ•ใ‚กใ‚คใƒซใŒ้–‹ใ‹ใ‚Œใฆใ—ใพใ„ใ€ๆจชไธฆใณใง่กจ็คบใŒใงใใชใ„ใฎใงใ™ใŒใ€่กจ็คบใ™ใ‚‹ๆ–นๆณ•ใฏใ‚ใ‚Šใพใ™ใงใ—ใ‚‡ใ†ใ‹ใ€‚

neovim ใƒใƒผใ‚ธใƒงใƒณ

$ nvim --version
NVIM v0.5.0-nightly-87-g2bbbb34ce
Build type: Release
LuaJIT 2.1.0-beta3

minimal_init.vim


let g:suda_smart_edit = 1

set runtimepath=$VIMRUNTIME

set packpath=./


ใงใ€ pack/minimal/start/ ้…ไธ‹ใซ clone ใ—ใฆใ„ใพใ™ใ€‚

ใ‚ˆใ‚ใ—ใใŠ้ก˜ใ„ใ„ใŸใ—ใพใ™ใ€‚

IMOKURI avatar Sep 01 '20 03:09 IMOKURI

nvim -d A B ใฏใ‚ตใƒใƒผใƒˆใงใใฆใ„ใชใ„ใ‚ˆใ†ใงใ™ใ€‚ ใจใ‚Šใ‚ใˆใš่กจ็คบใ—ใŸใ„ๅ ดๅˆใฏใ€ใ‹ใ‚ใ‚Šใซ Vim ใซๅ…ฅใฃใฆใ‹ใ‚‰ใ‚ตใ‚คใƒ‰ใƒใ‚คใ‚ตใ‚คใƒ‰ใง้–‹ใใ€ใใ‚Œใžใ‚Œใง diffthis ใ‚’ๅฎŸ่กŒใ™ใ‚‹็ญ‰ใงๅฏพๅ‡ฆใ—ใฆใใ ใ•ใ„ใ€‚

lambdalisue avatar Sep 01 '20 04:09 lambdalisue

Hello, thanks to Google Translator I could read the Japanese messages to find out you have the same problem like me. Also it seems to be the same problem like in issue 23. I have no fix for suda, but found the following solution to work. This way, suda_smart_edit will be disabled when nvim is opened using the -d argument:

if ! &diff
  let g:suda_smart_edit = 1
endif 

I hope it helps.

sleepywitti avatar Apr 29 '21 21:04 sleepywitti