1
revolver.nvim/plugin/hflip.vim

14 lines
332 B
VimL
Raw Normal View History

2022-10-02 21:50:43 +00:00
" 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