Skip to content

A vim plugin using vim-textobj-user to provide new text objects for dot separated words.

Notifications You must be signed in to change notification settings

hafenr/vim-textobj-dotseparated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Introduction

The textobj-dotseparated plugin provides two new text-objects which are triggered by a. and i. respectively. You can use them when you have to deal with the following type of words:

  • foo.bar.baz

Now, suppose you have to change bar to qux (* for cursor position). You can do the following:

foo.b*ar.bar and type ci. to get foo.*.bar. Or you can type da. to get foobar.

Variable or function names containing dots to separate subwords are often found in the programming language R or in other languages where dots are used for accessing properties of an object.

Installation

I recommend installing the plugin via vundle or vim-plig.

You can also unzip it in your ~/.vim directory. The plugin depends on vim-textobj-user by kana. So you need to install it in order to use this plugin.

Contributors

Acknowledgement

Copyright

Copyright (c) Robin Hafen. Distributed under the same terms as Vim itself.

About

A vim plugin using vim-textobj-user to provide new text objects for dot separated words.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published