parent
ae8cfbb9db
commit
1940c9f9b9
|
@ -157,9 +157,9 @@ function! startify#fortune#quote() abort
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Function: #boxed {{{1
|
" Function: #boxed {{{1
|
||||||
function! startify#fortune#boxed() abort
|
function! startify#fortune#boxed(...) abort
|
||||||
let wrapped_quote = []
|
let wrapped_quote = []
|
||||||
let quote = startify#fortune#quote()
|
let quote = a:0 && type(a:1) == type([]) ? a:1 : startify#fortune#quote()
|
||||||
for line in quote
|
for line in quote
|
||||||
let wrapped_quote += split(line, '\%50c.\{-}\zs\s', 1)
|
let wrapped_quote += split(line, '\%50c.\{-}\zs\s', 1)
|
||||||
endfor
|
endfor
|
||||||
|
|
|
@ -542,9 +542,9 @@ Dynamic example:~
|
||||||
<
|
<
|
||||||
If you go for a dynamic header, you might find the following functions useful:
|
If you go for a dynamic header, you might find the following functions useful:
|
||||||
|
|
||||||
startify#fortune#quote() raw random quote
|
startify#fortune#quote() raw random quote
|
||||||
startify#fortune#boxed() formatted random quote in a box
|
startify#fortune#boxed(...) opt list or formatted random quote in a box
|
||||||
startify#fortune#cowsay() formatted random quote in a box + cow
|
startify#fortune#cowsay() formatted random quote in a box + cow
|
||||||
|
|
||||||
Try them like this:
|
Try them like this:
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue