From: Nicolas Boisselier Date: Mon, 12 Dec 2022 16:51:59 +0000 (+0100) Subject: Move functions *Exec to nico X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=bd7438f1defa06289d07a5cb1c66cc42b14824c6;p=nb.git Move functions *Exec to nico --- diff --git a/etc/vim/source/functions.vim b/etc/vim/source/functions.vim index 8db1105d..80b11f8c 100644 --- a/etc/vim/source/functions.vim +++ b/etc/vim/source/functions.vim @@ -152,6 +152,7 @@ function Err(txt) endfunc func! SubSpecialChar(c) +" NB 12.12.22: Substitute specials char like \n in an array let i = 0 let val = '' for val in a:c @@ -161,6 +162,7 @@ func! SubSpecialChar(c) endfunc func! CommentNewLine() +" NB 12.12.22: Create a new line of comment if ( g:mimeComment->get(&filetype) == '0') return Err('No comment defined for filetype '.&filetype) endif @@ -181,6 +183,7 @@ func! CommentNewLine() endfunc func! CommentToggle() +" NB 12.12.22: Toggle current line between commented / not commented if ( g:mimeComment->get(&filetype) == '0') return Err('No comment defined for filetype '.&filetype) endif @@ -239,37 +242,3 @@ func! Debug(...) return g:Debug endfunc - -func! Test() - let @a = '' - setloc nomore - setloc textwidth=0 - - redir @a - - silent set all - - redir END - return @a -endfunc - -func! FileExec(file,...) - setlocal nomore - setlocal textwidth=0 - exec "redir! > ".a:file - silent execute join(a:000,' ') - redir END - return -endfunc - -func! GetExec(...) - " return join(a:000,' ') - setlocal nomore - setlocal textwidth=0 - let rd = '' - redir => rd - silent execute join(a:000,' ') - redir END - return rd - echo "ZAZA" -endfunc diff --git a/etc/vim/source/vars.vim b/etc/vim/source/vars.vim index 95828546..f66598c0 100644 --- a/etc/vim/source/vars.vim +++ b/etc/vim/source/vars.vim @@ -3,7 +3,12 @@ " " Command to check files per file types " -" rows.fields=id,cmd_check +let mimeExt = { + \ 'sh' : 'bash' +\} +let mimeAliases = { + \ 'sh' : 'bash' +\} ">SHELL_REPLACE dbq.php nb meta ls key,val cat=file.check format=vim_hash preff=$'\t' name=mimeCheck let mimeCheck = { \ 'awk' : 'awk < /dev/null --lint=no-ext --file' diff --git a/share/db/nb.db b/share/db/nb.db index a0526b58..fdb0b6af 100644 Binary files a/share/db/nb.db and b/share/db/nb.db differ