vim-easy-align
vim-sandwich
vim-easy-align | vim-sandwich | |
---|---|---|
21 | 35 | |
4,027 | 1,389 | |
- | - | |
0.0 | 5.0 | |
almost 4 years ago | 2 months ago | |
Vim Script | Vim Script | |
- | - |
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-easy-align
- How to align columns using tabs automatically? (Preferably using `mini.align`)
-
In mini.align, is there a way to align by specific occurrence of a character?
As part of my journey to moving to Lua, I'm trying to move from vim-easy-align to mini.align.
-
Markdown format table
Not exactly what you are asking for, but table formatting is usually enough with general purpose align plugins: - mini.align - junegunn/vim-easy-align - godlygeek/tabular
-
How to line up columns
For aligning text table data I usually used this plugin
-
mini.align - align text interactively (like 'vim-easy-align', but in Lua and slightly different mechanics)
I am happy to announce the release of mini.align - module of mini.nvim for aligning text interactively (with or without live preview). This is mostly designed after junegunn/vim-easy-align, but is implemented in Lua and has slightly different alignment specification and user interaction lifecycle.
-
My Vim Configurations
call plug#begin() " The default plugin directory will be as follows: " - Vim (Linux/macOS): '~/.vim/plugged' " - Vim (Windows): '~/vimfiles/plugged' " - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged' " You can specify a custom plugin directory by passing it as the argument " - e.g. `call plug#begin('~/.vim/plugged')` " - Avoid using standard Vim directory names like 'plugin' " Make sure you use single quotes " Shorthand notation; fetches https://github.com/junegunn/vim-easy-align Plug 'junegunn/vim-easy-align' " Any valid git URL is allowed Plug 'https://github.com/junegunn/vim-github-dashboard.git' " Multiple Plug commands can be written in a single line using | separators Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' " On-demand loading Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plug 'tpope/vim-fireplace', { 'for': 'clojure' } " Using a non-default branch Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' } " Using a tagged release; wildcard allowed (requires git 1.9.2 or above) Plug 'fatih/vim-go', { 'tag': '*' } " Plugin options Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' } " Plugin outside ~/.vim/plugged with post-update hook Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } " vim-airline " display the statusline at the bottom of the vim Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' " ale " check syntax on the contents of text buffers Plug 'dense-analysis/ale' " Initialize plugin system call plug#end() "================ " General settings "================ syntax on set cursorline set backspace=indent,eol,start " Show line numbers " set number " Show command in bottom bar " set showcmd " Visual autocomplete for command menu set wildmenu " Redraw only when necessary, speeds up macros set lazyredraw set hlsearch " system clipboard set clipboard=unnamed " remove all trailing whitepsace " https://vim.fandom.com/wiki/Remove_unwanted_spaces au BufWritePre * :%s/\s\+$//e " The NERD Tree noremap 1 1gt noremap 2 2gt noremap 3 3gt noremap 4 4gt noremap 5 5gt noremap 6 6gt noremap 7 7gt noremap 8 8gt noremap 9 9gt noremap 0 :tablast au BufNewFile,BufRead * set expandtab au BufNewFile,BufRead * set shiftwidth=4 au BufNewFile,BufRead * set softtabstop=4 au BufNewFile,BufRead * set tabstop=4 "=========================== " Language specific settings "=========================== " Python au BufNewFile,BufRead *.py set expandtab au BufNewFile,BufRead *.py set shiftwidth=4 au BufNewFile,BufRead *.py set softtabstop=4 au BufNewFile,BufRead *.py set tabstop=4 " Markdown au BufNewFile,BufRead *.md set expandtab au BufNewFile,BufRead *.md set shiftwidth=4 au BufNewFile,BufRead *.md set softtabstop=4 au BufNewFile,BufRead *.md set tabstop=4
- Whenever I'm looking for plugins these days [OC]
-
what vimL plugins are you still using?
vim-easy-align - I haven't yet found a Lua-based equivalent with the same flexibility.
-
align.nvim - A minimal plugin to align your lines to a certain character, string, or Lua pattern
Also does this plugin support operator-pending mode like vim-easy-align does? For instance doing gaip, ("go align in paragraph; commas) in normal mode aligns all commas in the current paragraph.
-
Aligning text. Prevent lsp.buf.formatting from shifting inline comments?
Regarding your last question, there’s this: https://github.com/junegunn/vim-easy-align
vim-sandwich
-
Surround: how to change foo(bar) to bar
vim-sandwich has this too (although syntax by default is sdf).
- Installing argtextobj.vim
-
How would I wrap a word, prefix it, and finally suffix it?
For example with vim-sandwich you can literally type: siw"sa"ffunctionCall
-
Comment 1 thing in neovim (or plugins) that changed your life, but very few people know about
can't live without my prefered surround plugin
-
neovim plugins that have improved your workflow
vim-sandwich
-
What extra and useful textobj does vim have?
https://github.com/machakann/vim-sandwich (is and iss)
- Whenever I'm looking for plugins these days [OC]
-
Is there a way Is there a way to combine da' and da" ?
This might not be exactly what you're looking for, but vim-sandwich provides the as text object, that goes to whatever surrounding you're in, whether it's quotes, parens, \begin{environment}...\end{environment} in TeX files, or whatever other sandwich recipes you have set up.
-
what vimL plugins are you still using?
vim-sandwich - nvim-surround looks good but is still relatively new and has some missing features compared to alternatives.
-
Introducing nvim-surround, a plugin for adding/changing/deleting surrounding delimiters
Other related plugins that I know of: * https://github.com/tpope/vim-surround * https://github.com/machakann/vim-sandwich * https://github.com/echasnovski/mini.nvim
What are some alternatives?
goyo.vim - :tulip: Distraction-free writing in Vim
vim-surround - surround.vim: Delete/change/add parentheses/quotes/XML-tags/much more with ease
LanguageClient-neovim - Language Server Protocol (LSP) support for vim and neovim.
surround.nvim - A surround text object plugin for neovim written in lua.
nyoom.nvim - A Neovim framework and doom emacs alternative for the stubborn martian hacker. Powered by fennel and the oxocarbon theme
nvim-surround - Add/change/delete surrounding delimiter pairs with ease. Written with :heart: in Lua.
vim-awesome - Awesome Vim plugins from across the universe
vim-matchup - vim match-up: even better % :facepunch: navigate and highlight matching words :facepunch: modern matchit and matchparen. Supports both vim and neovim + tree-sitter.
tagbar - Vim plugin that displays tags in a window, ordered by scope
vim-exchange - Easy text exchange operator for Vim
vim-visual-star-search - Start a * or # search from a visual block
kakoune - mawww's experiment for a better code editor