Commit graph

538 commits

Author SHA1 Message Date
Marco Hinz
b08d65a967
Make buffer readonly again
This time we pay more attention to when the buffer will still be written by the
plugin itself.

Note to self: Never commit after midnight.
2017-01-19 14:07:27 +01:00
Marco Hinz
42a317bc9e
Revert "Make buffer readonly"
This reverts commit 5c4ed4a34a.
2017-01-19 13:16:31 +01:00
Marco Hinz
5c4ed4a34a
Make buffer readonly
This is done to avoid accidentally saving the Startify buffer to disk.

For why Startify is not using buftype=nofile in the first place, see `:h
startify-faq-05`.

References #265.
2017-01-19 03:49:14 +01:00
Marco Hinz
44be5fc486
Fortune: remove PL-specific quote 2017-01-19 01:51:04 +01:00
Marco Hinz
8e1b21fb04
Doc: replace FAQ 05
The old FAQ 05 was obsolete.

References #265.
2017-01-19 01:34:43 +01:00
Marco Hinz
1d722c72f9
Fortune: add new quotes 2017-01-19 00:47:28 +01:00
Marco Hinz
b8da06ad2c
Doc: add cowsay() example 2017-01-12 01:40:45 +01:00
Marco Hinz
5affa1fb89
Add :scriptencoding to fortune.vim 2017-01-11 20:57:27 +01:00
Marco Hinz
e8756ee862
Fortune: make cowsay() take optional characters
Example:

    let g:startify_custom_header =
        \ startify#fortune#cowsay('═','║','╔','╗','╝','╚')
2017-01-11 20:54:36 +01:00
Marco Hinz
b9e9a8addb
Fortune: readd quotes
Oops..
2017-01-11 20:23:41 +01:00
Marco Hinz
f7c4e8a0cb
Doc: update g:startify_session_delete_buffers
References #262.
2017-01-11 16:59:16 +01:00
Marco Hinz
579b106724
Make g:startify_session_delete_buffers = 1 the default
References #262.
2017-01-11 16:28:38 +01:00
Marco Hinz
3510ff837c
README: update screenshot 2017-01-11 13:17:59 +01:00
Marco Hinz
f3044c7f52
Fortune: handle multibyte characters 2017-01-11 12:57:33 +01:00
Marco Hinz
89bf0a5c24
New option: g:startify_fortune_use_unicode
References #261.
2017-01-10 14:03:22 +01:00
Marco Hinz
af521fa617
Fix s:sort_by_mtime()
Fixes #260.
2017-01-07 14:13:07 +01:00
Marco Hinz
28cfff5ba9
Sessions: filter foox.vim only if foo.vim exists
We used to filter all sessions ending with "x.vim", because of session extra
files. (See 10. in `:h :mks`.)

To avoid false positives, we now only filter a session "foox.vim", if there is
also an accompanying session "foo.vim".

References #259.
2017-01-06 00:36:58 +01:00
Marco Hinz
c26fcfcd17
Fortune: add Alan Perlis quotes
Closes #256.
2017-01-02 14:39:06 +01:00
Marco Hinz
72f398ebe2
Don't trigger autocmds on :enew
Fixes #257.
2016-12-26 23:12:51 +01:00
Marco Hinz
881246ed5c
Mappings: add s:nowait to j and k 2016-12-20 11:39:27 +01:00
Marco Hinz
3a1ed53393
Remove "wait" arg from s:register 2016-12-20 11:29:17 +01:00
Marco Hinz
8b8cc3fdba
Fortune: add new quotes 2016-12-20 11:28:47 +01:00
Marco Hinz
685760fb69
Remove g:startify_mapping_nowait
This option got obsoleted by 07b122f.
2016-12-07 13:15:40 +01:00
Marco Hinz
07b122f7b4
Enforce mapping order when using <nowait>
Opposed to normal mappings, the definition order is important when using
<nowait> mappings.

Simple test case:

:enew | nnoremap <buffer><nowait> 1 :echo "foo"<cr>| nnoremap <buffer><nowait> 11 :echo "bar"<cr>

Then hit 1 in normal mode.

:enew | nnoremap <buffer><nowait> 11 :echo "foo"<cr>| nnoremap <buffer><nowait> 1 :echo "bar"<cr>

Then hit 1 in normal mode again.

References #252.
2016-12-06 21:57:49 +01:00
Marco Hinz
3a5ac99e12
Doc: add g:startify_padding_left 2016-11-27 02:43:22 +01:00
Nate
c14a677496
Add g:startify_padding_left
Closes https://github.com/mhinz/vim-startify/pull/250
2016-11-27 02:39:09 +01:00
Marco Hinz
43a322edb6
FAQ 08: improve example 2016-11-24 20:32:24 +01:00
Marco Hinz
df32cef08b
Enable g:startify_mapping_nowait by default
Closes #247.
2016-11-22 10:36:46 +01:00
Marco Hinz
9732427469 Don't silence system()
References #243.
2016-10-31 22:53:10 +01:00
Marco Hinz
150571becb Revert "Ignore "ln" errors"
This reverts commit 7b8f614b09.
2016-10-31 22:47:42 +01:00
Marco Hinz
7b8f614b09 Ignore "ln" errors
References #243.
2016-10-31 13:02:12 +01:00
Marco Hinz
7a2c7da36d Unsafe: filter directories
References #242.
2016-10-28 16:07:30 +02:00
Marco Hinz
9e865c823b
Typo 2016-10-15 14:43:29 +02:00
Marco Hinz
9923657918
Two Startify buffers shouldn't share certain data (part 3) 2016-10-15 14:36:25 +02:00
Marco Hinz
bd1ea1b347
Two Startify buffers shouldn't share certain data (part 2)
References #240.
2016-10-14 20:21:07 +02:00
Marco Hinz
3a0cc7df67
Two Startify buffers shouldn't share certain data
References #240.
2016-10-14 20:15:47 +02:00
Marco Hinz
ab3513c8ea
Two different buffers mustn't have the same filename
Closes #240.
2016-10-14 19:37:51 +02:00
Marco Hinz
74471c5274 Windows: handle spaces properly
References #239.
2016-10-13 14:27:30 +02:00
Steve Dignam
98034672bb Disable colorcolumn in startify buffer
In a previous [issue][1] someone asked to disable colorcolumn, but it was
fixed with by disabling cursorcolumn in a [pull request][2].

Both should be disabled.

This change disables colorcolumn.

[1]: https://github.com/mhinz/vim-startify/issues/80
[2]: https://github.com/mhinz/vim-startify/pull/83
2016-10-11 17:57:02 +02:00
Steve Dignam
caa7faf6e1 added check for fortune uft-8 encoding
Added check so unicode box characters are only used when the encoding of
vim is set to uft-8. Otherwise, the default ascii characters are used
2016-10-10 14:15:38 -04:00
Steve Dignam
65d117764f Added box drawing characters for fortune / cowsay
See the following link for more info on box drawing characters:
https://en.wikipedia.org/wiki/Box-drawing_character
2016-10-09 23:11:14 -04:00
Marco Hinz
3f7b8d7b5e Doc: add remark about nested autocmds 2016-07-21 17:09:15 +02:00
Marco Hinz
cbcf3f2518 Only emit User event if there is a receiving end 2016-07-21 17:03:55 +02:00
Marco Hinz
6751427eb1 Fortune: typo 2016-07-19 19:47:20 +02:00
Marco Hinz
84a296eb5c Session autoload: handle spaces in session path 2016-07-01 02:16:29 +02:00
Marco Hinz
f41732a392 Bookmarks: consider delete_buffers option on session autoload
References https://github.com/mhinz/vim-startify/issues/231
2016-07-01 01:49:18 +02:00
Marco Hinz
41801d60cb Bookmarks: wipe directory buffers on session autoload
References https://github.com/mhinz/vim-startify/issues/231
2016-07-01 01:41:05 +02:00
Marco Hinz
1d73c869e9 Don't use fnameescape() twice on paths
References https://github.com/mhinz/vim-startify/issues/230
2016-06-27 15:56:58 +02:00
Marco Hinz
dbaa025424 Too much escaping
References #227.
2016-06-08 11:53:27 +02:00
Marco Hinz
26cff271ef Silence options 2016-06-02 13:22:11 +02:00