Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
mattmartini edited this pageNov 4, 2025 ·87 revisions

vim-textobj-user is a library plugin forVim to defineyour owntext objects without handling many edge cases and complex stuffs.

To avoid reinventing wheels, please add links to plugins to the following tables when you write your own text objects or find text objects written by somebody:

General purpose text objects

Plugin nameAuthorSummary
vim-textobj-backticksfvictorioa`/i` for a region between backticks, andii` for excluding inner whitespace
vim-textobj-betweenthincaaf{char}/if{char} for a region between{char}s
vim-textobj-blanklinesdeathlyfrantica<Space>/i<Space> for groups of blank (only whitespace) lines
vim-textobj-braceJulianaj/ij for the closest region between any of()[]or{}.
vim-textobj-chainmemberD4KUam/im for elements in chained method calls and member accesses
vim-textobj-chunkChun-Yangac/ic for all the lines contain one of {}, [], or () pairs
vim-textobj-commentgltsac/ic for a comment
vim-textobj-continuous-linerhysdav/iv for lines continued by\ in C++, sh, and others
vim-textobj-datetimekanaada/ida and others for date and time such as2013-03-13,19:51:45,2013-03-13T19:51:50, and more
vim-textobj-diffkanaadh/idh and others for various elements in diff(1) output
vim-textobj-entirekanaae/ie for the entire region of the current buffer
vim-textobj-erbwhatyouhideaE/iE for erb tags
vim-textobj-foldkanaaz/iz for a block of folded lines
vim-textobj-foldsominiaz/iz for a block of folded lines;iz does not include fold marker lines
vim-textobj-functionkanaaf/if andaF/iF for a function / extensible for any language
vim-textobj-gitguttergilliganih for a changed hunk marked byvim-gitgutter
vim-textobj-heredocsrsrchboyaH/iH for heredocs
vim-textobj-indblockgltsao/io for a block of indentation (i.e. spaces)
vim-textobj-indentkanaai/ii for a block of similarly indented lines /aI/iI for a block of lines with the same indentation
vim-textobj-indented-paragraphpianohackerar/ir for a paragraph with the same indentation /g)/g( for moving between paragraphs at the same indentation
vim-textobj-jabraceskanaaj{X}/ij{X} for a block surrounded by various Japanese braces such as「foo」 and【bar】
vim-textobj-keyvaluevimtakuak/iv for key / value
vim-textobj-lastpatkanaa//i/ for a region matched to the last search pattern
vim-textobj-linekanaal/il for the current line
vim-textobj-matchitadriaanzonam/im formatchit.vim pairs
vim-textobj-multiline-strthalesmelloaq/iq for triple-quoted multi-line strings
vim-textobj-parametersgura,/i, for an argument to a function
vim-textobj-pastedtextsaaguerogb for last pasted text
vim-textobj-pathpaulhybryantap/ip for next file path (w/o basename),aP/iP for the previous file path (w/o basename)
vim-textobj-punctuationbeloglazovau/iu for the text between the cursor position and the closest punctuation in front
vim-textobj-quotepreservimaq/iqaQ/iQ for “typographic-quoted” strings
vim-textobj-quotesbeloglazovaq/iq for the closest pairs of quotes of any type
vim-textobj-sentence-linectholhoas/is for sentences delimited by newlines, like forfountain syntax
vim-textobj-sentencepreservimas/is for a sentence of prose (overrides hard-coded native object & motion)
vim-textobj-signify-hunkkillphiih for a changed hunk marked byvim-signify (fork fromvim-textobj-gitgutter)
vim-textobj-spacesaihooooooooaS/iS for a region filled with various space characters
vim-textobj-syntaxkanaay/iy for a syntax-highlighted item
vim-textobj-topleveladolencaT/iT for "top level" blocks of code in arbitrary programming language
vim-textobj-underscorelucapettea_/i_ for a region between_s such asbar infoo_bar_baz
vim-textobj-urijcebau/iu for a URI, also includes URI handlers and is easy to extend
vim-textobj-urlmattnau/iu for a URL
vim-textobj-variable-segmentJulianav/iv for a region between either_sor camelCaseVariables
vim-textobj-word-columnidbriiac/ic/aC/iC for columns of text defined by word or WORD
vim-textobj-xmlattrwhatyouhideax/ix for XML/HTML attributes
vim-textobj-curlytelemachusic/ac/iC/aC and movements for text inside of “curly quotes” and ‘curly quotes’
vim-textobj-restful-requestxbotir/ar for restful requests written inrest.nvim format and key mappings for navigation to the previous or next request.

For specific languages

Plugin nameAuthorSummary
vim-textobj-blade-directiveadriaanzonFor Laravel Blade:ad /id for directives
vim-textobj-clanglibclang-vimFor C and C++ blocks, etc.:i;f /a;c
vim-textobj-cssjasonlongFor CSS, Sass, Less, etc.:ic /ac
vim-textobj-elixiramiraliesFor elixir blocks (bothdo end andfn end)
vim-textobj-elixirandylae / ie for Elixir blocks
vim-textobj-haskellgilliganFor Haskell:ih for a function
vim-textobj-headedblockD4KUFor C-like blocks with lines immediately above (if, while, function, class, ...)
vim-textobj-helpkanaFor Vim:help documents
vim-textobj-latexrbonvallFor LaTeX:a$/i$ for an$equation$, and more
vim-textobj-luaspacewanderFor Lua:a/i forfunction,al/il for a block, andac/ic for a condition
vim-textobj-markdowncoachsheatext objects and movements for markdown and rmarkdown files
vim-textobj-perlthincaFor Perl:af/if for a perl functionaF/iF - as before with surrounding blank lines
vim-textobj-phpakiyanFor PHP:aP/iP for a range between the PHP delimiters such as<?php and?>
vim-textobj-pythonbpsFor Python:af/if for a function,ac/ic for a class
vim-textobj-rubytekFor Ruby:a/ifunction,class, andr for a block.an for aScoped::Name.
vim-textobj-rubyblocknelstromFor Ruby:ar/ir for a block
vim-textobj-sigilvimtakuFor Perl:ig for a variable such as$foo /ag for a more complex expression
vim-textobj-typstalberto-lazariFor Typstm/M for inline/block math,list items,* for strong and_ for emph
Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp