Make vim use the right external program

2011-03-28 Thread BPJ
How can I make :!perl ... use the perl symlinked at ~/bin/perl rather than /usr/bin/perl without actually having to type :!~/bin/perl every time? /bpj -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to

[SOLVED] Re: Make vim use the right external program

2011-03-29 Thread BPJ
2011-03-28 19:48, Gary Johnson skrev: On 2011-03-28, Tim Chase wrote: On 03/28/2011 08:11 AM, BPJ wrote: How can I make :!perl ... use the perl symlinked at ~/bin/perl rather than /usr/bin/perl without actually having to type :!~/bin/perl every time? What's your $PATH set to? You can

Re: Help me please ^^

2011-05-03 Thread BPJ
mode) :s/b*/1/g it would display: 1a1c The obvious workaround is :.!sed 's/b*/1/g' Not very elegant but it works! perl returns '1a11c1', BTW! /bpj -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below th

Re: website going down

2011-08-07 Thread BPJ
es the total somewhere between €50 and €800 per year. I haven't even bothered to compute the total. My main cost is for internet access itself which I have with a separate provider; that's at around €15/month. /bpj -- You received this message from the "vim_use" maillist. D

Make underscore a non-word character in the current buffer

2011-12-12 Thread BPJ
I need to make underscore a non-word character in the current buffer, preferably without having to list all characters which should be word characters after the change. How? /bpj -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the te

Re: Make underscore a non-word character in the current buffer

2011-12-14 Thread BPJ
On 2011-12-13 22:31, Andy Wokula wrote: Am 12.12.2011 20:35, schrieb Tim Chase: On 12/12/11 13:30, BPJ wrote: I need to make underscore a non-word character in the current buffer, preferably without having to list all characters which should be word characters after the change. How? Sounds

'Composite' filter command in function

2011-12-14 Thread BPJ
How do I do to get back to (roughly) the same line in the file as I was on after executing a filter command on the whole file? The function below *works*, but I have a nagging feeling that I used to know how to do it in a simpler (and hopefully less rough!) way with builtins. Is there any way to

Re: 'Composite' filter command in function

2011-12-16 Thread BPJ
On 2011-12-15 17:06, Ben Fritz wrote: On Dec 14, 8:55 pm, John Little wrote: BPJ asked: How do I do to get back to (roughly) the same line in the file as I was on after executing a filter command on the whole file? Paul answered: ctrl-i and ctrl-o will take you through the jump list

Function returns last executed command?

2011-12-16 Thread BPJ
27;No keymap assigned to "'.char.'"!' endif endfunction :inoremap k :call MapKeymap() === However when I source the file, and then do kx in insert mode I get the literal string "^B:setlocal keymap=whatever" inserted instead of the keymap being set. What am

Is it possible to have a pipe in formatprg?

2010-12-13 Thread BPJ
Is it possible to have a pipe in formatprg? :setl formatprg=filer1|filter2 (I know I can't do *that*, but that's the idea...) /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 mor

Saving/reusing (sub)patterns

2010-12-15 Thread BPJ
Is it possible in vimscript to save and reuse a (complex) (sub)pattern similar te Perl's qr// ? As usual I seem unable to find the right help section because of not knowing the right search term... /bpj -- You received this message from the "vim_use" maillist. Do not top-post!

Re: gvim auto copy selected text to clipboard

2012-04-22 Thread BPJ
o put it into another vim instance with ":put". The ":put" text was not what I had just yanked but was from the other selection. I just tried it again after reading your latest reply and it seems to work. Perhaps the order in which you add them matters? /bpj -- You receiv

Re: Howto print the file containing CJK characters?

2012-05-25 Thread BPJ
tions. Last but not least it has an option to prepend line numbers to the input, which paps can't do by itself. It's attached. You can set your own defaults near the top, and read help for the options with perl printme.pl --help /bpj -- You received this message from the "vim_u

Re: Folding on markdown headers

2012-05-27 Thread BPJ
ugin for its markdown dialect: <http://github.com/vim-pandoc/vim-pandoc> /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

Re: Folding on markdown headers

2012-05-27 Thread BPJ
addon-manager to install it. > [I want to rely on vam for managing my plugins.] I use pathogen and had no trouble installing anything so far. The good thing with pandoc is that its markdown is a superset of vanilla markdown, and it has a strict option to disable extended syntax. /bpj -- You

Re: Folding on markdown headers

2012-05-27 Thread BPJ
th setext style headers, with slim success so far, mostly due to my inability to take in :h syntax effectively... /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

Re: Remove spaces and line breaks and make single line wihtout spaces

2012-07-20 Thread BPJ
On 2012-07-20 11:23, Tony Mechelynck wrote: You shouldn't have used Google; use the help (Vim is the only program I know which has a help worth using): see Agreed, but you still often need Google to find out where to look in the help system! :( /bpj -- You received this message fro

SnipMate: How get literal '$' or '${' into snippet text?

2012-07-23 Thread BPJ
The subject says it all: how can I get a literal '$' or '${' into a SnipMate snippet text? /bpj -- semper perlitans! ;-) -- 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 informa

Re: dab on escaped backslashes

2012-10-24 Thread BPJ
a regular expression as well. /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

Automatically change encoding when opening file

2012-11-15 Thread BPJ
I regularly get files encoded in UTF16LE sent to me and want them to be automatically converted to UTF8 when opening them. I'm not sure what command to use/put in .vimrc for that though, so I wonder if anybody is already doing this, and how? /bpj -- You received this message from the &qu

Re: Vim vs GVim

2012-11-26 Thread BPJ
hite space is a necessity and colorful syntax highlighting is a great help for me to read from screen. /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

Re: Use registers in search and replace?

2013-01-13 Thread BPJ
tween normal, visual and command line at the same time. :h c_CTRL-R /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

make substitution on a copy (kindof) of matching lines

2014-10-02 Thread BPJ
Hi Vimmers, The other day I felt the need for a command/function which did a :substitute on a *copy* of each line matching its search pattern and inserted that copy below the original, unmodified line. I soon realized that it would be much easier to first make a copy of each (unmodified) line,

Re: make substitution on a copy (kindof) of matching lines

2014-10-08 Thread BPJ
Den 2014-10-02 16:33, Tim Chase skrev: > On 2014-10-02 16:17, BPJ wrote: >> The other day I felt the need for a command/function which did >> a :substitute on a *copy* of each line matching its search pattern >> and inserted that copy below the original, unmodified line. I

Re: make substitution on a copy (kindof) of matching lines

2014-10-08 Thread BPJ
Den 2014-10-08 16:13, Jürgen Krämer skrev: Hi, BPJ schrieb am 08.10.2014 um 16:00: Den 2014-10-02 16:33, Tim Chase skrev: On 2014-10-02 16:17, BPJ wrote: The other day I felt the need for a command/function which did a :substitute on a *copy* of each line matching its search pattern and

Vim and disabillity accessability

2014-11-27 Thread BPJ
some elegant way which will work even if I change kblayout, or will I have to e.g. make a dictionary with all non-a-z `'{unshifted-char}': '{shifted-char},'` mappings on my specific layout, and similarly for alt+key mappings and skift+alt+key mappings and loop through them?

Re: Vim and disabillity accessability

2014-11-27 Thread BPJ
Den 2014-11-27 17:06, Tim Chase skrev: On 2014-11-27 16:24, BPJ wrote: BTW I've found that I can't get the sticky-keys feature of GNOME to work, inside or outside Vim. :-( While I don't have good answers for your other questions, in the past I've used "xkbset"

Can the "<" char be escaped with a backslash in Vim keymaps?

2014-12-15 Thread BPJ
g used `\<` and it worked. I guess that's what is implied by "Examples"? The reason I'm asking is that I'm writing something which parses keymaps and turns them into another something which a third something can use to transliterate strings. Currently I'm using `\\([

Re: Can the "<" char be escaped with a backslash in Vim keymaps?

2014-12-18 Thread BPJ
Erik wrote: On 15.12.14 12:09, BPJ wrote: > > The reason I'm asking is that I'm writing something which parses > > keymaps and turns them into another something which a third something > > can use to transliterate strings. Is your task amenable to using sim

Re: Use contents of register in search?

2015-02-13 Thread BPJ
res, but this one won't be seldom used! /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 ar

Re: Extra sheet of paper.

2015-02-20 Thread BPJ
|lpr, with my own wrapper since I don't like the paps defaults and it takes an awful lot of options to get what I like. /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, vi

Re: markdown, the ``` marker.

2015-03-22 Thread BPJ
Den 2015-03-22 08:47, Iain skrev: Hello people, I would be grateful for your help: Whilst writing .md files and .markdown files in vim; I am having difficulty with the syntax colouring whilst writing, it compiles ok; it is working fine until I use the ``` marker after which it seems to not rec

Is there a plugin to use names instead of numbers to choose `'spellfile'` entries?

2015-05-10 Thread BPJ
a menu with the entries in `'spellfile'` and their corresponding numbers when I hit `zg`, since clearing a lot of words with `zG` for every session is annoying. Is there already some plugin which does something like that? /bpj [1] <https://en.wikipedia.org/wiki/Dyscalculia> --

Execute command on multiple ranges found by regex

2015-06-03 Thread BPJ
there is some easy solution I can't find... /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 y

How get a list of substrings matching a pattern?

2015-06-26 Thread BPJ
I have succeded in writing a function which splits the contents of a visual selection on a pattern, reverses the resulting list, joins it together on a separator and puts the result back into the visual selection (Yes that's kind of basic, right?): fun! RevList(...) let reg_save=@@

Re: Vim hangs and consums 24% of CPU

2015-07-05 Thread BPJ
Den 2015-07-02 12:22, Wolfram Volpi skrev: Shlomi Fish, thanks for the "Error detected while processing /home/kdetest/.vimrc" messages. So I commented line 13 of the vimrc file: Bundle 'gabrielelana/vim-markdown' And the problem went away. Christian, you where right, I will contact the main

match() to get the offsets of all matches of a pattern in a string

2015-07-28 Thread BPJ
above (ignoring the indent, I would get [6, 16, 20]. It's the usual problem: I don't know the right :help keyword /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:/

Re: match() to get the offsets of all matches of a pattern in a string

2015-07-28 Thread BPJ
Den 2015-07-28 18:02, BPJ skrev: I have a string of rows of dashes alternating with spaces, where the number of dashes/spaces is variable - --- --- I want to get a List of the offsets of all the space sequences, kind of a match() with /g (that's the best I can

Is there a repository of spell files for different languages?

2015-07-30 Thread BPJ
;dictionaries' and maintain the repository if the OO/LO licenses permit it and there is an interest. /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/mailli

Re: Warning for writing partial file

2015-08-15 Thread BPJ
. I'm curious what others have done when getting into such bad habits. /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 r

Re: Execute command on multiple ranges found by regex

2015-09-18 Thread BPJ
Den 2015-06-03 kl. 16:06, skrev Tim Chase: On 2015-06-03 16:03, BPJ wrote: You can define a range with regular expression(s) like: :/^beginfoo/+1,/^endfoo/-1!somefilter However if there are multiple ranges which would match only the next one is filtered. Can you make Vim apply the

Re: Alternative keymaps [Was: vim and touch typing]

2015-10-09 Thread BPJ
lucidate the keycode and keysim of > all the keys you want to remap. > > For me, this reverts the above mapping: > > $ xmodmap -e 'keycode 91 = 0x2e'# Change numeric pad ',' to '.' > > OK, that's three ways. Time to stop. > > Erik > &g

Re: "fictious" not recognized as spelling error

2015-10-20 Thread BPJ
Den 2015-10-19 kl. 18:52, skrev Paul: > For a reason that I haven't been able to suss out, "fictious" not > recognized as spelling error. That's because it "is a word" (an expression which I find rather silly) according to major dictionaries, although labeled archaic by most of them.[1] For examp

Re: Question about language specific mappings

2015-11-21 Thread BPJ
sts for some reason transliterate everything except Greek!) FWIW I have several custom mappings to switch on/between different keymaps and one to switch off. The `` is hard to type on my keyboard also. In fact I have a dictionary in .vimrc mapping one-letter identifiers to keymap names, and a funct

Re: "Exploding" a paragraph into individual lines

2016-01-30 Thread BPJ
lect-and-cut extensively in the gmail app for iphone because I am literally lame, but I could have refrained from replying until I could do so on my desktop, where I edit mail in gvim. /bpj -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply b

Re: Feature or bug? dw oddities

2016-02-07 Thread BPJ
söndag 7 februari 2016 skrev Tony Mechelynck : > On Sat, Feb 6, 2016 at 3:05 PM, Christian Brabandt > wrote: > […] > >> There are a few more places in the docs that need to point to this flag. > >> Also, plugin writers must be aware of the two different behaviors. > > > > Alright, I'll post an u

Re: Packages

2016-03-03 Thread BPJ
ole thing, including syntax, indent, etc. file. I think it's important emphasising that it's about a path (being added to 'runtimepath') and no actual loading happens. Please allow me to suggest `:addpack[age]path`. Unlike those listed above it would actually give me a hin

Re: can I set a variable to store the file path in the vimrc and open the specific file in the command line like :e $myfile

2016-03-09 Thread BPJ
Den 2016-03-09 kl. 15:33, skrev Nikolay Aleksandrovich Pavlov: Unlike your variant which does not allow a huge number of characters including spaces and `[]` which are not uncommon, Square brackets in filenames is common? Where did "ASCII alphanumerics, hyphen, underscore and period" go? I do o

Re: RFE: support POSIX standard and developing RE's

2016-03-24 Thread BPJ
torsdag 24 mars 2016 skrev Christian Brabandt : > On Do, 24 Mär 2016, L. A. Walsh wrote: > > > Posix, has 2 official RE's already, the modern REs( like in > > grep -E, (extended RE's) > > and "obsolete RE's" as found in ed, called "basic REs". > > > > Additionally for the past few years, more gnu

A function doing a :perl s/// over a range while emulating vim RE's /c flag

2016-04-28 Thread BPJ
g the functionality using Vim's perl API, if only I can get my head around the latter. I have written a function which does a substitution over a range with :perl s/// while emulatuing vim RE's /c flag as nearly as I could manage: <https://gist.github.com/bpj/e9ba4914dd269b30c620bf7cb030b292&

Re: Python Regex in a Vim Search

2016-05-12 Thread BPJ
t and asks for confirmation for each substitute. It could probably be rewritten using python and/or to build a hitlist. You can find the code here: https://gist.github.com/bpj/e9ba4914dd269b30c620bf7cb030b292 Mind the reply to! > > Slickedit has a similar function: > https://www.slicked

Re: distribute my unicode plugin with vim?

2016-05-21 Thread BPJ
fredag 20 maj 2016 skrev Christian Brabandt : > Hi, > as some of you may know, I am maintaining a little unicode plugin > https://github.com/chrisbra/unicode.vim > > Now I got an issue, that asks if it would be possible to distribute this > plugin with Vim, so I am asking here for feedback. Would

horizontal range, kindof

2016-06-27 Thread BPJ
\%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 rec

Re: horizontal range, kindof

2016-06-28 Thread BPJ
Mind the reply to! Den 27 jun 2016 17:53 skrev "Tumbler Terrall" : > > On Monday, June 27, 2016 at 6:12:47 AM UTC-5, BPJ wrote: > > I'm trying to do a substitution in a 'horizontal/virtual column range'. > > > > I have an ASCII table where the col

Re: Annoying "smart" indentation

2016-09-09 Thread BPJ
aviour changed all of a sudden. > > You can set `let g:skip_defaults_vim=1` in your .vimrc to not skip > loading of the defaults.vim file > Christian, Didn't there creep in a _not_ too many in that sentence? /bpj -- -- You received this message from the "vim_use" m

***sorry*** this version of netrw requires vim v7.4 with patch 213

2016-10-01 Thread BPJ
dolin Enorm version med GTK2-GUI. Funktioner inkluderade (+) eller inte (-): Huge version in English, I think. BTW I wish I knew how to build a non-localized vim... /bpj -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you

Re: perl vs python bindings for vim and tab page object access

2017-01-06 Thread BPJ
It would be reasonable if vim passed arrays to perl as anonymous references and perl had to pass arrays to vim as references. After all passing multiple arrays or hashes to subroutines already requires references in perl, as does nested data structures. fre 6 jan. 2017 kl. 13:21 skrev LCD 47 : >

Re: W-word Boundaries

2017-02-15 Thread BPJ
Den 13 feb 2017 19:52 skrev "Tim Chase" : On 2017-02-13 13:34, Shawn H Corey wrote: > > The two patterns, \< and \> match w-word boundaries. Is there > something to match W-word boundaries? The best I came up with is: > > \(^\|\s\)\@<= > > I'm writing a syntax file for G+ comments where in-lin

Reload ~/.vim/pythonx libraries without quitting vim?

2017-02-24 Thread BPJ
Is there a way to reload libraries in ~/.vim/pythonx (after editing them) without quitting/restarting vim? If there is it's probably in the help, but I usually can't find things there without already knowing the tag I should look for... TIA, /bpj -- -- You received this messag

Re: Automatically add two spaces between sentences

2017-03-16 Thread BPJ
You can make one iabb turning "." into "." and another, e.g. ".~" for generating "." when you really want that. You can also have separate iabbs for the most frequent abbreviations expanding to themselves, like Mr. in English. /bpj Den 15 mar 2017

Re: Automatically add two spaces between sentences

2017-03-17 Thread BPJ
Den 2017-03-16 kl. 15:24, skrev BPJ: You can make one iabb turning "." into "." and another, e.g. ".~" for generating "." when you really want that. You can also have separate iabbs for the most frequent abbreviations expanding to themselves, like Mr. in

Re: Fame!

2017-04-13 Thread BPJ
Den 13 apr 2017 19:11 skrev "Cesar Romani" : On 13/04/2017 11:43 a.m., Peter King wrote: > On Thu, Apr 13, 2017 at 09:43:36AM -0500, Russell Urquhart wrote: > > I personally think every piece of software should come with Vim >> keybindings! >> >> (But that's just me!) ;) >> > > No it isn't -- it'

Substitution ignoring combining marks

2017-04-15 Thread BPJ
d in the help and in my .vimrc to no avail. I guess I could comment out every uncommented :set in my .vimrc until I hit the right one :-) but hopefully one of you can give me the right answer quicker than that! TIA, /bpj [^1]: The metalanguage is the language a text about a linguistic su

Re: Substitution ignoring combining marks

2017-04-17 Thread BPJ
Den 15 apr 2017 23:11 skrev "Tony Mechelynck" : On Sat, Apr 15, 2017 at 2:54 PM, BPJ wrote: > It seems that I at some point, or a default, has set s/// to automatically > ignore differences in combining marks, which at the moment is a problem > since I'm searching for

HTML comment :join weirdness

2017-05-21 Thread BPJ
I have an HTML file with lots of pairs of lines like these: bb I want to join the two lines so that the comment comes at the end of the preceding line so I do `:g/ ^ | Nothing here!

Re: "superscript" asterisk is gone!

2017-05-23 Thread BPJ
der the cursor. You can also use matchadd() to make Vim highlight certain characters or character combinations differently. I do that with some Greek characters where certain diacritics are hard to discern. /bpj -- -- You received this message from the "vim_use" maillist. Do not top-p

How to get the current paragraph as input range to function

2013-02-25 Thread BPJ
paragraph? /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 "

Copying matched parts of lines

2013-03-26 Thread BPJ
Is it somehow possible with :g// to copy only the matched parts of lines as with the -o option of grep? /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://w

Fwd: Re: Copying matched parts of lines

2013-03-28 Thread BPJ
Dang! Seems I sent this directly to Tim! Please accept my apologies! /bpj On 2013-03-26 16:58, Tim Chase wrote: On 2013-03-26 16:43, BPJ wrote: Is it somehow possible with :g// to copy only the matched parts of lines as with the -o option of grep? Not elegantly, but it can be done: :let @a

Re: Forcing myself to learn vim properly

2013-04-09 Thread BPJ
. Besides I can't effectively use my pinky fingers! I don't think I do things wrong, nor is it right for me only because of my disability. I'm doing what works best for me. Period. I think I'll do this though, even though I mostly hardwrap: map gj map gk /bpj -- -- You

Re: ANN: YankRing 17.0

2013-04-30 Thread BPJ
/lib/mysql/mysql.sock' (2) /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 t

Removing junk .swp files

2013-05-01 Thread BPJ
Is there any easy/automatized way to remove junk (as in not associated with any file currently open in (g)vim) .swp files in the current directory and its subdirectories? A plugin perhaps? /bpj -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your r

Re: Removing junk .swp files

2013-05-01 Thread BPJ
know all that. But you may get junk swap files hanging around if you inadvertently compress a directory containing files which are currently open in Vim at compression time. Stupid, but there you have it! /bpj -- -- You received this message from the "vim_use" maillist. Do not top-

Re: How to fix id strings?

2013-06-04 Thread BPJ
x27;s ecceedingly uncommon that you actually write a word ending in a hyphen and then hit tab. So I'd have one file 'h#-.snippet' containing ${3:heading text} ${4} and so on. (I don't know about you but 60% of all I ever write are ...) /bpj -- -- You received this message f

Re: regex variable

2013-07-19 Thread BPJ
C" is now only an historical leftover (I haven't looked at the specs in a long time, but hey) The only thing I regularly miss in Vim regexes is \Q...\E. \V...\v comes close, although you still have to escape your backslashes under \V. So I guess I should file a feature request for support

Re: regex variable

2013-07-19 Thread BPJ
that way I can use a current version of perl without building vim myself. /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 receiv

Re: regex variable

2013-07-19 Thread BPJ
2013-07-19 16:00, Nikolay Pavlov skrev: On Jul 19, 2013 5:49 PM, "BPJ" wrote: 2013-07-19 09:59, shawn wilson skrev: On Jul 18, 2013 11:48 PM, "John Beckett" wrote: shawn wilson wrote: This is probably a feature request but I really do hate the regex engine and w

Re: regex variable

2013-07-19 Thread BPJ
2013-07-19 17:40, Nikolay Pavlov skrev: You missed the point of locales. It is not about encoding, it is about language and affects ranges (what characters match a-z range depends on language you set in your locale) and a big bunch of other things I do not care about. I know, but I usually deal

Re: YAML that folds right?

2013-07-22 Thread BPJ
2013-07-22 04:01, Steve Litt skrev: Hi all, Is there something I can use to make Vim fold correctly on YAML files? You might look at how Python folding is done. Fold markers in YAML comments would *work*, I suppose, however inelegant. I find myself wanting to insert navigational comments int

Re: vim-latex/latex-suite macros like FEM in nonEnglish languages

2013-10-15 Thread BPJ
this without modifying IMAP to be &keymap-aware. I personally just disabled all these macros for them being too intrusive (do not remember which of them exactly though). The best advice I have is to imap some function key or the like to 'toggle' iminsert and use it before and

Re: vim-latex/latex-suite macros like FEM in nonEnglish languages

2013-10-15 Thread BPJ
2013-10-15 16:12, BPJ skrev: 2013-10-13 23:43, Nikolay Pavlov skrev: On Oct 13, 2013 9:23 PM, "Vandra _" wrote: I work on a book in Russian using vim-latex. While in insert mode in Russian (with keymap command c-^) latex-suite macros like FEM don't work. Thats indeed very e

Re: Vimtutor translation

2013-10-22 Thread BPJ
2013-10-22 12:14, Tony Mechelynck skrev: BTW, what I'm typing now is on the Belgian version of the AZERTY keyboard layout, similar but not identical to what they use in France. See http://users.skynet.be/antoine.mechelynck/other/keybbe.htm for details, and for how I have access to an almost incr

Re: Simplified logo concept

2013-11-06 Thread BPJ
sight. /\ \Vim should have an all-monospace logo, of course! /bpj whose website sorely needs an update too, but I'd strip things down even more! -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. Fo

Re: Search for the visually select text

2013-11-15 Thread BPJ
27;' ||| | ||| +{expr} " '''''' ||| | ||+expression register " '''''' ||| | |+contents of register LITERALLY " '''''' ||| | +contents of register "

Re: Search for the visually select text

2013-11-15 Thread BPJ
2013-11-15 22:54, Gary Johnson skrev: On 2013-11-15, BPJ wrote: 2013-11-15 17:45, Bee skrev: nnoremap * g* " multi line search -- selection literal :help c_ " substitute({expr}, {pat}, {sub}, {flags}) vnoremap * y/\c\V=substitute(escape(@@,'/\&

From function: directing error from external command to window and open files in specific windows of current tab

2013-11-25 Thread BPJ
e three windows like this, and I wan't to open two other files in a and c, so I guess I'll also need to know how to identify those windows, with a on the left as well as the mirror image with a on the right: +--+--+ | |b | |a +--+ | |c |

Re: From function: directing error from external command to window and open files in specific windows of current tab

2013-11-25 Thread BPJ
2013-11-25 16:49, Ben Fritz skrev: On Monday, November 25, 2013 5:40:15 AM UTC-6, BPJ wrote: I need help with the following. I've googled for half an hour but don't seem to be able to formulate the questions correctly. As usual it's probably in the help but I don't know w

Re: improving Vim - Kickstarter - brainstorming - goals - who wants to join?

2013-12-02 Thread BPJ
ossible to find some way to build Vim with PCRE with Unicode support instead of or in addition to Vim's native regex engine? /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 informa

Syntax: group which can be contained or uncontained

2013-12-11 Thread BPJ
I'm trying to write my own syntax file for a language where there are a lot of groups of the form :syn match langSomeGrp /^\s*KeyWord.*/ The problem is that there are also end-of-line comments :syn match langComment /--.*/ which can either stand on a line of its own OR be contained in a group li

Copy the matched substring only with :g

2014-01-15 Thread BPJ
Is there any way when using :g to copy the matched substring only? I want to find all lines with CamelCase words and copy those words to the bottom of the buffer. :g/\a*\l\U\a*/t$ copies the whole line, but I want to get the part of the line matching the pattern. TIA, /bpj -- -- You

Re: Copy the matched substring only with :g

2014-01-15 Thread BPJ
2014-01-15 15:29, Paul Isambert skrev: "BPJ" : Is there any way when using :g to copy the matched substring only? I want to find all lines with CamelCase words and copy those words to the bottom of the buffer. :g/\a*\l\U\a*/t$ copies the whole line, but I want to get the p

Re: Copy the matched substring only with :g

2014-01-15 Thread BPJ
can some 20 lines of hits instead of trying to spot them scanning the whole file... Thanks anyway! /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/mai

Re: Copy the matched substring only with :g

2014-01-15 Thread BPJ
7;s something camelCase" regexp), but there are cases you'd have to make a determination on camelCase'ness: HTMLobject MyObject _myProperty _MyObject InnerHTML THIS_IS_HTML Yes, and it turned out some of my cC words were really plain old Titlecase, hence the second b

How to use ?

2014-01-18 Thread BPJ
In usr_41.txt of the vim documentation there is the following example: ``` 24 noremap

Re: How to Move/Copy multi-line search matches?

2014-01-27 Thread BPJ
nks to the $). Why the backslash before ? Will without it be replaced by ^M in a doublequoted string? Where in the :help is that? And if so why not a singlequoted string here anyway? Just trying to learn. /bpj -- -- You received this message from the "vim_use" maillist. Do not top-post! Typ

Re: Showing underlines in markdown

2014-02-04 Thread BPJ
I've seen this sometimes when resuming after having suspended while in insert mode. anything linked to the Constant highlight group becomes underlined. Happens with any filetype it seems. Forcing a redraw fixes it. I'm on Ubuntu 12.04 (with GNOME Classic to be sure! :-) tisdagen den 4:e februari 2

Re: [plugin] targets.vim - adds many text objects in the spirit of Vim, including next and last text objects

2014-02-07 Thread BPJ
t I would like to be able to define objects using a command/function syntax similar to :syn region. I hope this idea isn't totally naive. I'm just a user having done some limited forays into scripting Vim, lacking deeper knowledge/understanding. /bpj -- -- You received this message from

Re: [plugin] targets.vim - adds many text objects in the spirit of Vim, including next and last text objects

2014-02-07 Thread BPJ
note text] which I'd like to capture from the caret to the right bracket. Ideally also a way to jump to the beginning of the link/note text from outside, jumping to the next note even if a link intervenes or vice versa. /bpj -- -- You received this message from the "vim_use" mail

Turning J into an operator -- found code, but...

2014-02-16 Thread BPJ
so I have to do f>xx to remove the now misplaced comment/quote marker. I would be very grateful for a way to get that JJ to jump to the 'join point'! (I'm aware that a * which simply searches for the WORD under the cursor would do the trick, so anything in that direction would be h

Is it possible to simulate typing with a keymap inside an expression?

2014-02-24 Thread BPJ
setl keymap=foo :norm iblah does *not* work... /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

  1   2   >