Skip to content

atsuya0/dps-surrounding.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dps-surrounding.vim

Add, change or remove brackets and quotes.

Supported characters.
(), [], {}, <>, '', "", ``

Install

Please refer to the link to install deno.
https://deno.land/#installation

dein.vim

[[plugins]]
repo = 'vim-denops/denops.vim'

[[plugins]]
repo = 'atsuya0/dps-surrounding.vim'

SurroundLine

A state where the cursor is at the second character.
execute SurroundLine <.

s1

SurroundWord

A state where the cursor is at the second character.
execute SurroundWord ".

s2

RmSurrounding

A state where the cursor is at the `.
execute RmSurrounding.

s3

ChSurrounding

A state where the cursor is at the (.
execute ChSurrounding <.

s4

Example mappings

nmap <Leader>s [surrounding]
nnoremap <silent> [surrounding]l :SurroundLine<space>
nnoremap <silent> [surrounding]w :SurroundWord<space>
nnoremap <silent> [surrounding]c :ChSurrounding<space>
nnoremap <silent> [surrounding]r :RmSurrounding<CR>

About

Add, change or remove brackets and quotes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published