Alexandre Provencio | 26 Apr 21:24 2015
Picon

Help with netrw's gx setting

Hello guys,

I'm happy to use netrw for a lot of tasks (especially paired with vim-vinegar), but still can't make the 'gx'
command behave to my liking, which is:
	- Always open an URL with the external browser, even if it has a trailing slash: the default is to interpret
an URL as a remote dir and download that to a new buffer
	- Correctly match URL's surrounded by parethesis etc, and also with symbols like '?' etc, within: I know
that 'g:netrw_gx="<cWORD>"' would get me that but then I loose the inner parethesis matching, any way to
get them both?

Closest of this experience is using the open-browser plugin which also has a lot of other features i don't use.

Any clues?

- Alexandre

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
lith | 26 Apr 19:42 2015
Picon

Best way to programmatically define a function

Hi!

What's the best way to create a function that creates functions?

I currently construct a string with the vim code, put that into a register, and then evaluate the register.
See https://github.com/tomtom/tcomment_vim/blob/master/plugin/tcomment.vim#L165 for an example.

This works well but seems to cause serious problems in certain situations with certain installations. See
here for an example report: https://github.com/tomtom/tcomment_vim/issues/140

Is this a known issue with certain versions of gvim?

Is there an alternative way to achieve this that doesn't cause the problem reported above?

Regards,
Tom

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mark Volkmann | 26 Apr 17:17 2015
Picon

setting statusline with function that uses system()

When I do this I often see stray characters displayed in the current buffer.
For example, I can press "j" several times to move down in the current buffer.
It will work a few times and then start displaying "j" characters instead of moving down.
After that point, if I press the esc key I will see "^[" displayed.
The function I use to get my statusline string is called each time the cursor is moved.
The problem goes away if I remove calls to system() in that function.
Is this possibly related to the system() calls taking a while to return?

This is how I configured my statusline:

setlocal statusline=%!MyStatuslineFunction()

--
R. Mark Volkmann
Object Computing, Inc.

--
--
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
av | 24 Apr 08:02 2015
Picon

Add milliseconds to strftime()

Hi,

I'd like to know if it is possible to get the milliseconds() in this expression for example:

echo strftime("%Y-%m-%d_%H:%M:%S")

Thanks,

Alexandre

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Kevin Tough | 23 Apr 17:46 2015

Fedora 22 and Vim

Hi Folks,

I've installed Fedora 22 on one of my notebooks. The syntax highlighting
in Fedora 22 is terrible. The new colors are very pastel like, and not
at all to my liking. Would someone be able to explain how I can retain
the colors I like?

I sent an Email to the Fedora people but did not get an answer from
them.

Namaste,
Kevin Tough

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

av | 23 Apr 15:26 2015
Picon

Open session does not restore position in files

Hi,

I create tabs and windows with certain positions to files and I try to save session and open it using the gvim
toolbar and with the mappings I have:

        " Show the session open dialog
            map <tab>[ :browse source!<cr>

        " Show the session save dialog
            map <tab>] :browse mksession!<cr>

But for some windows the cursor is at the top of the file and not at the line number when I saved the session. 

I have multiple windows opened on the same 2 or 3 same files.

Does somebody know if line numbers should be remembered in sessions? And why it is not keeping them in this case?

Thank you.

Alexandre

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Rese | 23 Apr 13:25 2015

Recovering gvim windows/sessions after startup (KDE/Linux)

Hi all,

I am facing a problem since some months now, and I thought it would be worth asking the community if there is a
simple solution.

I am using KDE/Ubuntu (KUbuntu to be accurate) and I used to keep several gvim sessions/windows open when I
shut down my computer. When starting up again, the windows used to come back as they were, with the full
editing session on each of the files which were opened before the shut down.

Since some months, this does not happen any more. I basically get back gvim sessions, but these are
basically empty and it looks like there is no "name" attached to the file it tries to open.

So basically: rebooting my machine does not make the gvim windows/sessions come back as they were, but only
empty windows.

Is there is simple way out ? Any hints would be most welcome!
Thanks in advance .

(laptop using KUbuntu, Ubuntu 14.04.2 LTS and
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan  2 2014 19:39:59)
GTK2 interface)

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Claus Atzenbeck | 23 Apr 10:37 2015
Picon

positive lookbehind

Hello everybody,

I came across a strange behavior of Vim. Consider the following two 
lines; the 2nd line starts with spaces.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test test test
    Test test test
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I want to match each 1st word of a line, ignoring preceding white 
spaces. The expression

     /\v^\s*\zs\w+

works perfectly, however,

     /\v^(\s*) <at> <=\w+

does not. It only matches words in the very beginning of a line, but not 
those preceded by whitespaces. I cannot see why the latter would not be 
equivalent to the first expression.

According to

     :h  <at> <=

"Vim allows non-fixed-width patterns". Thus, I would expect the positive 
lookbehind to work also for the 2nd line. (I know that \zs is the 
preferable solution anyway, but I'm curious.)

Any ideas?

Best,
Claus

av | 23 Apr 09:25 2015
Picon

Autocmd to have a mapping only for a specific file

Hi,

I try to have an autocommand that would provide a mapping to the <enter> and <c-enter> keys only on a certain
file name. Like myfile.txt for example. 

I have tried a test like this here, and it works for the <c-Enter> mapping but not for the <Enter> one:

    autocmd! BufNewFile,BufRead,BufEnter myfile.txt nmap <buffer> <Enter> :echo 'Hi!'<cr>
    autocmd! BufNewFile,BufRead,BufEnter myfile.txt nmap <buffer> <c-Enter> :echo 'Test!'<cr>

And when I do :map <enter> vim says that there are "No mapping found"

Any ideas why? And please tell me if I chose the right list of events.

Thank you very much,

Alexandre

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
kamaraju kusumanchi | 23 Apr 06:59 2015
Picon

integrating subversion into vim

Let's say I have a file that is currently under subversion. Normally,
I edit the file, save it, go to the konsole, use svn diff to check the
differences. Instead is it possible to do all this in the vim window
as follows?

1) Edit the file in vim.
2) Enter a command or a shortcut key in vim so that the current vim
window automatically goes into vimdiff mode with left pane showing the
original version in subversion, right pane showing the current buffer.
3) After checking the differences, modify/save the file
4) Enter a command or a shortcut key in vimdiff mode to go back to
just the vim window in step 1.

Is this vim -> vimdiff -> vim cycle achievable in vim?

thanks
raju
-- 
Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bidit Mazumder | 22 Apr 20:56 2015
Picon

Cannot log into my vim account.

Hello,

I cannot log into my vim account (http://www.vim.org/account/profile.php?user_id=34258) and there is
no way to reset the password. It says to ask Bram to reset my password.

How do I contact Bram?

Regards,

Bidit Mazumder

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gmane