Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with -p flag #49

Open
cab-1729 opened this issue Jun 21, 2022 · 2 comments
Open

Problem with -p flag #49

cab-1729 opened this issue Jun 21, 2022 · 2 comments

Comments

@cab-1729
Copy link

cab-1729 commented Jun 21, 2022

There is a problem with the -p flag (which is supposed to open multiple files in different tabs).

If I use nvim -p file1 file2 then everything works as expected if the files do not require superuser permission sto write to.
But is file1 requires superuser permissions the file2 is never opened in a separate tab.
If any file is passed as a command line argument that needs superuser permissions, the files passed after that argument are not opened in separate tabs.

@MuhammedZakir
Copy link

MuhammedZakir commented Jun 21, 2022

It's not a problem with -p flag. It happens when you (the current user) don't have read permission for that file. When you open such files, you can see a "Permission Denied" message. To open such files, use SudaRead command, or run nvim using sudo.

@cab-1729
Copy link
Author

Using sudo does solve the problem.
But the current user does have read permissions for the file. Hence the file opens using nvim without sudo, only that the files passed as an argument after that using the -p flag don't open in different tabs regardless of their permissions. The problem does not appear if this plugin is uninstalled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants