diff options
author | Marvin Borner | 2019-03-05 01:09:01 +0100 |
---|---|---|
committer | Marvin Borner | 2019-03-05 01:09:01 +0100 |
commit | 55457187d18221e76bd12f0fb2cfab65c49b92fb (patch) | |
tree | 8db042d2d80710d54100c2709ad4332153ac848a /.local/share/nvim/plugged/nnn.vim/ftplugin |
Initial commit
Diffstat (limited to '.local/share/nvim/plugged/nnn.vim/ftplugin')
-rw-r--r-- | .local/share/nvim/plugged/nnn.vim/ftplugin/nnn.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.local/share/nvim/plugged/nnn.vim/ftplugin/nnn.vim b/.local/share/nvim/plugged/nnn.vim/ftplugin/nnn.vim new file mode 100644 index 0000000..5e3ae2a --- /dev/null +++ b/.local/share/nvim/plugged/nnn.vim/ftplugin/nnn.vim @@ -0,0 +1,17 @@ +if exists("g:nnn_ftplugin") + finish +endif +let b:nnn_ftplugin = 1 + +let s:nowait = (v:version > 703 ? '<nowait>' : '') + +for key in keys(g:nnn#action) + if type(g:nnn#action[key]) == 2 + exec 'tnoremap '.s:nowait.'<buffer><silent> '.key.' <c-\><c-n>:<c-u>call nnn#select_action('.string(g:nnn#action[key]).')<cr>' + else + exec 'tnoremap '.s:nowait.'<buffer><silent> '.key.' <c-\><c-n>:<c-u>call nnn#select_action("'.g:nnn#action[key].'")<cr>' + endif +endfor + +setlocal nospell bufhidden=wipe nobuflisted nonumber noruler +" vim: set sts=4 sw=4 ts=4 et : |