22
33File manager for vim/neovim powered by n³.
44
5+ https://user-images.githubusercontent.com/7200153/127453278-3e638e33-707a-49c8-b34e-225c225906b1.mov
6+
57<p align =" center " >
6- <img width =" 934 " src =" https://user-images.githubusercontent.com/7200153/77138110-8dd94600-6aab-11ea-925f-8e159b8f0ad4.png " >
78 <small >colorscheme <a href =" https://github.com/pgdouyon/vim-yin-yang " >yin</a ></small >
89</p >
910
1011### Requirements
1112
12131 . n³
13- 2 . Neovim or Vim 8.1 with terminal support
14+ 2 . ` has('nvim') || has('terminal') ` with terminal support
15+ 3 . Optional ` has('nvim-0.5') || has('popupwin') ` for floating window
1416
1517### Install
1618
@@ -26,9 +28,9 @@ Plug 'mcchrish/nnn.vim'
2628
2729### Usage
2830
29- To open n³ as a file picker in vim/neovim, use the command ` :NnnPicker ` or
30- ` :Np ` or the key-binding ` <leader>n ` . The command accepts an optional path
31- to open e.g. ` :NnnPicker path/to/somewhere ` .
31+ To open n³ as a file picker in vim/neovim, use the command ` :NnnPicker ` or the
32+ key-binding ` <leader>n ` . The command accepts an optional path to open e.g.
33+ ` :NnnPicker path/to/somewhere ` .
3234
3335Run the plugin, [ select file(s)] ( https://github.com/jarun/nnn/wiki/concepts#selection )
3436and press <kbd >Enter</kbd > to quit the n³ window. Now vim will open the first
@@ -42,9 +44,9 @@ instead of picking.
4244
4345To discard selection and exit, press <kbd >^G</kbd >.
4446
45- vim config ` set hidden ` may be required for the floating windows to work.
47+ ` set hidden ` may be required for the floating windows to work.
4648
47- Complete plugin documentation - ` :help nnn ` .
49+ For complete plugin documentation see ` :help nnn ` .
4850
4951### Configuration
5052
@@ -54,11 +56,9 @@ Complete plugin documentation - `:help nnn`.
5456" Disable default mappings
5557let g:nnn#set_default_mappings = 0
5658
57- " Set personalized mappings
59+ " Set custom mappings
5860nnoremap <silent> <leader>nn :NnnPicker<CR>
5961
60-
61- " OR override
6262" Start n³ in the current file's directory
6363nnoremap <leader>n :NnnPicker %:p:h<CR>
6464```
@@ -72,7 +72,7 @@ let g:nnn#layout = 'new' " or vnew, tabnew etc.
7272" Or pass a dictionary with window size
7373let g:nnn#layout = { 'left': '~20%' } " or right, up, down
7474
75- " Floating window (neovim latest and vim with patch 8.2.191)
75+ " Floating window.
7676let g:nnn#layout = { 'window': { 'width': 0.9, 'height': 0.6, 'highlight': 'Debug' } }
7777```
7878
@@ -89,8 +89,9 @@ let g:nnn#action = {
8989```
9090
9191With 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.
92+ open the selected file in a tab instead of the current window. <kbd >^X</kbd >
93+ will open in a split an so on. Multi-selected files will be loaded in the
94+ buffer list.
9495
9596#### Persistent session
9697
@@ -109,7 +110,8 @@ Note: If desired, an n³ session can be disabled temporarily by passing
109110
110111#### Command override
111112
112- It's possible to override the default n³ command and add some extra program options.
113+ It's possible to override the default n³ command and add some extra program
114+ options.
113115
114116``` vim
115117" to start n³ in detail mode:
@@ -148,7 +150,7 @@ let $NNN_TRASH=1
148150Use the same option names as you would in Vimscript, e.g.:
149151
150152``` lua
151- require (' nnn' ).setup {
153+ require (' nnn' ).setup {
152154 set_default_mappings = false ,
153155 session = ' global' ,
154156 layout = { left = ' 20%' }
0 commit comments