Wednesday, May 29, 2013

Re: vim not finding the end of the sql statement




On Wed, May 29, 2013 at 5:36 PM, whytheq <whytheq@gmail.com> wrote:
In `gvim` if I put the cursor (normal mode) in the word SELECT and then hit `\se` then it runs ok:

    SELECT GETDATE();

If I do exactly the same but for a query over two lines then it errors.

    SELECT
    GETDATE();

I have the lastest version of dbext installed.


Another user (Jason) just reported this to me as well.

I will look into it in a couple of days.

As a work around and a more reliable option, I would use linewise visual mode (capital V) and visually select what you want executed and hit \se to execute that selection.

So when your cursor is on the line SELECT, use this combination:
V/;<cr>\se

Where <cr> is when you hit enter on the keyboard.


BTW, why post these questions on stackoverflow?  This is the Vim list and this is generally where all the plugin authors monitor.

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/groups/opt_out.
 
 

No comments:

Post a Comment