From 55457187d18221e76bd12f0fb2cfab65c49b92fb Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 5 Mar 2019 01:09:01 +0100 Subject: Initial commit --- .local/share/nvim/plugged/nnn.vim/ftplugin/nnn.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .local/share/nvim/plugged/nnn.vim/ftplugin/nnn.vim (limited to '.local/share/nvim/plugged/nnn.vim/ftplugin') 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 ? '' : '') + +for key in keys(g:nnn#action) + if type(g:nnn#action[key]) == 2 + exec 'tnoremap '.s:nowait.' '.key.' :call nnn#select_action('.string(g:nnn#action[key]).')' + else + exec 'tnoremap '.s:nowait.' '.key.' :call nnn#select_action("'.g:nnn#action[key].'")' + endif +endfor + +setlocal nospell bufhidden=wipe nobuflisted nonumber noruler +" vim: set sts=4 sw=4 ts=4 et : -- cgit v1.2.3