Commit graph

115 commits

Author SHA1 Message Date
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
Marco Hinz b7175c0456 Bump to 1.5 2013-05-08 17:19:19 +02:00
Marco Hinz 47a96067c4 Better symlink handling 2013-05-08 17:18:11 +02:00
Marco Hinz 6266849a05 make v/a/b silent 2013-05-07 16:02:49 +02:00
Marco Hinz c333d7a15a never close windows 2013-05-05 18:43:11 +02:00
Marco Hinz b5205e17a7 ignore sessions for S/V/B 2013-05-03 10:56:06 +02:00
Marco Hinz 9349ae7bf9 make [e] and [q] unmarkable 2013-05-02 22:15:33 +02:00
Marco Hinz d671a0957c add :SDelete 2013-05-02 21:16:26 +02:00