vim-surround
micro-editor
Our great sponsors
vim-surround | micro-editor | |
---|---|---|
83 | 226 | |
13,017 | 23,832 | |
- | - | |
0.0 | 8.9 | |
10 months ago | 5 days ago | |
Vim Script | Go | |
- | 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.
vim-surround
-
Difftastic, a structural diff tool that understands syntax
I don't know what exactly you mean by pasting around the second selection, but you can paste selections, registers or even files at specific lines with some vim-fu. If it's generic enough you could write a function or even keyboard shortcut if it's very simple.
I have set ",',(,[,{ in visual mode to cut the selection insert the pairs then paste it back as a very hacky solution, but it gets the job done. If you want something more advanced to add or change anything around the selection tpope has solved that with vim-surround[1].
- Surround.vim: Delete/change/add parentheses/quotes/XML-tags with ease (2022)
-
Macro usage of replace
ysw https://github.com/tpope/vim-surround basically i surround the word with " So basically i wanted to surround the first word in line qoutes and then replace the first occurence of = with : Example:
-
Wrapping a range of lines in an html tag?
vim-surround is likely the plugin answer.
-
Quick Text Shortcuts?
If you have Tim Pope's vim-surround plugin, you can also add this to your Vimrc:
-
How do you manually install plugins
If you don't want to leverage Vim's package feature or you want to put your plugins in some other place, add the folder of the plugin to your :h 'runtimepath'. For example, if you download Tim Pope's vim-surround at ~\Documents\vim-surround, you should add this to your Vim configuration:
-
How to select multiple lines which are a 'component' quickly?
I'm using the vim-surround plugin by tPope and I know I can do ysw to surround words with whatever tag i want, I also know about cst (Change surrounding tag). But I'm wondering if there is a quick and easy way to wrap components. Some components might have closing tag and some components might not.
-
Is there anything like "vim-surround" built-in?
Is there any similar plugin to https://github.com/tpope/vim-surround?
-
ShadowVim embeds Neovim inside Xcode
Vim plugins (without UI) work out of the box. Hello vim-surround, argtextobj.vim and whatnot.
-
Vim function to move following word into parentheses?
If you don't insist on staying in insert mode then you can use vim-surround, which is perfect for this: yse
micro-editor
- Modeless Vim
-
Essential Command Line Tools for Developers
To see more screenshots of micro, showcasing some of the default color schemes, see here.
-
Go: What We Got Right, What We Got Wrong
Not sure these are really popular, but I cannot resist advertising a few utilities written in Go that I regularly use in my daily workflow:
- gdu: a NCDU clone, much faster on SSD mounts [1]
- duf: a `df` clone with a nicer interface [2]
- massren: a `vidir` clone (simpler to use but with fewer options) [3]
- gotop: a `top` clone [4]
- micro: a nice TUI editor [5]
Building this kind of tools in Go makes sense, as the executables are statically compiled and are thus easy to install on remote servers.
[1]: https://github.com/dundee/gdu
[2]: https://github.com/muesli/duf
[3]: https://github.com/laurent22/massren
-
Text Editor: Data Structures
> The worst way to store and manipulate text is to use an array.
Claim made from theoretical considerations, without any actual reference to real-world editors. The popular Micro[1] text editor uses a simple line array[2], and performs fantastically well on real-world editing tasks.
Meanwhile, ropes are so complicated that even high-quality implementations have extremely subtle bugs[3] that can lead to state or content corruption.
Which data structure is "best" is not just a function of its asymptotic performance. Practical considerations are equally important (arguably more so).
[1] https://github.com/zyedidia/micro
[2] https://github.com/zyedidia/micro/blob/master/internal/buffe...
- A nano like text editor built with pure C
-
A simple guide for configuring sudo and doas
There are two main ways to configure sudo.The first one is using the sudoers file.It is located at /etc/sudoers for Linux,and /usr/local/etc/sudoers for FreeBSD respectively.The paths are different,but the configuration works in the same way. A typical sudoers file looks like this. The sudoers file must be edited with the visudo command,which ensures the config is free of errors.Running this command as the root user will result in opening vi by default.If you want to use a different editor you can set the VISUAL environment varaible to the editor you want. For example,if you want to use micro as the text editor run:
-
what terminal emulator do you use and why?
found that micro has dedicated info page for copy paste
-
Microsoft is exploring adding a command line text editor into Windows, and it wants your feedback
micro: winget install zyedidia.micro
- What is the best basic ass text editor?
-
Revolutionizing Text Editor Navigation and Altarnative to Vim and GNUEmacs
I am all for your efforts.
I am very keyboard centric. My sweet spot is macOS keyboard shortcuts. Especially those as defined by BBEdit.
But I have learned from all the platforms I have worked on. (TRS-DOS, MSDOS, OS/2, macOS, Windows, Linux)
I never get into Vim primarily because of HJKL. I have spent many hours trying. But I do use IJKL as arrow keys via hardware keyboard macros, AutoHotKey, Karabiner Elements, or the like. I have mostly bent Windows and KDE Linux to my Mac-like keyboard standards. (And my Mac’s are heavily customized too)
I do heavily use CTRL and arrow keys for word by word navigation, and all the other arrow key bindings. So that is a personal deal breaker for me.
You should take a look at the Micro editor. It shares many of your ideas.
https://micro-editor.github.io
I would like to follow your work. Please post a link to a blog or git repository
What are some alternatives?
nvim-autopairs - autopairs for neovim written in lua
helix - A post-modern modal text editor.
vim-sandwich - Set of operators and textobjects to search/select/edit sandwiched texts.
filemanager-plugin - A file manager plugin for the editor "Micro"
Neovim-from-scratch - 📚 A Neovim config designed from scratch to be understandable
kakoune - mawww's experiment for a better code editor
tabout.nvim - tabout plugin for neovim
xclip - Command line interface to the X11 clipboard
delimitMate - Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
editorconfig-core-go - EditorConfig Core written in Go
emmet-vim - emmet for vim: http://emmet.io/
html-to-markdown - ⚙️ Convert HTML to Markdown. Even works with entire websites and can be extended through rules.