aldantas / vim-custom-surround

Define your own surround patterns

Home Page:http://www.vim.org/scripts/script.php?script_id=5547

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-custom-surround

It's a simple plugin that lets you surround the word under cursor or the current selection with custom strings.

To use it, just call one of the mode-specific commands:

    :SurroundWord <text before> <text after>
    :SurroundSelection <text before> <text after>

You can make your own normal and visual mappings for the above commands, or just use the function customsurround#map to do both for you. For example, to map a LaTeX inline math function just do:

     call customsurround#map('<Leader>m', '\(', '\)')

See the doc for more detailed explanations:

     :h vim-custom-surround

Installation

Use your prefered plugin manager. For Vundle, add

    Plugin 'augustold/vim-custom-surround'

to your .vimrc.

About

Define your own surround patterns

http://www.vim.org/scripts/script.php?script_id=5547

License:GNU General Public License v3.0


Languages

Language:Vim Script 100.0%