New lists handling
This commit is contained in:
parent
1675e50fca
commit
44c01cf608
2 changed files with 108 additions and 98 deletions
|
@ -77,15 +77,6 @@ Startify basically provides two things:
|
|||
Put these variables into your vimrc. The shown assignments are also the
|
||||
default values.
|
||||
|
||||
============-
|
||||
|
||||
let g:startify_empty_buffer_key = ''
|
||||
|
||||
This creates an additional, hidden mapping for the empty buffer.
|
||||
|
||||
Example: let g:startify_empty_buffer_key = 'o'
|
||||
|
||||
|
||||
============-
|
||||
|
||||
let g:startify_session_dir = '~/.vim/session'
|
||||
|
@ -97,34 +88,34 @@ The default for Windows systems is '$HOME\vimfiles\session'.
|
|||
|
||||
============-
|
||||
|
||||
let g:startify_show_sessions = 1
|
||||
let g:startify_lists = ['files', 'sessions', 'bookmarks']
|
||||
|
||||
List saved sessions in g:startify_session_dir.
|
||||
At the moment startify can show these kind of lists:
|
||||
|
||||
1) Most recently used files.
|
||||
|
||||
This lists the most recently used files using viminfo. The number of files
|
||||
is limited by g:startify_files_number.
|
||||
|
||||
|
||||
============-
|
||||
2) Most recently changed files in the current directory.
|
||||
|
||||
let g:startify_show_files = 1
|
||||
This lists the files from the current directory sorted by modification
|
||||
time. The number of files is limited by g:startify_files_number.
|
||||
|
||||
List recently used files using viminfo.
|
||||
3) Bookmarks.
|
||||
|
||||
The number is limited by g:startify_show_files_number.
|
||||
This lists bookmarks, thus hardcoded files that will always be shown.
|
||||
Have a look at g:startify_bookmarks.
|
||||
|
||||
4) Sessions.
|
||||
|
||||
============-
|
||||
This lists all the sessions saved in the directory
|
||||
g:startify_session_dir.
|
||||
|
||||
let g:startify_show_files_number = 10
|
||||
Therefore, to show all of them in the above order:
|
||||
|
||||
The number of files to list.
|
||||
|
||||
|
||||
============-
|
||||
|
||||
let g:startify_show_dir = 0
|
||||
|
||||
Show files from the current directory sorted by modification time.
|
||||
|
||||
The number is limited by g:startify_show_files_number.
|
||||
let g:startify_lists = ['files', 'dir', 'bookmarks', 'sessions']
|
||||
|
||||
|
||||
============-
|
||||
|
@ -136,6 +127,21 @@ the start screen.
|
|||
|
||||
Example: let g:startify_bookmarks = [ '~/.vimrc' ]
|
||||
|
||||
|
||||
============-
|
||||
|
||||
let g:startify_files_number = 10
|
||||
|
||||
The number of files to list.
|
||||
|
||||
|
||||
============-
|
||||
|
||||
let g:startify_change_to_dir = 1
|
||||
|
||||
When opening a file or bookmark, change to its directory.
|
||||
|
||||
|
||||
============-
|
||||
|
||||
let g:startify_skiplist = []
|
||||
|
@ -160,6 +166,22 @@ name contained in this list.
|
|||
Example: let g:startify_skiplist_server = [ 'GVIM' ]
|
||||
|
||||
|
||||
============-
|
||||
|
||||
let g:startify_empty_buffer_key = 'o'
|
||||
|
||||
This creates an additional, hidden mapping for the empty buffer.
|
||||
|
||||
Default: does not exist
|
||||
|
||||
|
||||
============-
|
||||
|
||||
let g:startify_enable_special = 1
|
||||
|
||||
Show <empty buffer> and <quit>.
|
||||
|
||||
|
||||
============-
|
||||
|
||||
let g:startify_custom_indices = []
|
||||
|
@ -193,13 +215,6 @@ Best practices:
|
|||
- (you might want to keep 'j' and 'k' for navigation)
|
||||
|
||||
|
||||
============-
|
||||
|
||||
let g:startify_enable_special = 1
|
||||
|
||||
Don't show <empty buffer> and <quit>.
|
||||
|
||||
|
||||
============-
|
||||
|
||||
let g:startify_custom_header = ''
|
||||
|
@ -223,13 +238,6 @@ Example:
|
|||
\ ]
|
||||
|
||||
|
||||
============-
|
||||
|
||||
let g:startify_change_to_dir = 1
|
||||
|
||||
When opening a file or bookmark, change to its directory.
|
||||
|
||||
|
||||
==============================================================================
|
||||
4. Commands *startify-commands*
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue