exe '?re' behaves differently from ?re

2012-07-16 Thread Andre Majorel
Doing a backward search with exe '?myregexp' ignores a match on the current line. Doing just ?myregexp would find it, as long as it's before the cursor. Where is this quirk documented and can it be disabled ? Thanks in advance. -- André Majorel http://www.teaser.fr/~amajorel/ Subliminal

Re: running commands with !

2012-07-16 Thread Christian Brabandt
On Sun, July 15, 2012 18:01, eNG1Ne wrote: Coming back to this after updating the program, updating .bashrc, logging off and logging on again ... I can now add the following information: echo $PATH in a console returns what I'd expect, with my new usr/local/bin/mup6-0/bin at the end :echo

Re: GVIM Files Written In GVIM Ubuntu Do NOT Show Text In GVIM Windows

2012-07-16 Thread Ben Fritz
On Saturday, July 14, 2012 4:37:00 AM UTC-5, JC Jackson wrote: A session set of GVIM Ubuntu files function well in GVIM Ubuntu, they show all editing colors and indentation appropriate file type, save and open fully, and all functions seem normal. But when the entire set of session files

Re: g_ different from :normal! g_

2012-07-16 Thread Ben Fritz
On Sunday, July 15, 2012 4:53:46 AM UTC-5, Andy Wokula wrote: Am 28.06.2012 22:32, schrieb rockybalboa4: gt; Is there any rationale behind the fact that gt; dg_ gt; yields different results than gt; d:normal! g_ gt; ? The latter does not reach the last character on the line. Is it gt;

vim: syntax issue: colorscheme change reset my syntax highlight

2012-07-16 Thread ping
experts: I found every time I change my colorscheme, my syntax highlight seems got reset. * the reason I need to change my colorscheme: I use vim from inside gnu screen, work from office home, in office I run terminator/ubuntu, with default as colorscheme. at home when I run cygwin/win7, and

Re: Simple way to add local spell file for a limited set of filesystem locations

2012-07-16 Thread Andy Wokula
Am 29.06.2012 15:29, schrieb Tobias Klausmann: Hi! I do a fair amount of LaTeXing, across a wider selection of subjects. Since most of these subjects have their own jargon, I usually add quite a few words to my local spell files (using zg). The problem is that since there are a lot of

Re: Simple way to add local spell file for a limited set of filesystem locations

2012-07-16 Thread Tobias Klausmann
Hi! On Mon, 16 Jul 2012, Andy Wokula wrote: While I'm sure I could come up with a vim script to do all of this, I'd very much prefer to use something already done. My vim script skills are wy rusty and why reinvent a wheel (badly at that). Even better would to achieve this (or some

Allow normal command then motion (using g@) and [count]command in the same mapping

2012-07-16 Thread FaQ
Hello. I've been trying to figure out this for some time now, and couldn't find a solution. I have this mapping: nmap silent -c :C-Uset opfunc=Add_comment_operatorCRg@ Below you'll find the Add_comment_operator() code, but I think it's not really relevant. This mapping allows me to do things

Re: Scripting the enter key

2012-07-16 Thread Ben Fritz
On Monday, July 16, 2012 10:39:03 AM UTC-5, Douglas Mayle wrote: Hi all, I#39;m trying to write a function to make smarter line breaking when I split a pair of parentheses or braces.  For example, with the text: span style=font-family:#39;courier new#39;,monospacefunc (/spanu

Re: Allow normal command then motion (using g@) and [count]command in the same mapping

2012-07-16 Thread Ben Fritz
On Monday, July 16, 2012 11:02:15 AM UTC-5, FaQ wrote: Hello. I#39;ve been trying to figure out this for some time now, and couldn#39;t find a solution. I have this mapping: nmap lt;silentgt; -c :lt;C-Ugt;set opfunc=Add_comment_operatorlt;CRgt;g@ Below you#39;ll find the

Re: yank matched portion of a selection of lines

2012-07-16 Thread Christian Brabandt
Bram, On Sa, 07 Jul 2012, Tim Chase wrote: On 07/07/12 06:35, Christian Brabandt wrote: I'd favor a solution with :%s/{pattern}/\=CollectMatch(submatch(0))/gn but '\=' and the n flag don't work together. What about a todo item? Add another flag? I must say I'm surprised that

anyone using embedded perl interpreter?

2012-07-16 Thread Britton Kerin
I get build failures trying to compile vim against perls 5.14 and 5.16, but no response on vim-dev, just wondering if anyone else uses the embedded perl interpreter or if I'm the only one... -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text

Re: yank matched portion of a selection of lines

2012-07-16 Thread Tim Chase
On 07/16/12 14:27, Christian Brabandt wrote: Bram, On Sa, 07 Jul 2012, Tim Chase wrote: Two parts of me conflict on this: one thinks wow, that's a cool idea, the other thinks what twisted sicko thought up that one?! Attached patch search_textobj.diff implements a match text-object. This

Re: anyone using embedded perl interpreter?

2012-07-16 Thread Taylor Hedberg
Britton Kerin, Mon 2012-07-16 @ 12:02:31-0800: I get build failures trying to compile vim against perls 5.14 and 5.16, but no response on vim-dev, just wondering if anyone else uses the embedded perl interpreter or if I'm the only one... I saw your messages on vim-dev but didn't really have

Re: Scripting the enter key

2012-07-16 Thread Douglas Mayle
Thanks for the tip on expr, I hadn't known about it! Long story short, I was using 'autoclose' to do what delimitmate does, and was looking to add the CR expansion myself. It turns out that delimitmate does everything that autoclose does, with smarter handling of matching (e.g. dm: I'm versus

Re: Scripting the enter key

2012-07-16 Thread skeept
On Monday, July 16, 2012 4:13:23 PM UTC-5, Douglas Mayle wrote: Thanks for the tip on lt;exprgt;, I hadn#39;t known about it! /div Long story short, I was using #39;autoclose#39; to do what delimitmate does, and was looking to add the CR expansion myself.  It turns out that delimitmate

Key mapping behaves differently than same sequence of keys struck by hand

2012-07-16 Thread Graham Lawrence
As a keystroke sequence hEaEscBiEscj seems to enquote the current word anywhere in the line. In particular, it does so if the cursor is in column 1 at the start of the first word. But as a key mapping, e.g. :map F5 hEaEscBiEscj it fails if the cursor is in column 1 Why the difference? --

Re: Key mapping behaves differently than same sequence of keys struck by hand

2012-07-16 Thread Gary Johnson
On 2012-07-16, Graham Lawrence wrote: As a keystroke sequence hEaEscBiEscj seems to enquote the current word anywhere in the line. In particular, it does so if the cursor is in column 1 at the start of the first word. But as a key mapping, e.g. :map F5 hEaEscBiEscj it fails if the cursor

Re: vim: remember search ex cmd history across vim reload

2012-07-16 Thread ping
On 7/14/2012 6:11 AM, Simon Ruderich wrote: On Fri, Jul 13, 2012 at 05:08:15PM -0400, ping wrote: hi: I kind of forgot somewhere (maybe user-manual) I saw a way to make vim remember all search ex cmd history, across vim instances, even remember all history info after a vim reload. but I

setting a current file to compile and run, strange problem

2012-07-16 Thread mascip
Hi all, i'm trying to set a current file to set and run : when i use :make, i want this file to be compiled and run, instead of the file that i'm in. For this, i've first used this which seems to work : current file to compile and run must be the current one... let $CURRENT_FILE_TO_RUN=%

Re: setting a current file to compile and run, strange problem

2012-07-16 Thread mascip
I've tried different combinations : bufname(%) instead of bufname('%') bufname(1) instead of bufname('%') and got exactly the same results, for Scenario 1 and 2, and for Scenario 3 (which is even more strange to me) . *Scenario 3: if i first use ;f to set $CURRENT_FILE_TO_RUN to C:/test.t,

Re: Random j, k characters appearing on line ends

2012-07-16 Thread John Little
On Saturday, July 14, 2012 6:44:17 AM UTC+12, Evan Goer wrote: I have personally only seen this while editing JavaScript files with the jslint.vim plugin active. I think the spurious j's and k's are those that vim intended to echo on the base line in the show command spot. Partial commands

Re: GVIM Files Written In GVIM Ubuntu Do NOT Show Text In GVIM Windows

2012-07-16 Thread John Little
On Sunday, July 15, 2012 6:23:20 PM UTC+12, JC Jackson wrote: I had thought that the default settings would make for an OS independent GVIM operation, and the text is there per use of other editors. While I don't think this is relevant to your problem, that principle doesn't hold,

Re: how to override system ftplugin settings with user custom ?

2012-07-16 Thread ping
On 7/8/2012 2:57 AM, Gary Johnson wrote: On 2012-07-08, chris wrote: I set one option omnifunc in `~/.vim/ftplugin/python/python.vim` like this: setlocal omnifunc=3Dpython3complete#Complete But this can not work. When I open a python file. I checked omnifunc setting with command:

Re: setting a current file to compile and run, strange problem

2012-07-16 Thread mascip
* * I found it ! The reason why and the solution. * * Sorry for all these messages, i was really thinking that i'd never make it, and finally... So. What was happening, was

Re: how to override system ftplugin settings with user custom ?

2012-07-16 Thread Gary Johnson
On 2012-07-16, ping wrote: On 7/8/2012 2:57 AM, Gary Johnson wrote: On 2012-07-08, chris wrote: I set one option omnifunc in `~/.vim/ftplugin/python/python.vim` like this: setlocal omnifunc=3Dpython3complete#Complete But this can not work. When I open a python file. I checked omnifunc

Re: running commands with !

2012-07-16 Thread John Little
A couple of observations. In my Kubuntu Lucid (10.04) install, for a user with no customization, there is a .profile (that is run by bash if there is no .bash_profile or .bash_login) which invokes $HOME/.bashrc if it exists. Secondly, if you invoke vim from a panel or from the menu, all that

Re-post [2nd time]: file type detection : complete order

2012-07-16 Thread ping
On 7/3/2012 10:43 AM, ping wrote: guys/experts: sorry If I'm asking an idiot question... I'm learning about auto detection of file type and apply my own syntax highlight+folding based on it. so overall we have following machnism: 1) ex: set ft= 2) modeline: vim:ft= .. 3)

Re: vim fonts change with time and with computer

2012-07-16 Thread Tony Mechelynck
On 16/07/12 04:51, AndyHancock wrote: I've got font increment key mappings such as: map C-F6 :set guifont=Monospace\ 8CR map C-F7 :set guifont=Monospace\ 9CR map C-F8 :set guifont=Monospace\ 10CR map C-F9 :set guifont=Monospace\ 11CR map C-F10 :set guifont=Monospace\ 12CR

Re: some word can't highlight in verilog

2012-07-16 Thread Christian Brabandt
On Tue, July 17, 2012 07:14, 王军 wrote: Like it. And your question is what? Please include a brief description of the problem, what you see and what you expect. Remember, not everybody knows verilog, so your screenshot might not tell us much (though I can vaguely guess, what your problem could