Giter Site home page Giter Site logo

Comments (4)

lambdalisue avatar lambdalisue commented on August 15, 2024

Please provide a minimal vimrc and minimal reproduction steps

from suda.vim.

spapanik avatar spapanik commented on August 15, 2024

After cleaning up my plugins, the minimal init.vim is:

set nocompatible

call plug#begin()
Plug 'bogado/file-line'
Plug 'lambdalisue/suda.vim'
call plug#end()

let g:suda_smart_edit = 1

opening a file that requires sudo to write to it, eg by nvim /etc/hosts will open two buffers as can be seen by :ls:

:ls
  2 #h   "suda:///etc/hosts"            line 1
  3 %a=  "/etc/hosts"                   line 1

instead of just one, and the active buffer is the ReadOnly one.

from suda.vim.

lambdalisue avatar lambdalisue commented on August 15, 2024

Got it. Well, it's kinda bug thanks 👍

from suda.vim.

lambdalisue avatar lambdalisue commented on August 15, 2024

https://github.com/lambdalisue/suda.vim/blob/6bffe36862faa601d2de7e54f6e85c1435e832d0/autoload/suda.vim#L236

It seems the previous buffer is removed... Hum...

from suda.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.