Created
December 12, 2017 18:31
-
-
Save jonbri/ebb6291a6aec436c0a96f047978133d0 to your computer and use it in GitHub Desktop.
Switch statement formatting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! FormatSwitch() | |
:normal j | |
:normal vi}> | |
:write | |
endfunction | |
nnoremap <silent> <Plug>FormatSwitchPlug :call FormatSwitch()<CR> | |
\:call repeat#set("\<Plug>FormatSwitchPlug")<CR> | |
nmap cFS <Plug>FormatSwitchPlug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment