File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ buffer opens running an n³ process in picker mode.
4444Once you select (see https://github.com/jarun/nnn/wiki/concepts#selection )
4545one or more files and press enter, vim quits the n³ window and opens the
4646first selected file and add the remaining files to the arg list/buffer
47- list.
47+ list. If | nnn#session | is enabled, then n³ will remember where you left off
48+ of when you reopen it.
4849
4950Pressing enter on a file in n³ will pick any earlier selection, pick
5051the file and exit n³.
@@ -146,6 +147,19 @@ g:nnn#action *g:nnn#action*
146147 endfunction
147148<
148149
150+ g:nnn#session *g:nnn#session*
151+ Default: 'none'
152+ How n³ should utilize sessions. Default is 'none' meaning no
153+ persistent sessions. Other options are 'local' for the same
154+ n³ session across a vim session, or 'global' for the same n³
155+ session across everywhere.
156+ >
157+ " use the same nnn session within a vim session, for
158+ " example, so that consecutive uses of :Np will remember
159+ " where you last left off
160+ let g:nnn#session = 'local'
161+ <
162+
149163g:nnn#command *g:nnn#command*
150164 Default: 'nnn'
151165 When you want to override the default n³ command and add
You can’t perform that action at this time.
0 commit comments