Giter Site home page Giter Site logo

suda_smart_edit too slow about suda.vim HOT 9 CLOSED

lambdalisue avatar lambdalisue commented on July 17, 2024
suda_smart_edit too slow

from suda.vim.

Comments (9)

lambdalisue avatar lambdalisue commented on July 17, 2024

maybe we need to add some cache mech. to https://github.com/lambdalisue/suda.vim/blob/master/autoload/suda.vim#L229-L239

Could you try if removing the above block temporarily fix the performance issue?

from suda.vim.

v6cc avatar v6cc commented on July 17, 2024

maybe we need to add some cache mech. to

Not changed, I tried open a small file then switch to a big file, it takes 5 seconds .

then use ctrl+o , but ctrl+i still need same time

from suda.vim.

lambdalisue avatar lambdalisue commented on July 17, 2024

So what exact size for "small" or "big" in your situation?

from suda.vim.

v6cc avatar v6cc commented on July 17, 2024

So what exact size for "small" or "big" in your situation?

/etc/resolv.conf have three lines

/usr/lib/go/src/fmt/print.go have 1176 lines

from suda.vim.

lambdalisue avatar lambdalisue commented on July 17, 2024

Hum... that's not big (I imaged like 1 GB files or so on.)

Well what happens if

  1. Copy /usr/lib/go/src/fmt/print.go as /usr/lib/go/src/fmt/print.txt
  2. Open /usr/lib/go/src/fmt/print.txt with suda.vim

from suda.vim.

v6cc avatar v6cc commented on July 17, 2024

Hum... that's not big (I imaged like 1 GB files or so on.)

Well what happens if

  1. Copy /usr/lib/go/src/fmt/print.go as /usr/lib/go/src/fmt/print.txt
  2. Open /usr/lib/go/src/fmt/print.txt with suda.vim

open /usr/lib/go/src/fmt/print.txt not block

from suda.vim.

lambdalisue avatar lambdalisue commented on July 17, 2024

Then probably it's not suda's problem. It's on Go plugin.

from suda.vim.

v6cc avatar v6cc commented on July 17, 2024

Then probably it's not suda's problem. It's on Go plugin.

set foldmethod=syntax I found this line cause the problem..

this line not in plugin, Is there a way to solve this?

I tried no other plugin, just suda.vim

from suda.vim.

v6cc avatar v6cc commented on July 17, 2024

Then probably it's not suda's problem. It's on Go plugin.

init.vim

call plug#begin('~/.config/nvim/plugged')
Plug 'lambdalisue/suda.vim'
call  plug#end()

let g:suda#prefix = ['suda://', 'sudo://', '_://']
let g:suda_smart_edit = 1

set foldmethod=syntax

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.