Skip to content
TmpFinger edited this page Jan 28, 2019 · 13 revisions

A list of community-provided patches.

  • smartcase and literal search options
    A sample setup, where / searches for fixed strings, g/ - for regular expressions:
    vis.events.subscribe(vis.events.INIT, function()
        vis:command'set smartcase on'
        vis:map(vis.modes.NORMAL, '/', function() vis:command'set literal on' vis:feedkeys'<vis-search-forward>' end)
        vis:map(vis.modes.NORMAL, 'g/', function() vis:command'set literal off' vis:feedkeys'<vis-search-forward>' end)
    end)
Clone this wiki locally