Monday, April 13, 2015

Re: dbext.vim bug: g:dbext_default_usermaps is ignored


On Sun, Apr 12, 2015 at 4:40 PM, Justin M. Keyes <justinkz@gmail.com> wrote:
If I set

    let g:dbext_default_usermaps = 0

The torrent of <leader> maps is still created.

How did you test this Justin?

Here is what I did.

:DBGetOption

/dbext_version
dbext_version = 2100
/Vim Version Information
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-691

:map <Leader>s
-- Lots of output, good
o  ,             YRMapsExpression("<SNR>79_", ",")
n  ,scp          <Plug>SQLUCreateProcedure
n  ,scdt         <Plug>SQLUGetColumnDataType
n  ,scd          <Plug>SQLUGetColumnDef
n  ,scl          <Plug>SQLUCreateColumnList
v  ,sf           <Plug>SQLUFormatter
n  ,sf           <Plug>SQLUFormatter
v  ,sfs          <Plug>SQLUFormatter
n  ,sfs          <Plug>SQLUFormatter
v  ,sfr          <Plug>SQLUFormatStmts
n  ,sfr          <Plug>SQLUFormatStmts
n  ,slr          :DBListVar<CR>
x  ,sa           :DBVarRangeAssign<CR>
n  ,sap          :'<,'>DBVarRangeAssign<CR>
n  ,sal          :.,.DBVarRangeAssign<CR>
n  ,sas          :1,$DBVarRangeAssign<CR>
n  ,so           <Plug>DBOrientationToggle
n  ,sh           <Plug>DBHistory
x  ,stcl         :<C-U>exec "DBListColumn '".DB_getVisualBlock()."'"<CR>
n  ,stcl         <Plug>DBListColumn
n  ,slv          <Plug>DBListView
n  ,slp          <Plug>DBListProcedure
n  ,slt          <Plug>DBListTable
x  ,slc          :<C-U>exec "DBListColumn '".DB_getVisualBlock()."'"<CR>
n  ,slc          <Plug>DBListColumn
n  ,sbp          <Plug>DBPromptForBufferParameters
n  ,sdpa         <Plug>DBDescribeProcedureAskName
x  ,sdp          :<C-U>exec "DBDescribeProcedure '".DB_getVisualBlock()."'"<CR>
n  ,sdp          <Plug>DBDescribeProcedure
n  ,sdta         <Plug>DBDescribeTableAskName
x  ,sdt          :<C-U>exec "DBDescribeTable '".DB_getVisualBlock()."'"<CR>
n  ,sdt          <Plug>DBDescribeTable
x  ,sT           :<C-U>exec "DBSelectFromTableTopX '".DB_getVisualBlock()."'"<CR>
n  ,sT           <Plug>DBSelectFromTopXTable
n  ,sta          <Plug>DBSelectFromTableAskName
n  ,stw          <Plug>DBSelectFromTableWithWhere
x  ,st           :<C-U>exec "DBSelectFromTable '".DB_getVisualBlock()."'"<CR>
n  ,st           <Plug>DBSelectFromTable
n  ,sep          :'<,'>DBExecRangeSQL<CR>
n  ,sel          :.,.DBExecRangeSQL<CR>
n  ,sea          :1,$DBExecRangeSQL<CR>
n  ,sq           <Plug>DBExecSQL
n  ,sE           <Plug>DBExecSQLUnderTopXCursor
n  ,se           <Plug>DBExecSQLUnderCursor
x  ,sE           <Plug>DBExecVisualTopXSQL
x  ,se           <Plug>DBExecVisualSQL


Edited my .vimrc added:

let g:dbext_default_usermaps = 0

gvim --noplugins

:map <Leader>s
-- Nothing, good

:source $VIM/vimfiles/plugin/dbext.vim
:map <Leader>s
-- Nothing, good


You indicate you see something?
Can you provide the same output.

David





 

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment