suda.vim
hstr
suda.vim | hstr | |
---|---|---|
12 | 36 | |
656 | 3,918 | |
- | - | |
5.9 | 2.4 | |
12 days ago | 7 days ago | |
Vim Script | C | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
suda.vim
-
how can I use my config while in superuser mode?
Personally, I use suda.vim
-
Neovim says it's writing to some files when it doesn't
I've always tried using this plugin and doing SudaWrite, which doesn't work either.
-
don't you hate it when you edit a txt file in VI and then when you going to save it; says that you do not have permission?
In neovim this problem is solved by https://github.com/lambdalisue/suda.vim
-
sudowrite.lua: I wrote a small module that allows writing files as root
This emulates the well known sudo write trick (:w !sudo tee %), which unfortunately doesn't work in neovim. The code is mostly based on suda, except that it's fully written in lua and it's a small module that you can include in your config.
-
cmap alternative in lua ?
ye ol' sudo tee trick does not work in nvim afaik. Use this
- how edit root files in nvim lua??
-
Lua solution to writing a file using sudo
Neovim has numerous issues open about this and some are suggesting using suda.vim which works great. Personally I did not want to use a plugin just for this as all I wanted was to have a command that would replicate :w !sudo tee %.
-
How do you use sudo with neovim while keeping the config in init.lua?
You can see if suda.nvim fits your needs better.
-
YSK : Do not use 'sudo vim/nano/emacs..' to edit a file. Instead, set your $EDITOR and use sudoedit or sudo -e.
There's also Suda.vim
- Should I use vim or neovim?
hstr
-
Linux terminal user
hstr
-
History
I think you might like the hstr tool.
-
Does anyone else get by using ctrl + r 90% of the time?
You might want to check out hh from hstr, supercharged version of this.
-
ioctl and TIOCSTI alternatives
I'm trying to fix a terminal utility call hstr that used the ioctl(0, TIOCSTI, char) function to print the command selected from the user to the terminal ready to be used.
-
Ask HN: Programs that saved you 100 hours? (2022 edition)
You should try hstr: https://github.com/dvorka/hstr
It's saved me countless hours over the years as it's just so much better than regular CTRL-R. Works with regular Bash, no need to switch shells.
- Hstr: Bash and zsh shell history suggest box
-
Is there any way to have a "longterm history" in addition to the normal history?
Check out https://github.com/dvorka/hstr - helps a lot with managing she'll history.
-
Keyboard Shortcuts every Command Line Hacker should know about GNU Readline
I was doing history grep too until someone on HN told me about hstr:
https://github.com/dvorka/hstr
- Jlevy/the-art-of-command-line: Master the command line, in one page
What are some alternatives?
nvim-lua
fzf - :cherry_blossom: A command-line fuzzy finder
octo.nvim - Edit and review GitHub issues and pull requests from the comfort of your favorite editor
ohmyzsh - 🙃 A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
neovim - Vim-fork focused on extensibility and usability
autocomplete - IDE-style autocomplete for your existing terminal & shell
Vim - The official Vim repository
bashmarks - Directory bookmarks for the shell
please - Really tiny sudo replacement
zoxide - A smarter cd command. Supports all major shells.
notes - notes on the tools in my Unix/Linux toolbox, dotfiles, etc
fasd - Command-line productivity booster, offers quick access to files and directories, inspired by autojump, z and v.