Skip to content

Commit 21d10ef

Browse files
committed
Add information in help doc
1 parent 98e51b0 commit 21d10ef

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

doc/nnn.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ buffer opens running an n³ process in picker mode.
4444
Once you select (see https://github.com/jarun/nnn/wiki/concepts#selection)
4545
one or more files and press enter, vim quits the n³ window and opens the
4646
first 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

4950
Pressing enter on a file in n³ will pick any earlier selection, pick
5051
the 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+
149163
g:nnn#command *g:nnn#command*
150164
Default: 'nnn'
151165
When you want to override the default n³ command and add

0 commit comments

Comments
 (0)