Skip to content

Commit

Permalink
visrc: move global settings to start handler
Browse files Browse the repository at this point in the history
There is no need to set global settings for each window.
  • Loading branch information
martanne committed Sep 27, 2016
1 parent 521925a commit 34acb0b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions visrc.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
-- load standard vis module, providing parts of the Lua API
require('vis')

vis.events.start = function()
-- Your global configuration options e.g.
-- vis:command('map! normal j gj')
end

vis.events.win_open = function(win)
-- enable syntax highlighting for known file types
vis.filetype_detect(win)

-- Your local configuration options e.g.
-- Your per window configuration options e.g.
-- vis:command('set number')
-- vis:command('map! normal j gj')
end

0 comments on commit 34acb0b

Please sign in to comment.