sideways.vim
vim-eunuch
sideways.vim | vim-eunuch | |
---|---|---|
13 | 27 | |
483 | 1,780 | |
- | - | |
5.5 | 5.0 | |
6 months ago | 3 months ago | |
Ruby | Vim Script | |
MIT License | - |
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.
sideways.vim
-
"vi," to select text between comma
There's a number of plugins for an "argument" text object (mine is sideways), but if you're just looking for a simple "change between commas", here's a great SO answer that explains how to create a mapping like that for yourself in two lines: https://stackoverflow.com/a/44109750/853920
-
mini.basics - Common configuration presets for options/mappings/autocommands
sideways.vim: move arguments left and right (I know this is nowadays done with tree sitter, but there isn't a ts grammar for everything so far)
-
Swapping words
Yeah, I use sideways.vim and vim-exchange. (Not entirely sure which solves what OP is asking about.)
- what is your startup time?
-
Swap any 2 comma separated selected WORDS
I use vim-sideways for this. If vim-swap doesn't work out, give it a shot!
- Features I miss from Jetbrains IDEs
-
How to insert text before end of a quote/brackets?
For the second case Sideways has SidewaysArgumentAppendLast. I mapped it to A (shouldn't conflict with other mappings).
-
How can I do delete in commas, change inside periods? Basically treating periods and commas like quotation, etc.
For argument lists, check out sideways.vim which is smart enough to shift arguments around instead of only selecting them.
-
How can i swap words ?
But there's also another "classic" plugin just for this use case: https://github.com/AndrewRadev/sideways.vim I've never used it though, so can't comment on its use, but it looks pretty good.
-
anyone know an elegant way to swap the orders of two parameters in a function call? foo(bar, baz) becomes foo(baz, bar)
Also not a native solution, but I've been using sideways.vim for a while. I have space as my leader and use leader-L and leader-R.
vim-eunuch
-
Automatically make files with shebang executable using autocommands
Honorable mention : vim-eunch has this feature plus many other convenience commands.
-
Best way to manipulate files inside neovim?
I use eunuch.vim mostly by executing :Rename or :Remove or :Move. I also use this plugin whenever I have to manipulate multiple files in the working directory using :Cfind -name '*.lua' -type f which puts all .lua files in the cwd in the quickfix list then doing something like :cfdo lua vim.lsp.buf.format() to format all files.
-
Why :find is so slow compared to vscode/sublime file search feature?
If you are avoiding vim plugins due to external, non-standard dependencies (e.g. fzf), then you might be pleased to know that some plugins can solve this problem with standard linux utilities, like :Cfind and :Lfind from tpope/vim-eunuch which use the find linux utility.
-
Which file explorer do you use?
I use vim-dirvish(you probably want to pair this with vim-enunch), it's a more minimal version of Netrw.
- How can I rename (case sensitive) a buffer and reopen it?
-
Renaming current file
Try vim-eunuch lua {'tpope/vim-eunuch', config = function () vim.cmd('cnoreabbrev rename Rename') --:rgb + to trigger end},
-
Problems Moving Files with Netrw
I use netrw but I do moving, renaming etc with vim-eunuch and have done for about ten years. It just works how you'd expect it to.
- what is your startup time?
-
What shell commands do you invoke a lot from vi?
You might want to look into :Delete from tpope's vim-eunuch, along with wrappers for mkdir, chmod, etc.
-
Move file open in window relative to files location?
I did try: 1. Using the vim file explorer move command: 1. It does not implement autocomplete 1. I cannot use the vim movement shortcuts to move in the path, so I need to use the arrow keys to get before the file name. (dealbreaker) 1. It does not rename the buffer 1. Using eunuch plugin Move command: https://github.com/tpope/vim-eunuch 1. Relative paths were dependent on doing a change directory command first. That is fine but bothersome. 1. Required me to write the filename manually if I used the autocomplete. I did not find an efficient way to paste the current file name (without the path) to a command argument. 1. All in all quite close but still not good enough for me.
What are some alternatives?
argtextobj.vim - Text-object like motion for arguments
nvim-tree.lua - A file explorer tree for neovim written in lua
nvim-revJ.lua - Nvim-plugin for doing the opposite of join-line (J) of arguments written in lua.
barbar.nvim - The neovim tabline plugin.
VSCode-Hungry-Delete - To delete an entire block of whitespace or tab, and reduce the time programmers need to press backspace
neo-tree.nvim - Neovim plugin to manage the file system and other tree like structures.
vim-argumentative - Argumentative aids with manipulating and moving between function arguments.
neovim - Vim-fork focused on extensibility and usability
switch.vim - A simple Vim plugin to switch segments of text with predefined replacements
indentLine - A vim plugin to display the indention levels with thin vertical lines
splitjoin.vim - Switch between single-line and multiline forms of code
vim-bbye - Delete buffers and close files in Vim without closing your windows or messing up your layout. Like Bclose.vim, but rewritten and well maintained.