Friday, September 28, 2018

Re: editing textareas in Firefox with vim

On Fri, Sep 28, 2018 at 1:34 PM Paul <vim91549@rainslide.net> wrote:
>
> On Sat, Aug 25, 2018 at 07:25:12AM -0400, Michael Henry wrote:
> >I've been using "textern" for this, though I don't use it heavily.
>
> This is great. For reference, the configuration to open Gvim with the cursor in the same position as in the browser is ["gvim", "-f", "+%l", "-c normal %c|"], or ["gvim", "-f", "-c call setpos('.',[0,%l,%c,0])"] - I'm not sure which is more efficient.
>

:-)
This looks quite a lot like a function which I defined a few weeks ago
in my vimrc, to help getting at errors pointed to by line and column
(in HTML validation in the browser, not via a quickfix error list in
Vim):

" Go to line and column
function GoTo(line, column)
exe min([line("$"), a:line]) "| normal" a:column . "|"
endfunction

Best regards,
Tony.

--
--
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