Skip to content

Vim plugin to highlight the last opened but unclosed delimiter from the cursor position forward.

Notifications You must be signed in to change notification settings

arnar/vim-matchopen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

MatchOpen

A simple Vim plugin to highlight the last opened, but unclosed delimiter. Based on Vim's own matchparen.vim.

Example:

synIDattr(synID(line("."), col("."), 0), "name") 
               ^            ^
               |            if cursor is here
               this is highlighted

By default the delimiters are highlighted the same as vim highlights matching parentheses. To change this, set the MatchOpen highlight group in your .vimrc. E.g.:

hi link MatchOpen Error

Note: This is a preliminary version for testing. Only works for regular parenthesis and has no documentation.

Warning: Like matchparen.vim, this installs an autocommand run whenever the cursor is moved. It may be too slow if you have large folds collapsed in the current window, or very long lines. It can be turned it off with :NoMatchLastOpen, and on again with :DoMatchLastOpen.

About

Vim plugin to highlight the last opened but unclosed delimiter from the cursor position forward.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published