1
revolver.nvim/plugin/hflip.vim

14 lines
332 B
VimL

" in plugin/hflip.vim
if exists('g:loaded_hflip') | finish | endif " prevent loading file twice
let s:save_cpo = &cpo " save user coptions
set cpo&vim " reset them to defaults
" command to run our plugin
command! HFlip lua require'hflip'.hflip()
let &cpo = s:save_cpo " and restore after
unlet s:save_cpo
let g:loaded_hflip = 1