]> git.nbdom.net Git - nb.git/commitdiff
Move functions *Exec to nico
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 12 Dec 2022 16:51:59 +0000 (17:51 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 12 Dec 2022 16:51:59 +0000 (17:51 +0100)
etc/vim/source/functions.vim
etc/vim/source/vars.vim
share/db/nb.db

index 8db1105d6bd50a3ad377c50260f0fc5e83411aaa..80b11f8c1738e9571560504a030f1dac8b6c20e0 100644 (file)
@@ -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
index 958285463139b3d777f5211804a8ebb9e3fd79a1..f66598c0564b41202c87e2398b07a97f6c419971 100644 (file)
@@ -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'
index a0526b5864801c3103a5c85ef05d7870627af57e..fdb0b6af8a1adc6a32636f9a43f5edfde4859879 100644 (file)
Binary files a/share/db/nb.db and b/share/db/nb.db differ