Vim helpers for developing Safari extensions
Vim script
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Vim Safariext

Vim plugin with helpers for developing Safari Extensions. Mainly developed to reload a extension without having to press that dang ol' Reload button.


  • The following commands apply to the extension currently chosen in Safari's extension builder.

    • :SafariextInstall
    • :SafariextUninstall
    • :SafariextReload
    • :SafariextInspectGlobal
    • :SafariextBuild
  • Open Safari extension builder with :SafariextOpen.

  • Each command can be mapped. These are the mappings I use.

    nnoremap <leader>eo :SafariextOpen<cr>
    nnoremap <leader>ei :SafariextInstall<cr>
    nnoremap <leader>eu :SafariextUninstall<cr>
    nnoremap <leader>er :SafariextReload<cr>
    nnoremap <leader>eg :SafariextInspectGlobal<cr>
    nnoremap <leader>eb :SafariextBuild<cr>


My preferred installation method is Vundle. Install Vundle and add Plugin 'flipxfx/vim-safariext' to your vimrc.


  • You can keep extension builder hidden behind Safari when using reload.
  • The script does work when Safari is in fullscreen and extension builder is open on another space, but you will need to switch to the Safari window manually.