Skip to content

Instantly share code, notes, and snippets.

@oitzujoey
Created October 9, 2022 20:52
Show Gist options
  • Save oitzujoey/d4d7e3820c619ff8c13c7c3e7251b9bf to your computer and use it in GitHub Desktop.
Save oitzujoey/d4d7e3820c619ff8c13c7c3e7251b9bf to your computer and use it in GitHub Desktop.
(require :vis)
;; `WIN_OPEN' will be converted to `win_open'
(vis.events.subscribe vis.events.WIN_OPEN
(defun [win]
(vis@command "set number on")
(vis@command "set autoindent on")
(vis@command "set tabwidth 4")
(vis@command "set theme dark-16")
(vis@command "set expandtab on")
(vis@command "set ignorecase on")))
(defun nmap (k b)
(vis@map vis.modes.NORMAL k b))
(nmap ";;" :<vis-window-next>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment