... I'm afraid this is not really the kind of behavior I expect from "%". I would expect it go to over if/elif/else and try/except/finally constructs. While...
29399
Bram Moolenaar
Bram@...
Aug 5, 2002 7:26 pm
... I only see errors that aren't really errors but items not supported by HTML 4.0. These things are needed for real-life browsers though. For example, the...
29400
Alejandro López-V...
dradul@...
Aug 5, 2002 9:07 pm
... Actually a tabstop of four. The style guide (PEP 8, check http://www.python.org/doc/pep/ if I remember the address correctly) declares: Use an indent of...
29401
David Brown
vim@...
Aug 5, 2002 10:18 pm
... PEP8 specifies an indent of 4, and highly recommends using only spaces for indenting. It explicitly states that spaces and tabs should never be mixed. The...
29402
Bram Moolenaar
Bram@...
Aug 6, 2002 7:53 am
... That's: http://www.python.org/peps/pep-0008.html ... As I read it this PEP suggests using 'expandtab39;. However, I'm mixing tabs and spaces (e.g., one tab...
29403
Mike Williams
mike.williams@...
Aug 6, 2002 10:20 am
... Yup - hadn't realised it was also used for filewritable() on directories. The whole area is a mess due to ACLs (not working on Samba) and read-only...
29404
Charles E. Campbell
cec@...
Aug 6, 2002 1:55 pm
Hello! A feature request: to allow a script to tell if its being loaded as a plugin or not. Reason: quick-loading (don't load entire script until actually...
29405
Flemming Madsen
fma@...
Aug 6, 2002 2:18 pm
When your tags file grows to several hundred thousand tags and you still want ignorecase, you have (up to now) been doomed to slow tag navigation times. The...
29406
Alejandro López-V...
dradul@...
Aug 6, 2002 3:07 pm
... Hmm... I think that's fine if you don't expect your code to be read, much less edited, by anyone else, mixing tabs and spaces that is :). Unless you jot...
29407
Glenn Maynard
glenn@...
Aug 6, 2002 3:27 pm
... 1: MBCS? You're comparing the data character-by-character. 2: GNU sort doesn't yet implement case folding for non-ASCII characters; other characters...
29408
Benji Fisher
benji@...
Aug 6, 2002 3:50 pm
... My second attempt is attached. It should work on if/elif/else and try/except/finally . Should I make it ignore case? Are there other matching ...
29409
David Brown
vim@...
Aug 6, 2002 3:56 pm
... That's why the PEP8 specifies to use spaces instead of tabs. However, Python was designed to accept tabs as equivalent to spaces, but _ALWAYS_ with a...
29410
Alejandro López-V...
dradul@...
Aug 6, 2002 5:17 pm
On Tuesday, August 06, 2002 10:56 AM, ... The conflict you point out is a consequence of making shiftwidth different to tabstop, now, that, is asking for real...
29411
Bram Moolenaar
Bram@...
Aug 6, 2002 5:35 pm
... If someone uses a tabstop setting different from 8 for Python code, then he is in trouble. Not because of my use of tabs, but because he is using a wrong...
29412
Bram Moolenaar
Bram@...
Aug 6, 2002 5:35 pm
... This appears to work reasonably well. One problem: an empty line in between the "if" and "else" stops it from working. ... No, Python is case sensitive. ...
29413
Bram Moolenaar
Bram@...
Aug 6, 2002 6:43 pm
... I don't think it is currently possible to reliably detect the plugins are being loaded. Why not always use the quick start code? -- The difference between...
29414
Benji Fisher
benji@...
Aug 6, 2002 6:56 pm
... See below. ... Good. That is what the script does now (I think). ... OK. When I get the :omap's working properly, I'll test this. ... I did not actually...
29415
Charles E. Campbell
cec@...
Aug 6, 2002 7:26 pm
... Well, you know how users can be. I've had one tell me to "fix" my code so that he could just source the file instead of having it in the plugin directory....
29416
Bram Moolenaar
Bram@...
Aug 6, 2002 7:59 pm
... Well, it still works then, doesn't it? Or would you need to type something to load the rest of the mappings and make it really work? -- hundred-and-one...
29417
Nikolai 'pcp'...
da.box@...
Aug 6, 2002 8:19 pm
... added... ... yeah...it's quite ugly...should be portable though...i don't know if there's a prettier way (could use AWK instead of sed...)...or Vim could ...
29418
HALIM,SALMAN (HP-NewJ...
salman@...
Aug 6, 2002 8:22 pm
... Realizing that this is actually a conversation between you two, I'm still offering my take on the issue since it's going on on a public forum:...
29419
Benji Fisher
benji@...
Aug 6, 2002 8:36 pm
... [snip] ... I changed my mind; the changes were not so minor. Especially, since I now treat empty lines as comments, I revised my idea of what starts a new...
29420
Charles E. Campbell
cec@...
Aug 6, 2002 8:43 pm
... I was tempted -- but he was obviously not a native-English speaker so I try to show some mercy. Anyway, if there'd been some way to tell if it was a...
29421
Charles E. Campbell
cec@...
Aug 6, 2002 8:45 pm
... 'tis true -- it does work properly if merely sourced twice. Regards, Chip Campbell -- Charles E Campbell, Jr, PhD _ __ __ Goddard Space...
29422
Preben 'Peppe'...
peppe@...
Aug 6, 2002 11:01 pm
... I'm not sure how portable it is. If your system uses some other authentication method, /etc/passwd is a shot in the dark. Anyway, as for suggestions, I'd...
29423
Glenn Maynard
glenn@...
Aug 6, 2002 11:22 pm
... I think this needs a 'realname39; Vim variable, defaulting to a system- specific call for this. This is definitely nonportable in Unix (think NIS), and it...
29424
Nikolai 'pcp'...
da.box@...
Aug 7, 2002 6:32 am
... ok...i can implement a getpwnam function, but that would really benefit from array support, i.e. returning the information as an array...adding a lot of...
29425
Flemming Madsen
fma@...
Aug 7, 2002 6:58 am
Well, this code will assume the 'C' locale. Exuberant ctags explicitly sets the locale to 'C' before calling sort (-f), and vim uses the TO_UPPER before the...
29426
Vince Negri
vnegri@...
Aug 7, 2002 7:06 am
Would this work? Add a VimEnter autocommand to the system-wide .vimrc which sets a variable. Then the plugin can check this variable. From the description of...
29427
Aschwin Marsman
a.marsman@...
Aug 7, 2002 9:47 am
Because I currently work in a multi platform environment (Solaris, OSF/1, Linux and Windows NT), files sometimes have Ctrl-M's at the end of a line or not...