Comments (9)
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.
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.
So what exact size for "small" or "big" in your situation?
from suda.vim.
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.
Hum... that's not big (I imaged like 1 GB files or so on.)
Well what happens if
- Copy
/usr/lib/go/src/fmt/print.go
as/usr/lib/go/src/fmt/print.txt
- Open
/usr/lib/go/src/fmt/print.txt
with suda.vim
from suda.vim.
Hum... that's not big (I imaged like 1 GB files or so on.)
Well what happens if
- Copy
/usr/lib/go/src/fmt/print.go
as/usr/lib/go/src/fmt/print.txt
- Open
/usr/lib/go/src/fmt/print.txt
with suda.vim
open /usr/lib/go/src/fmt/print.txt not block
from suda.vim.
Then probably it's not suda's problem. It's on Go plugin.
from suda.vim.
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.
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)
- make it work with persistent undo HOT 6
- On-demand loading HOT 2
- suda conflict with vim-go/coc.nvim when "navigate in golang lib src" HOT 5
- How do I use this? HOT 1
- vimdiff does not work with suda.vim HOT 2
- Cannot retry inputting password HOT 6
- Prompted for password even if non is required HOT 12
- support :saveas HOT 1
- doas support? HOT 14
- suda doesn't work in nvim in nixos HOT 4
- Prompt to re-read file after SudaWrite HOT 2
- lost suda#prefix option HOT 1
- [suda] dd: failed to open 'suda:///etc/i3blocks.conf': No Such file or directory HOT 1
- SudaWrite failure based on cwd? HOT 15
- Problem with -p flag HOT 2
- How do I install this? HOT 1
- Duplicate buffers with smart edit HOT 4
- neovim lsp jump to definition throws error on readonly files when using suda_smart_edit HOT 3
- When sudo is configured to ask for a fingerprint, suda halts for a long time HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from suda.vim.