Skip to content

thalesmello/vim-textobj-multiline-str

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-textobj-multiline-str

This plugin defines a multiline-str text object for the vim-textobj-user plugin.

demo

Installing

With vim-plug:

Plug 'kana/vim-textobj-user' | Plug 'thalesmello/vim-textobj-multiline-str'

Default mappings

For Python files:

  • aq: around multiline string. Gets the string contents and the quotes.
  • iq: inner multiline string. Gets the string contents without the quotes and immediate linebreaks.

Custom mappings

call textobj#user#map('multilinestr', {
      \   'python': {
      \     'select-a': 'a`',
      \     'select-i': 'i`',
      \   }
      \ })

let g:textobj_multilinestr_no_default_key_mappings = 1

For more details, look at the vim-textobj-user documentation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published