@@ -14,10 +14,10 @@ File manager for vim/neovim powered by n³.
1414
1515### Install
1616
17- You must install n³ itself . Instructions
17+ n³ must be installed . Instructions
1818[ here] ( https://github.com/jarun/nnn/wiki/Usage#installation ) .
1919
20- Then install using your favorite plugin manager:
20+ Then install the plugin using your plugin manager:
2121
2222``` vim
2323" using vim-plug
@@ -27,39 +27,39 @@ Plug 'mcchrish/nnn.vim'
2727### Usage
2828
2929To open n³ as a file picker in vim/neovim, use the command ` :NnnPicker ` or
30- ` :Np ` or the key-binding ` <leader>n ` . You can pass a directory to ` :NnnPicker `
31- command and opens n³ from there e.g. ` :NnnPicker path/to/somewhere ` .
30+ ` :Np ` or the key-binding ` <leader>n ` . The command accepts an optional path
31+ to open e.g. ` :NnnPicker path/to/somewhere ` .
3232
33- Once you [ select] ( https://github.com/jarun/nnn/wiki/concepts#selection ) one or more files and
34- press <kbd >enter </kbd >, vim quits the n³ window and opens the first selected
35- file and add the remaining files to the arg list/buffer list.
33+ Run the plugin, [ select file(s) ] ( https://github.com/jarun/nnn/wiki/concepts#selection )
34+ and press <kbd >Enter </kbd > to quit the n³ window. Now vim will open the first
35+ selected file and add the remaining files to the arg list/buffer list.
3636
37- Pressing <kbd >enter </kbd > on a file in n³ will pick any earlier selection, pick
37+ Pressing <kbd >Enter </kbd > on a file in n³ will pick any earlier selection, pick
3838the file and exit n³.
3939
4040Note that pressing <kbd >l</kbd > or <kbd >Right</kbd > on a file would open it
4141instead of picking.
4242
4343To discard selection and exit, press <kbd >^G</kbd >.
4444
45- You may have to set ` set hidden ` to make floating window work.
45+ vim config ` set hidden ` may be required for the floating windows to work.
4646
47- Please visit the complete documentation by running ` :help nnn ` .
47+ Complete plugin documentation - ` :help nnn ` .
4848
49- ### Configurations
49+ ### Configuration
5050
5151#### Custom mappings
5252
5353``` vim
5454" Disable default mappings
5555let g:nnn#set_default_mappings = 0
5656
57- " Then set your own
57+ " Set personalized mappings
5858nnoremap <silent> <leader>nn :NnnPicker<CR>
5959
6060
61- " Or override
62- " Start nnn in the current file's directory
61+ " OR override
62+ " Start n³ in the current file's directory
6363nnoremap <leader>n :NnnPicker %:p:h<CR>
6464```
6565
@@ -78,8 +78,8 @@ let g:nnn#layout = { 'window': { 'width': 0.9, 'height': 0.6, 'highlight': 'Debu
7878
7979#### Action
8080
81- You can set extra key-bindings for opening files in different ways. Nothing is
82- set by default to not override n³'s own key-bindings.
81+ It's possible to set extra key-bindings for opening files in various ways.
82+ No default is set so that n³'s key-bindings are not overridden .
8383
8484``` vim
8585let g:nnn#action = {
@@ -88,21 +88,19 @@ let g:nnn#action = {
8888 \ '<c-v>': 'vsplit' }
8989```
9090
91- For example, when inside an n³ window, pressing <kbd >ctrl-t</kbd > will open the
92- selected file in a tab, instead of the current window. <kbd >ctrl-x</kbd > will
93- open in a split an so on. Meanwhile for multi selected files will be loaded in
94- the buffer list.
91+ With the above example, when inside an n³ window, pressing <kbd >^T</kbd > will
92+ open the selected file in a tab instead of the current window. <kbd >^X</kbd > will
93+ open in a split an so on. Multi-selected files will be loaded in the buffer list.
9594
9695#### Persistent session
9796
98- You can configure n³ to use a session so it remembers your place when
99- you reopen it.
97+ n³ sessions can be used to remember the location when it is reopened.
10098
10199``` vim
102- " use the same nnn session within a vim session
100+ " use the same n³ session within a vim session
103101let g:nnn#session = 'local'
104102
105- " use the same nnn session everywhere (including outside vim)
103+ " use the same n³ session everywhere (including outside vim)
106104let g:nnn#session = 'global'
107105```
108106
@@ -111,25 +109,25 @@ Note: If desired, an n³ session can be disabled temporarily by passing
111109
112110#### Command override
113111
114- When you want to override the default n³ command and add some extra flags.
115- Example you want to start n³ in detail mode.
112+ It's possible to override the default n³ command and add some extra program options.
116113
117114``` vim
115+ " to start n³ in detail mode:
118116let g:nnn#command = 'nnn -d'
119117
120- " or pass some env variables
118+ " OR, to pass env variables
121119let g:nnn#command = 'NNN_TRASH=1 nnn -d'
122120```
123121
124122#### ` nnn#pick() `
125123
126- The ` nnn#pick([<dir>][,<opts>]) ` function can be called with custom directory
127- and additional options such as opening file in splits or tabs. Basically a more
128- configurable version of ` :NnnPicker ` command.
124+ The ` nnn#pick([<dir>][,<opts>]) ` function can be called with a custom directory
125+ and additional options such as opening file in splits or tabs. It's a more
126+ configurable version of the ` :NnnPicker ` command.
129127
130128``` vim
131129call nnn#pick('~/some-files', { 'edit': 'vertical split' })
132- " Then you can do all kinds of mappings if you want
130+ " Then add custom mappings
133131```
134132
135133` opts ` can be:
@@ -139,7 +137,7 @@ call nnn#pick('~/some-files', { 'edit': 'vertical split' })
139137
140138#### Environment variables
141139
142- You can define env variables in ` vimrc ` and n³ will detect it .
140+ n³ will detect env variables defined in ` vimrc ` .
143141
144142``` vim
145143let $NNN_TRASH=1
0 commit comments