Matthew Desjardins | 27 Jun 14:29 2016
Picon
Gravatar

Difficulty with Packages

I've been trying to get packages to work, but I'm having difficulties with the resulting 'runtimepath'. 
Packages are all added after my own "after" directory, which I would have assumed would be at the end to
allow me to override things.

Am I missing something?

-- 
--

-- 
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.
Paul | 27 Jun 14:15 2016
Picon

vim.org script spam

http://www.vim.org/scripts/script.php?script_id=5410 just appeared.

-- 
--

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

BPJ | 27 Jun 13:12 2016
Picon

horizontal range, kindof

I'm trying to do a substitution in a 'horizontal/virtual column range'.

I have an ASCII table where the columns are separated by tab
characters (for now). I want to wrap the contents (which contain
space (U+0020) and \S characters, being of unequal length of
course!) of some specific table columns in asterisks (think
Markdown emphasis). I thought I could use a range and \%v to
match the text between two screen virtual columns and then use an
expression with substitute() to wrap instances of \T\+
inside the matched screen column range, something like

    'a,'b s/\%13v.*\%46v/\=substitute(submatch(0),'\T\+','*&*','g')/

but apparently I've misunderstood \%v because I get no match.
So what is the right way to do this? I'm not looking forward to
changing three columns on some 70 lines manually!

/bpj

-- 
--

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

(Continue reading)

Jacky Liu | 27 Jun 12:40 2016
Picon

How to make gvim ignore the TERM signal ?

I'm using gvim as the user interface for my own application largely written in python, and I'm firing up
matplotlib windows through vim's python interface to do data visualization and graphical operation,
here I have an issue: I'm using Ubuntu 14.04 with Unity as the desktop environment, and only by the first
time triggering will Unity bring the new matplotlib window on top of my gvim window, after the first time,
Unity will only give me a notice in the launching area, and I have to manually switch to the newly created
matplotlib window.

I'm using PyQT4 as the backend inside matplotlib, here is the demo code:

	nnoremap	\t	:<C-u>py3 test_graphical_interface()<CR>

	python3 << EOF

	import matplotlib
	matplotlib.use("Qt4Agg", warn=True)
	import matplotlib.pyplot as pyplot

	from PyQt4 import QtGui, QtCore

	def test_graphical_interface():

		fig= pyplot.figure( \
			figsize= (3.0, 3.0), \
			dpi= 300, \
			facecolor= '#ffc0cb', \
			edgecolor= '#ffc0cb', \
			linewidth= 1.0
		)
		ax= fig.add_axes((0.1, 0.1, 0.8, 0.8), axis_bgcolor='black')

(Continue reading)

Cesar Romani | 25 Jun 23:33 2016
Picon

Continuation line doesn't work when executing from register

I'm using vim 7.4.1952 on Windows 7.
Suppose I have two files on the same folder: test1.txt and test2.txt.
I have 'set nocp' in both of them.

test1.txt contains the following code, and I visually select it and copy
it to the clipboard with '<,'>y+:

nn <silent> <Plug>RDF :'{,'}s/-\n//ge
\ :call repeat#set("\<Plug>RDF")<cr>
map ,b <Plug>RDF

then I go to test2.txt and do  <at> +
then I get an error:

E10: \ should be followed by /, ? or &

But if, on test1.txt, I do 'source test2.txt' or 'runtime test2.txt,' it
works.

Many thanks in advance,

-- 
Cesar

-- 
--

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

(Continue reading)

Alexas Chee | 22 Jun 19:32 2016
Picon

Bug (?) with getcwd()

On Windows, I have this in the registry:

[HKEY_CLASSES_ROOT\*\shell\Open in gVim Tab\command]
 <at> ="\"d:\\Vim\\vim74\\gvim.exe\" --remote-tab-silent \"%1\" \"%*\""

and I like to open files with right-click "Open in gVim Tab" in Explorer.

But today when I did this on a file (say, c:\abc's\file), I got this:

E15: Invalid expression: getcwd() ==# 'c:\abc's' | cd - |endif|endif

I encountered this before - when I tried to right-click open files in a drive's root directory (like,
j:\file) and back then the message was:

E114: Missing quote: "j:\"|cd -|endif|endif
E15: Invalid expression: getcwd() ==# "j:\|cd -|endif|endif

See the difference? double quotes and single quotes.

If I change c:\abc's to c:\abc''s, vim gives no error.

So maybe getcwd() should check if there is char like ' in the path name.

-- 
--

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

--- 
(Continue reading)

Kiryph | 21 Jun 16:04 2016
Picon

:autocmd Filetype netrw echom "Greetings from netrw"

Following autocmd Filetype does not trigger when I enter a netrw window

:autocmd Filetype netrw echom "Greetings from netrw"

I have tried following minimal approach:

$ vim -C -u NONE
:so $VIMRUNTIME/plugin/netrwPlugin.vim
:autocmd Filetype netrw echom "Greetings from netrw"
:E .
:messages

I miss the message from my autocommand.

What am I doing wrong?

$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 17 2016 05:04:31)
MacOS X (unix) version
Included patches: 1-1831
Compiled by _spotlight <at> Traviss-Mac-747.local
Huge version with MacVim GUI.  Features included (+) or not (-):
+acl             +file_in_path    +mouse_sgr       +tag_old_static
+arabic          +find_in_path    -mouse_sysmouse  -tag_any_white
+autocmd         +float           +mouse_urxvt     -tcl
+balloon_eval    +folding         +mouse_xterm     +termguicolors
+browse          -footer          +multi_byte      +terminfo
++builtin_terms  +fork()          +multi_lang      +termresponse
+byte_offset     +fullscreen      -mzscheme        +textobjects
+channel         -gettext         +netbeans_intg   +timers
(Continue reading)

李哲 | 15 Jun 16:54 2016
Picon

how to change the color at the start page ?

How to change the color in the red frame? 

I already set 
highlight Normal guibg=black but it work. So how to change the bg color in the start page ? 

-- 
--

-- 
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.
Siddhant Gupta | 15 Jun 08:41 2016
Picon

help writing vim script

I have a variable containing Result: "/tmp/abcd/1234". I want to store tmp/abcd/1234 in another
variable. how can I do this.

-- 
--

-- 
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.
Siddhant Gupta | 15 Jun 08:56 2016
Picon

Help in writing vim script

I have a variable containing Result: "/tmp/abcd/1234", I want to extract /tmp/abcd/1234 in another
variable.How can I do this?

-- 
--

-- 
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.
Ritchie Lee | 14 Jun 21:16 2016
Picon

hash syntax highlighting

Hello,

I'm looking for hash syntax highlighting capability --- words that are not highlighted as keywords, such
as user variables, etc., are hashed to a random color.  The color would be consistent for the same variable
though.  This makes it easy to spot where the variable is being used at a glance.

If this sort of plugin is not already available, how would I go about implementing it? Or adding it to an
existing syntax plugin?

Thanks!

-- 
--

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