Skip to content

vim-scripts/underlinetag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

This is a mirror of http://www.vim.org/scripts/script.php?script_id=3494

What is this?
==================================
While I'm reading source code , I use tags and tagjump facility.
But to know what word I could jump is not possible at a glance.

This mini-plugin provide facility to underline tagged keyword.

How to use?
================================
Underline
----------------------
    :UnderlineTagOn

Crear
----------------------
    :UnderlineTagOff

Toggle
----------------------
    :UnderlineTagToggle

Mapping
----------------------

    nnoremap <Space>] :<C-u>UnderlineTagToggle<CR>

Register to autocmd Hook
-------------------------
If you whan to tag underlined automatically as default.
Set following snippet to your .vimrc

    augroup UnderlineTag
      autocmd!
      autocmd BufEnter *.py UnderlineTagOn
    augroup END

Customize
-------------------------
### syntax

    let g:underlinetag_syntax = 'syntax keyword UnderlineTag %s containedin=ALLBUT,.*String.*,.*Comment.*,cIncluded,.*Function.*'

### highlight

    let g:underlinetag_highlight = 'highlight UnderlineTag gui=underline cterm=underline term=underline'


About

underline tagged word to know the word hyperlinked.

Resources

Stars

Watchers

Forks

Packages

No packages published