https://github.com/aarzilli/emacs-textobjects
vim-like text objects implementation for emacs
https://github.com/aarzilli/emacs-textobjects
Last synced: 5 months ago
JSON representation
vim-like text objects implementation for emacs
- Host: GitHub
- URL: https://github.com/aarzilli/emacs-textobjects
- Owner: aarzilli
- License: gpl-3.0
- Created: 2010-06-19T07:46:41.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2010-06-19T08:39:11.000Z (almost 16 years ago)
- Last Synced: 2025-01-24T19:46:07.323Z (over 1 year ago)
- Language: Emacs Lisp
- Homepage:
- Size: 105 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: license.txt
Awesome Lists containing this project
README
This is a rudimentary of a vim-like text objects functionality for emacs.
For people unfamiliar with vim, text objects are a way of specifying a chunk of text around the cursor with few keystrokes while cutting or copying.
Currently supported text objects are:
i( text inside parenthesis
a( like "i(" but including surrounding "(" and ")"
i[ text inside brackets
a[ like "i[" but including surrounding "[" and "]"
i{ text inside braces
a{ like "i{" but including surrounding "{" and "}"
i" text inside double quotes
a" like "i"" but including surrounding double quotes
i' text inside single quotes
a' like "i'" but including surrounding quotes
i` text inside backquotes
a` like "i`" but including surrounding backquotes
Defined sequences are:
C-x w cuts the specified text object
C-x W copies the specified text object