All Projects â†’ kurkale6ka â†’ vim-pairs

kurkale6ka / vim-pairs

Licence: GPL-3.0 license
Punctuation text objects: ci/ da; vi@ yiq da<space> ...

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to vim-pairs

Vim Fibo Indent
Fibonacci Indentation for Vim.
Stars: ✭ 244 (+597.14%)
Mutual labels:  vim-plugin
vim-snipp-snapp-snut-and-the-legend-continues
💇 (Experimental) Vim snippet plugin
Stars: ✭ 24 (-31.43%)
Mutual labels:  vim-plugin
searchReplace.vim
Search & Replace, simply & efficiently [neovim only]
Stars: ✭ 26 (-25.71%)
Mutual labels:  vim-plugin
Lusty
LustyExplorer / LustyJuggler for Vim
Stars: ✭ 246 (+602.86%)
Mutual labels:  vim-plugin
Coc.nvim
Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Stars: ✭ 18,268 (+52094.29%)
Mutual labels:  vim-plugin
vim-mysticaltutor
Low-contrast flat colorscheme for Vim and terminals
Stars: ✭ 22 (-37.14%)
Mutual labels:  vim-plugin
Vim Lsp Cxx Highlight
Vim plugin for C/C++/ObjC semantic highlighting using cquery, ccls, or clangd
Stars: ✭ 231 (+560%)
Mutual labels:  vim-plugin
PICO-8.vim
A vim plugin package for PICO-8 programming.
Stars: ✭ 42 (+20%)
Mutual labels:  vim-plugin
vim-textobj-quote
Use ‘curly’ quote characters in Vim
Stars: ✭ 112 (+220%)
Mutual labels:  vim-plugin
vim-textobj-anyblock
A text object for any of '', "", (), {}, [] and <>.
Stars: ✭ 76 (+117.14%)
Mutual labels:  vim-plugin
Vim Ledger
Vim plugin for Ledger
Stars: ✭ 253 (+622.86%)
Mutual labels:  vim-plugin
Nerdtree
A tree explorer plugin for vim.
Stars: ✭ 16,380 (+46700%)
Mutual labels:  vim-plugin
vim-shellcheck
Vim wrapper for ShellCheck, a static analysis tool for shell scripts.
Stars: ✭ 63 (+80%)
Mutual labels:  vim-plugin
Vim Ghost
Vim/Nvim client for GhostText - Edit browser text areas in Vim/Neovim
Stars: ✭ 245 (+600%)
Mutual labels:  vim-plugin
vim-solidity
Syntax highlighting for Solidity in Vim
Stars: ✭ 44 (+25.71%)
Mutual labels:  vim-plugin
Vim Vsnip
Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
Stars: ✭ 224 (+540%)
Mutual labels:  vim-plugin
qf helper.nvim
A collection of improvements for the quickfix buffer
Stars: ✭ 70 (+100%)
Mutual labels:  vim-plugin
miniSnip
Lightweight snippet plugin for Vim
Stars: ✭ 45 (+28.57%)
Mutual labels:  vim-plugin
vim-readme-viewer
📖 Viewing plugin's README easily like vim help
Stars: ✭ 26 (-25.71%)
Mutual labels:  vim-plugin
nvim-contabs
contextual tabs for vim/neovim
Stars: ✭ 20 (-42.86%)
Mutual labels:  vim-plugin

New punctuation text objects

ci/, di;, yi*, vi@ ...
ca/, da;, ya*, va@ ...


ciq (or "") changes content inside ANY kind of quotes
vaq, yiq ...


ci<space>, da<space> ... modify ANY punctuation pair

Supported punctuation signs

` " '
! $ % ^ & * _ - + = : ; @ ~ # | \ , . ? /

Algorithm:

Do in order. If a step succeeds skip the rest.

  1. same line: match under the cursor: act to the right if possible, else to the left
  2. same line: jump to a match on the left, then act to the right if possible or else repeat
  3. same line and ↓: try matching to the right, also past the current line if no match till EOF, start from byte one and do the same till initial position of cursor

Examples:

[] and | will represent the cursor

ciq or ""

Lorem [] dolor "          " adipisicing elit
Lorem    dolor "|" adipisicing elit

da^ or da<space>

Lorem    dolor "    ^ []  ^     " adipisicing elit
Lorem    dolor "         " adipisicing elit

vi@ or vi<space>

Lorem    dolor @        @        [@]  adipisicing elit
Lorem    dolor @        @---------@   adipisicing elit

Note: the above is different from what Vim would do.
explanation: '      '      ['] then ci' WON'T change anything!


di; or di<space>

Lorem  %     %  []  ;            ; elit
Lorem  %     %      ;; elit

gUiq

Lorem    dolor  '    val `  X  ' orem       ` adipisicing elit
Lorem    dolor  '    val `  X  ' OREM       ` adipisicing elit

yi. or yi<space>

Lorem    dolor  sit amet  []   adipisicing elit
incididunt ut labore .dolore. aliqua

Now: dolore is in reg "

""

START OF FILE
Lorem    dolor  ' sit amet     '  adipisicing elit
incididunt ut labore et dolore [] magna aliqua.
EOF

Result after searching for a match and wrapping around EOF:

START OF FILE
Lorem    dolor  '|'  adipisicing elit
incididunt ut labore et dolore [] magna aliqua.
EOF
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].