dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 0acc69ca89a2939740951addaae0e450df140c05
parent a904991a8fa1e0aa70837cedf58cafaecb2cae0d
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Sun, 19 Jan 2020 13:33:01 +0100

vim: lorem ipsum functionality

Former-commit-id: 09e93bf3cccf02c1cd7a229d8c245d6ca554f27f
Diffstat:
Avim/autoload/lorem_ipsum.vim | 4++++
Avim/plugin/lorem_ipsum.vim | 6++++++
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/vim/autoload/lorem_ipsum.vim b/vim/autoload/lorem_ipsum.vim @@ -0,0 +1,4 @@ +function! lorem_ipsum#GetParagraphs(num) + execute "read !curl -sL http://metaphorpsum.com/paragraphs/".a:num + execute "normal }gw".a:num."{0" +endfunction diff --git a/vim/plugin/lorem_ipsum.vim b/vim/plugin/lorem_ipsum.vim @@ -0,0 +1,6 @@ +if exists("g:loaded_lorem_ipsum") || &cp + finish +endif + +let g:loaded_lorem_ipsum = 1 +command! -nargs=1 Lorem call lorem_ipsum#GetParagraphs(<args>)