Ni Va | 3 May 19:38 2016
Picon

Python path seems to be KO in a deleguate design class A class B

Hi,

Trying to delegate class A features to class B in python, I encounter this error :

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<string>", line 16, in PyExecReplace
  File "<string>", line 27, in <module>
  File "<string>", line 23, in __init__
NameError: global name 'DatingObj' is not defined

___________
In Vim my PYTHONPATH is void :
echo " <at> ".$PYTHONPATH." <at> " gives me  <at>  <at> .

This is the source code : 

class DatingObj(): # Dating considerations
	def __init__(self):
		self.periodList   = [ 'Today', 'Yesterday', 'ThisWeek' ]
	def getCurrentDay(self):
		from datetime import datetime
		lastHourDateTime = datetime.today()
		return lastHourDateTime.strftime('%Y-%m-%d')
	def getYesterday(self):
		from datetime import datetime, timedelta
		lastHourDateTime = datetime.today() - timedelta(days = 1)
		return lastHourDateTime.strftime('%Y-%m-%d')
	def getCurrentHour(self):
		from datetime import datetime
(Continue reading)

mwnx | 3 May 01:58 2016
Picon

'syntax hi [...] start=[...] stop=[...]' has no effect

Hello Vim users,

I'm trying to get some fancy 24-bit color going with the official
vim using escape codes such as "<Esc>[38;2;${r};${g};${b}m", which
work on some terminals.

Now, according to Vim's documentation, it's possible to highlight
syntax regions with arbitrary terminal escape sequences using the
'start' and 'stop' arguments of the 'highlight' command (relevant
help entries: highlight-start, E422, term-list, highlight-stop).

However, this simply has no effect whatsoever, even when trying to
get some basic bold text, with e.g.:

    hi mailSubject start=<Esc>[1m stop=<Esc>0m

I've also tried "hi clear" beforehand but that doesn't help.

This feature seems oddly ignored and forgotten, since my numerous
attempts at searching for it through Google have turned up no
relevant results, and the code for it in the git repo hasn't been
updated since 2004, so I'm guessing the behaviour I'm getting could
just be a bug that got in because nobody ever uses this feature.

If nobody comes up with a solution or an explanation to my problem,
I guess I'll file a bug report...

--

-- 
mwnx
GPG: AEC9 554B 07BD F60D 75A3  AF6A 44E8 E4D4 0312 C726
(Continue reading)

Ni Va | 3 May 11:58 2016
Picon

Confirm dialog called by python vim.command fails

Hi,

Passing joined python list to the confirm dialog function through vim.command feature in python code, I
encounter these errors :

Error detected while processing :
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<string>", line 16, in PyExecReplace
  File "<string>", line 144, in <module>
  File "<string>", line 10, in question
vim.error: Vim(let):E121: Undefined variable: Today

_____________

Here is my source code :

class IntervalDating(): # Dating considerations 
	def __init__(self):
		self.datingChoice = [ 'Today', 'Yesterday', 'ThisWeek' ]
	def question(self):
		someStr = "\n&".join(self.datingChoice)
		print someStr
		vim.command('let cce = confirm("Period choice:", ' + someStr + ', 1)')   

-- 
--

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

Paul | 3 May 11:27 2016
Picon

Updating argument

I start vim with "vim file1 file2". :args shows I'm on file1. I change buffer with :bnext. :args shows I'm
still on file1. Is there some setting that will update the argument to be on the same buffer that I change to,
or is there some reason why that would be a bad idea?

-- 
--

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

mwnx | 3 May 01:52 2016
Picon

'syntax hi [...] start=[...] stop=[...]' has no effect

Hello Vim users,

I'm trying to get some fancy 24-bit color going with the official
vim using escape codes such as "<Esc>[38;2;${r};${g};${b}m", which
work on some terminals.

Now, according to Vim's documentation, it's possible to highlight
syntax regions with arbitrary terminal escape sequences using the
'start' and 'stop' arguments of the 'highlight' command (relevant
help entries: highlight-start, E422, term-list, highlight-stop).

However, this simply has no effect whatsoever, even when trying to
get some basic bold text, with e.g.:

    hi mailSubject start=<Esc>[1m stop=<Esc>0m

I've also tried "hi clear" beforehand but that doesn't help.

This feature seems oddly ignored and forgotten, since my numerous
attempts at searching for it through Google have turned up no
relevant results, and the code for it in the git repo hasn't been
updated since 2004, so I'm guessing the behaviour I'm getting could
just be a bug that got in because nobody ever uses this feature.

If nobody comes up with a solution or an explanation to my problem,
I guess I'll file a bug report...

--

-- 
mwnx
GPG: AEC9 554B 07BD F60D 75A3  AF6A 44E8 E4D4 0312 C726
(Continue reading)

Ben Fritz | 2 May 17:43 2016
Picon

Re: Problem with syntax checker on perl6?

On Friday, April 29, 2016 at 2:25:25 AM UTC-5, arocker <at> vex.net wrote:
> > VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 25 2014 12:49:37)
> > Compiled by doktor5000 <doktor5000> - running on Mageia 5
> >
> > Attempting to load any substantial file (> 3 lines, around 50 characters,
> > approximately) with a reference to perl6 in the !# line results in vim
> > displaying the line count on an otherwise blank window, and disappearing
> > into a cpu-consuming loop that requires a kill -9 to defeat. A file
> > otherwise identical, except that it does not have the #! line is handled
> > perfectly.
> >
> > My guess is that there's a problem with the syntax-checking process.
> >
> > Is there any other diagnostic information that would be useful?

Vim doesn't have a built-in syntax checker. Check your installed plugins for such a feature, and find the
issue tracker for that plugin to see if it has been reported/fixed.

-- 
--

-- 
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.
a a | 30 Apr 05:05 2016
Picon

change the font style only for attributes in MacVim

I posted this on Stackoverflow,but didn't get any constructive info,so let me ask this question here.

I have the font called Operator Mono Light, and I am using it in Macvim.

My question is in Vim, can I get the font changed to the Italic version of Operator Mono only for attributes
like in this picture?

If so, how can I do it?

Thanks for your help in advance.

-- 
--

-- 
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 | 30 Apr 03:05 2016
Picon

Re: list packages installed through vimball

On Fri, Apr 29, 2016 at 1:59 AM, Gary Johnson <garyjohn <at> spocom.com> wrote:
> On 2016-04-28, kamaraju kusumanchi wrote:
>> Can someone tell me how to list all packages that were installed
>> through vimball?
>>
>> :help vimball tells about how to install, remove a vimball. It does
>> not talk about listing all the package names. Any ideas?
>>
>> FWIW, I am using vim 7.4 on Debian Jessie.
>
> A record of all the vimballs installed is maintained in
> ~/.vim/.VimballRecord to allow the files installed to be removed.
> See ":help :RmVimball".  Each line of that file begins with the name
> of the vimball.
>

Thanks Gary. Exactly what I needed. I should have read the help pages
more thoroughly instead of just eyeballing it.

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

--- 
(Continue reading)

Sonny Chee | 30 Apr 00:42 2016
Picon

Completiion Suggestions on Status Line...

Hey Guys,

I recently had my home folder and vim nuked and am attempting to regain a capability that I once had - the
display of "command completion suggestions on the status line", specifically.

I used to be able to type the word, say:

Plugin<tab>

Once I hit the tab, I would see the following on the status line:

Plugin PluginClean PluginDocs PluginInstall  ...etc

Then hitting the tab repeatedly, I could move the highlight to a choice.

I've tried searching, but my google-fu doesn't appear up to the challenge.  If anyone could suggest a script
or plugin, that would be greatly appreciated.

-- 
--

-- 
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.
jeroen | 29 Apr 21:48 2016
Picon

AwesomeWM + Gvim resize crashes (segfault)

Hi all,

A few days ago I started using Awesome as my window manager (running inside XFCE on xubuntu 15.10). Both
Awesome and Vim are the default versions from the repository (v3.5.6 and 7.4.712).
When Gvim gets resized, either because I resize the master-pane of awesome, or simply by switching Awesome
layout, Gvim will frequently hang and/or crash.

From what I could find it seems to be a segfault, but I have no clue what is causing this. In the past I have been
using Gvim without any problems with xfwm4 (default xfce window manager). I also tried xmonad for a week
where I didn't see these crashes when similarly resizing the xmonad master-pane or switching layouts.
I have a feeling that it might be triggered by one of the plugins I use. When I use Gvim without any vimrc it
didn't seem to happen at first sight.

This is what I saw in the Ubuntu crash-submit tool:
 vim.gnome crashed with sigsegv in get_syntax_atttr()

When starting gvim with `strace gvim -V9log.txt file.tex > stdout.txt 2> stderr.txt` I got the following
in stdout.txt:
RenderBadPicture (invalid Picture parameter)
Vim: Got X error
Vim: Finished.

Any help on this is much appreciated.
Kind regards,
Jeroen

-- 
--

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
(Continue reading)

Sonny Chee | 29 Apr 20:47 2016
Picon

Re: Odd mapping behavior...

On Thursday, April 28, 2016 at 1:58:58 PM UTC-7, Dmitri Vereshchagin wrote:
> * Sonny Chee <sonny.chee <at> gmail.com> [2016-04-28 23:03]:
> > I have the following two mappings to turn on and then turn off the paste setting. 
> > 
> > inoremap <F8> <esc>:set paste<cr>i
> > inoremap <s-F8> <esc>:set nopaste<cr>i
> > 
> > [...]
> > 
> > However, when I pressed shift-F8 while in insert mode, I just the follt owing characters in my current buffer
> > 
> > <S-F8>
> 
> When paste is on mapping in Insert mode is disabled.  Check pastetoggle
> option.
> 
> -- 
> Dmitri Vereshchagin

Thanks Dmitri, that solved my problem. 

-- 
--

-- 
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.
(Continue reading)


Gmane