way to force vim to do a read (already in 'autoread')

2014-06-16 Thread BPJ
Perhaps --remote-expr somthing could do it? See :h remote.txt I can neither test/explore nor read the manual sensibly ATM as I'm writing/browsing on my iphone while waiting for the bus. måndag 16 juni 2014 skrev Linda A. Walsh v...@tlinx.org javascript:_e(%7B%7D,'cvml','v...@tlinx.org');:

Re: Vim as prose editor - how to remove '~' and '@'

2014-06-07 Thread BPJ
be used to from one's run-of-the-mill GUI editor, but then almost nothing in Vim is! /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

Re: No menu bar (but menus are loaded) :-?

2014-06-06 Thread BPJ
was added by me after spending hours on finding a solution a few years ago.) /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

Re: Library/framework to manage uniformly *all* programming languages

2014-05-23 Thread BPJ
others have done, or even better by making things user-customizable. Which functionality you use often or seldom also varies by individual, and in time for each individual, I daresay. /bpj -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

Re: Library/framework to manage uniformly *all* programming languages

2014-05-22 Thread BPJ
2014-05-21 10:09, Gautier DI FOLCO skrev: Yes, I thought to mainstream programming languages. The definition of which depends on which generation you belong to... /bpj -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying

Re: new vim user

2014-05-22 Thread BPJ
2014-05-21 23:27, Elijah Griffin skrev: BPJ wrote: My 'problem' is that I can't by any stretch of imagination think of what's sjumped over by W as a 'word' -- it's usually at least one word and then some punctuation. I'm probably a dinosaur for havings so restrictive a view of what a 'word

Re: new vim user

2014-05-21 Thread BPJ
2014-05-21 15:44, Dan Lowe skrev: On Tue, May 20, 2014, at 01:13 AM, BPJ wrote: I also used to have problems with those, until I realized that they have or can be thought to have mnemonic names, which may not be obvious if English isn't your native language: Key Mnemonic |b

Re: new vim user

2014-05-20 Thread BPJ
. Google knows how to make the most out of it. I actually find things in the online vimdoc with google more easily than I find them with :help... /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

Keymaps on the command line

2014-04-24 Thread BPJ
of the time I simply yank and put any 'fancy' strings I need on the command line or use * and n but sometimes it is desirable to type on the commandline with a keymap enabled, so I really would like to know how to control this. TIA, /bpj -- -- You received this message from the vim_use maillist. Do

Re: ANN: vim-textobj-quotes - text objects for the closest pairs of quotes of any type

2014-04-12 Thread BPJ
What happens if the cursor is between two different quotes on the same line 'like' in| this example with a far away quote Will it always jump to the double quote to the right or is there a cutoff point where the quote to the right is considered too far away? Den 12 apr 2014 03:12 skrev Anton

Re: Poll: What's good about plugin managers?

2014-03-25 Thread BPJ
Ben Fritz wrote: I think simple and easy runtime path management like Pathogen offers would be a great addition to Vim and would not be very controversial. I understand that all the other plugin managers build on top of something like this to allow easier

Re: Poll: What's good about plugin managers?

2014-03-25 Thread BPJ
. It may be possible to install by just dropping stuff into the ~/.vim folder and letting the OS file manager 'combine' everything into the right places, but *un*installing becomes *very* hard. /bpj -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

customize indentation

2014-03-22 Thread BPJ
lördagen den 22:e mars 2014 skrev Arup Rakshit tuka...@gmail.comjavascript:_e(%7B%7D,'cvml','tuka...@gmail.com'); : On Saturday, March 22, 2014 4:56:34 PM UTC+5:30, Erik Christiansen wrote: On 22.03.14 02:29, Arup Rakshit wrote: I am not using *tab* for indentation, rather 2 space

Re: README.md to a doc?

2014-02-27 Thread BPJ
the file yourself it can be marked up as *both* Markdown and Vim halp without looking *too* strange when rendered as either. You can see an example here: https://github.com/bpj/vim-ToggleKeymap/blob/master/doc/ToggleKeymap.txt It's a bit on the extreme side, and I'm afraid it looks just a little

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

2014-02-24 Thread BPJ
: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 subscribed to the Google

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

2014-02-16 Thread BPJ
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 helpful too.) TIA, /bpj -- -- You received

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

2014-02-07 Thread BPJ
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 the vim_use maillist. Do not top-post! Type

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

2014-02-07 Thread BPJ
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 maillist. Do not top-post! Type your reply below the text you are replying

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

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

2014-01-27 Thread BPJ
before cr? Will cr 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! Type your reply below the text you

How to use Plug?

2014-01-18 Thread BPJ
out of readability. I guess I should have written ``` noremap unique script PlugTypecorrAdd \ :call SIDAdd(expand(cword), 1)CR ``` ) /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

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 b...@melroch.se: 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

Re: Copy the matched substring only with :g

2014-01-15 Thread BPJ
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/maillist.php --- You received this message because you are subscribed to the Google

Re: Copy the matched substring only with :g

2014-01-15 Thread BPJ
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 branch in the pattern of my perl filter solution. /bpj -- -- You received this message from the vim_use maillist

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

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

2013-12-02 Thread BPJ
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 information, visit http://www.vim.org/maillist.php

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

2013-11-25 Thread BPJ
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 | +--+--+ /bpj -- -- You

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 where to look

Re: Search for the visually select text

2013-11-15 Thread BPJ
'' |+search '' +yank selected into unnamed register I don't get the idea with the substitute(); would someone please enlighten me? I speak only pidgin vimscript! :-) /bpj -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

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_C-R substitute({expr}, {pat}, {sub}, {flags}) vnoremap * y/\c\VC-RC-R=substitute(escape(@@,'/\'),'\n','\\n','g')crcr

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

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

2013-10-15 Thread BPJ
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 after other imaps. /bpj

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 _ van...@rambler.ru 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

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

Re: regex variable

2013-07-19 Thread BPJ
... /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

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

Re: How to fix h1 id strings?

2013-06-04 Thread BPJ
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 h${1:2} id=${2:id-text}${3:heading text}h$1 ${4} and so on. (I don't know about you but 60% of all h? I ever write are h2...) /bpj -- -- You received

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

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-post! Type

Re: ANN: YankRing 17.0

2013-04-30 Thread BPJ
/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 the Google Groups vim_use

Re: Forcing myself to learn vim properly

2013-04-09 Thread BPJ
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 C-Down gj map C-Up gk /bpj -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply

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

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://www.vim.org

How to get the current paragraph as input range to function

2013-02-25 Thread BPJ
the 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 vim_use group

Re: Use registers in search and replace?

2013-01-13 Thread BPJ
. It appears I am trying to cross between 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

Re: Vim vs GVim

2012-11-26 Thread BPJ
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

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 vim_use

Re: dab on escaped backslashes

2012-10-24 Thread BPJ
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

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

2012-07-23 Thread BPJ
The subject says it all: how can I get a literal '$digit' or '${digit' 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 information, visit http

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 from

Re: Folding on markdown headers

2012-05-27 Thread BPJ
-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
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 received this message from the vim_use maillist. Do not top-post

Re: Folding on markdown headers

2012-05-27 Thread BPJ
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: Howto print the file containing CJK characters?

2012-05-25 Thread BPJ
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_use maillist. Do not top-post! Type your

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 Littlejohn.b.lit...@gmail.com 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

Function returns last executed command?

2011-12-16 Thread BPJ
=== However when I source the file, and then do F12kx in insert mode I get the literal string ^B:setlocal keymap=whatever inserted instead of the keymap being set. What am I doing wrong? /bpj -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

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

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

Re: Help me please ^^

2011-05-03 Thread BPJ
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 the text you are replying to. For more information, visit http://www.vim.org

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

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

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! Type your reply

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 more information, visit http

<    1   2