Skip to content

vim-textobj-string is a Vim plugin to provide text objects (as and is by default) to select a string.

License

Notifications You must be signed in to change notification settings

rbtnn/vim-textobj-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-textobj-string

vim-textobj-string is a Vim plugin to provide text objects (as and is by default) to select a string.

// as
 "abc\"def"
 <-------->

 'abc''def'
 <-------->

// is
 "abc\"def"
  <------>

 'abc''def'
  <------>

Installation

This is an example of installation using vim-plug.

Plug 'rbtnn/vim-textobj-string'
Plug 'kana/vim-textobj-user'

Supported strings

  • Single Quoted strings: 'abc''def'
  • Double Quoted strings: "abc\"def"
  • Verbatim Strings in C#: @"abc""def"

Requirements

Configuration

By default this motion is mapped to 's'. The key mapping can be overridden by adding a line similar to this to your vimrc:

let g:vim_textobj_string_mapping = 'x'

License

Distributed under MIT License. See LICENSE.

About

vim-textobj-string is a Vim plugin to provide text objects (as and is by default) to select a string.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published