Created
July 13, 2017 14:53
-
-
Save nelstrom/869f71dfb196af481a70709476bce26c to your computer and use it in GitHub Desktop.
This file contains hidden or 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! MyFunction() | |
%s/ch/cx/ge | |
endfunction | |
" You can call the function as: | |
" :call MyFunction() | |
command! MyCommand call MyFunction() | |
" You can call the command as: | |
" :MyCommand |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment