Marco Hinz
50971a4862
Nvim: adjust VimEnter check due to upstream change
...
Due to a recent change in Nvim [1], our VimEnter check wasn't firing anymore and
thus Startify wouldn't run at startup.
The line2byte() "trick" was replaced by less abusing VimL.
[1]: b051b131f5
Fixes https://github.com/mhinz/vim-startify/issues/549
2023-09-20 13:34:02 +02:00
Marco Hinz
2e5d068572
Nvim: do not set 'shortmess' for Nvim v0.3.4
...
Nvim v0.3.4 bug: https://github.com/neovim/neovim/issues/9885
Since the `shortmess+=I` is just a workaround for a potentional flicker at start
itself, it now requires either Vim or at least Nvim v0.3.5.
A fix was later backported to v0.3.4, but we can't rely on that.
References https://github.com/mhinz/vim-startify/issues/369
2019-05-11 00:42:30 +02:00
Marco Hinz
0459cd0952
Make :SLoad! source last used session on Unix
...
Closes https://github.com/mhinz/vim-startify/issues/352
2019-01-29 23:30:24 +01:00
Marco Hinz
888290d39a
Handle vim -y and vim -M better
2019-01-12 22:13:35 +01:00
Marco Hinz
532f3db6be
Check for empty buffer on VimEnter
...
We check if files were given on the command-line already, but argc() is 0 when
Vim is used as a $MANPAGER.
So, only run Startify if the first buffer is actually empty.
Fixes #310
2018-04-10 12:13:06 +02:00
Marco Hinz
66c90a179e
Rename functions
2018-04-09 17:08:26 +02:00
Marco Hinz
6f621bd99a
Skip creating new buffer if current buffer is empty
...
This prevents buffer-local commands getting lost that were set before startify
was run. E.g. :Git which is set by fugitive.
2018-04-09 17:02:43 +02:00
Marco Hinz
0a81f95abf
Always create new buffer
...
Nowadays :enew won't create a new buffer if the current buffer is empty. So this
won't create an unused, empty, unnamed buffer.
2018-04-09 16:13:47 +02:00
Marco Hinz
95d182979e
Use :SS! to force overwriting a potentially existing session
...
This can be used to avoid the following prompt when using :SSave
"Session already exists. Overwrite? [y/n]"
References #295
2017-11-21 20:13:48 +01:00
Marco Hinz
7f910ed436
Use VimLeavePre for session persistence
2017-06-15 18:15:45 +02:00
Marco Hinz
a16e94e687
Disable intro to avoid potential flashing
...
References #229 .
2017-02-26 03:39:09 +01:00
Marco Hinz
b7398c8135
Check g:startify_session_persistence on VimLeave
...
Closes #274 .
2017-02-25 22:45:12 +01:00
Marco Hinz
72f398ebe2
Don't trigger autocmds on :enew
...
Fixes #257 .
2016-12-26 23:12:51 +01:00
Marco Hinz
549f7f0c1b
Make session_autoload=1 && disable_at_vimenter=1 work
...
References #211 .
2016-03-20 16:28:46 +01:00
Marco Hinz
de709a4dbe
New option: g:startify_update_oldfiles
...
References #192 .
2016-03-07 13:21:16 +01:00
Marco Hinz
2eaa25ba57
Prevent duplicates in v:oldfiles
...
References #192 .
2016-03-07 13:10:45 +01:00
Marco Hinz
7994cae378
Add :SDelete!
2016-02-02 14:54:58 +01:00
Daniel Hahler
96b5fdaa77
Remove duplicate entries when adding to v:oldfiles
...
References #192 .
2015-12-27 14:09:21 +01:00
Marco Hinz
9afab110e9
Do not check v:progname anymore
...
Originally this check was meant to prevent showing the Startify buffer for
certain cases I can't recall anymore.
Now the Startify buffer will be shown at startup if these conditions are true:
1) no arguments were provided to Vim on the commandline
2) the first buffer is empty
2015-11-03 13:05:46 +01:00
Marco Hinz
a58f92e781
Update v:oldfiles on :saveas
...
References #175 .
2015-08-07 00:15:28 +02:00
Marco Hinz
2ea22e2e7e
Simplify marker implementation
...
This commit also fixes loading sessions via the new #open_buffers() method.
References #163 .
2015-06-01 17:07:40 +02:00
Marco Hinz
9ef7fcb502
Small maintenance tasks
2015-04-28 15:34:11 +02:00
Marco Hinz
36ff6db44a
Fix :enew handling (again)
...
fugitive is run at VimEnter and for new buffers that are associated with
files.
Now fugitive commands will be available after start (in the Startify screen),
but it won't work after calling :Startify, since fugitive is designed that
way.
References #33 .
2015-03-25 16:05:26 +01:00
Marco Hinz
5fb1352ca0
Don't clutter v:oldfiles during [,l]vimgrep
2015-03-02 22:06:10 +01:00
Marco Hinz
b5f9682732
Prepend to v:oldfiles for new files too
2015-02-21 13:47:39 +01:00
Marco Hinz
5a60580711
Update recently used files on the fly
...
Startify depends on v:oldfiles which lists recently used files (taken from the
viminfo file). But viminfo only gets updated once in a session: at exiting
Vim. Thus when you worked in a Vim instance for some time and opened multiple
new buffers, v:oldfiles (and therefore :Startify) wouldn't show the most
recently used files anymore.
Luckily v:oldfiles is editable, so now, each new buffer simply prepends its
associated filename to it, making :Startify always up-to-date.
References #148 .
2015-02-11 17:49:22 +01:00
Marco Hinz
d3d5ea68c4
Make "-Vim" another valid v:progname
...
References #147 .
2015-02-03 12:47:02 +01:00
Marco Hinz
aea086205c
Change meaning of g:startify_session_autoload
...
References #142 .
2015-01-08 21:42:54 +01:00
coachshea
b89114f359
Add :SClose
...
References #141 .
2015-01-06 00:47:39 +01:00
Marco Hinz
339cdae1af
Expose "open buffers" functionality for mapping
...
References #123 .
2014-11-22 18:15:29 +01:00
Marco Hinz
d17bc302d4
Fix switching to calling buffer
...
References #115 .
2014-11-13 21:01:45 +01:00
Marco Hinz
d3d01a45ff
Use cleaner line breaking
2014-09-30 12:44:39 +02:00
Marco Hinz
4a788df9b4
Don't save the startify buffer in a session
...
References #106 .
2014-09-07 18:49:49 +02:00
Marco Hinz
19da8f9ee8
Make persistence work with normal sessions
2014-06-11 12:14:21 +02:00
Benjamin Medicke
a4eef8c086
Make startify work with Neovim
2014-06-11 11:41:58 +02:00
Alejandro Exojo
fe5aa8f0ba
Qt Vim deserves some startup love too
2014-05-07 13:01:10 +02:00
Marco Hinz
abffc53f0b
Make startify work for 'vi' too
...
..due to popular demand. :)
Closes #79 .
2014-04-14 23:42:42 +02:00
Marco Hinz
25af84baa0
New option: g:startify_disable_at_vimenter
2013-09-24 18:17:26 +02:00
Marco Hinz
446f7dbbff
Move modelines from bottom to top
2013-09-24 17:41:31 +02:00
Marco Hinz
9e6b819936
Bump version to 1.8
2013-09-04 09:38:53 +02:00
mwcz
7e5cbc067b
Allow progname 'vimx'
...
"I you are running Redhat/CentOS, you can install the vim-X11 package
(if you have gvim then this is already installed). This provides the
vimx command, which is a console version of Vim with X11-clipboard
support."
2013-08-22 20:16:05 +02:00
Marco Hinz
32c62857c9
Clean up VimEnter autocmd
2013-08-05 00:15:27 +02:00
Marco Hinz
516a92060e
Bump to 1.7
2013-08-04 23:35:12 +02:00
Marco Hinz
34436b8da5
Remove VimEnter event after execution
2013-08-04 18:08:57 +02:00
Marco Hinz
0d132390dd
Fix enew handling
...
Closes #33 .
2013-08-04 18:06:05 +02:00
Marco Hinz
53019cc309
Make Startify a scratch buffer again
2013-07-25 13:53:34 +02:00
Marco Hinz
4e9b9a2f31
Bump to 1.6
2013-05-30 10:26:55 +02:00
Marco Hinz
77aa5df09f
Function renaming and reordering
2013-05-25 11:20:18 +02:00
Marco Hinz
3414459d82
Do not mangle global namespace
2013-05-13 19:53:44 +02:00
Marco Hinz
51314fd3c8
Put almost everything into autoload
2013-05-13 19:48:03 +02:00