Re: Building a Reactive Library from Scratch in Vim 9 Script

2024-01-02 Thread BPJ
Whatever happened to "as effective as possible with as little code as possible"? ;-D (Yeah I know. I don't either. Type checking library, anybody? No bonus points for guessing which language I'm using!) -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your

Re: [remove horizontal and vertical guidelines]

2023-01-12 Thread BPJ
something like that. > — > Best wishes, > Maxim > > > Maxim Abalenkov \\ maxim.abalen...@gmail.com > +44 7 486 486 505 \\ www.maxim.abalenkov.uk > > On 12 Jan 2023, at 08:52, BPJ wrote: > > > > Den tors 12 jan. 2023 08:51Maxim Abalenkov > skrev: > >>

Re: [remove horizontal and vertical guidelines]

2023-01-12 Thread BPJ
I edit > files in Vim. I find it distracting. Would you please advise me, on how to > disable them? Thank you and have a wonderful day ahead! > Maybe :h 'cursorcolumn' and :h 'cursorline' ? (I.e. :set nocursorcolumn and :set nocursorline) /bpj > — > Best wishes, > Maxim &g

Re: How to quickly move to a specific buffer?

2022-12-22 Thread BPJ
I usually have one tab open for each buffer. Then I can jump between the tabs/buffers with COUNT + gt. You can set up 'tabline' to display the tab number and/or use :tabs (which I have mapped to t) to see a list of the tabs. (Note: when I'm on termux and don't have too many tabs open I can just

Re: Patterns: balanced parentheses

2022-10-14 Thread BPJ
Den fre 14 okt. 2022 15:14rwmit...@gmail.com skrev: > As far as I know '%' auto-jumps to matching parens/etc. It does, but this is for inside a regex pattern, i.e. match balanced parens and any number of contained balanced parens, including recursively to any depth like

Re: Editing config files for docker containers with vim

2022-09-09 Thread BPJ
Den fre 9 sep. 2022 10:50Jirka Novak skrev: > Hi, > >I'm maintaining set of docker containers. We use convention that > every config file for a container is in /srv// subdirectory. > E.g. /srv//etc/cron.daily/logrotate. >We use vim to maintain config files and we like feature/shortcut

Re: Content of syntax regions

2022-08-24 Thread BPJ
: > > вт, 23 авг. 2022 г. в 20:02, Charles Campbell : > >> BPJ wrote: >> > For my DSL I have a syntax region for text between a pair of >> > delimiters inside which other syntax items should come in a specific >> > order, say first dslFoo, then dslBar, th

Content of syntax regions

2022-08-23 Thread BPJ
. What is the best way to do this? /bpj Den lör 18 juni 2022 14:58BPJ skrev: > The subject line says it all: I'm trying to use syntax clusters and wonder > if clusters may contain other clusters, i.e. should this work? > > syn cluster mydslAnyValue contains=@mydslValue,@mydslCon

Re: better way to always highlight NS?

2022-07-10 Thread BPJ
Den sön 10 juli 2022 14:47Anton Sharonov skrev: > Hi all, > > I am trying to always highlight non-breakable spaces in all my > buffers, regardless of the filetype. > > One way I found so far is: > > autocmd BufReadPost * > \ some | > \ other | > \ stuff | > \ exec "3mat Todo

Re: displaying line count of highlighted lines

2022-07-05 Thread BPJ
Den mån 4 juli 2022 18:17jose isaias cabrera skrev: > > Hi. > I just installed a term-only Ubuntu server with vim, and I would like to > show the highlighted lines count like my gvim one does in another system. > For example, when I highlight 12 lines on the gvim instance in another > server, at

Re: Can syntax clusters contain other clusters?

2022-06-18 Thread BPJ
The problem was with something else. Sorry for the noise! Den lör 18 juni 2022 17:51Bram Moolenaar skrev: > > > The subject line says it all: I'm trying to use syntax clusters and > wonder > > if clusters may contain other clusters, i.e. should this work? > > > > syn cluster mydslAnyValue

Can syntax clusters contain other clusters?

2022-06-18 Thread BPJ
The subject line says it all: I'm trying to use syntax clusters and wonder if clusters may contain other clusters, i.e. should this work? syn cluster mydslAnyValue contains=@mydslValue,@mydslContainer syn cluster mydslAllValues contains=@mydslAnyValue,mydslConstant TIA, /bpj -- -- You

Re: How to turn off auto-indenting in Vim for HTML?

2022-06-15 Thread BPJ
Den ons 15 juni 2022 05:48Steve Litt skrev: > Hi all, > > How do I turn off auto-indent in Vim for my HTML files? I prefer to > flush left everything and create blank lines at transitions. > Maybe setl noautoindent / setl noai will do? > Thanks, > > SteveT > > Steve Litt > March 2022

Re: Auto line break upon reply email

2022-05-08 Thread BPJ
spot > overlong lines which may arise during editing. > You also have to make sure "t" is in 'formatoptions' (see :h formatoptions). I forgot that because I always have it. Sorry! /bpj > HTH, > > /bpj > > > >> My email client is mutt. >> >> Thank you,

Re: Auto line break upon reply email

2022-05-08 Thread BPJ
setl tw=72 see :h textwidth I usually also do :setl cc=72 (see :h colorcolumn) to have an indication how much I have left on the line and to spot overlong lines which may arise during editing. HTH, /bpj > My email client is mutt. > > Thank you, > > - Tim > > -

Re: Vim9 import [was Vim9 script feature-complete]

2022-01-03 Thread BPJ
Den mån 3 jan. 2022 18:34Bram Moolenaar skrev: > > > On 2022-01-03, Marvin Renich wrote: > > > Don't bother with the > > > > > import MyClass from "myclass.vim" > > > import {someValue, MyClass} from "thatscript.vim" > > > > > > syntax, and only provide > > > > > > import "myclass.vim" >

Re: Vim turns 30 today!

2021-11-05 Thread BPJ
Den fre 5 nov. 2021 01:45Philip Rhoades skrev: > BPJ, > > > On 2021-11-04 21:39, BPJ wrote: > >> And also VimWiki ! > > > > I edit most text with VimWiki in Markdown mode, which allows very easy > > jumping inside sets of related files. > > >

Re: Vim turns 30 today!

2021-11-04 Thread BPJ
> > And also VimWiki ! I edit most text with VimWiki in Markdown mode, which allows very easy jumping inside sets of related files. /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

Re: Vim turns 30 today!

2021-11-04 Thread BPJ
surely drive most people crazy, but for me they are by now ideal. The combination Vim + Pandoc is what allows me to keep on working as a writing professional. A big thank you to Bram (and predecessors, and contributors) for making this possible! /bpj -- -- You received this message from

Syntax pattern delimiters (was: Unable to turn off spelling for words followed by punctuation characters)

2021-09-07 Thread BPJ
Den tis 7 sep. 2021 14:01Steve Dondley skrev: > OK, looks like the type of quotes makes the difference. I don't think syntax pattern strings follow the rules for ordinary quoted strings since you can use any punctuation character as delimiter just like with :s, and like with :s forward slash

Losing highlighting after line break

2021-06-01 Thread BPJ
I solved the problem I had yesterday — I had missed that the `matchgroup=Group` for a region must come before the `start=...` and `end=...`. Now I have run into another problem: I sometimes lose highlighting of contained items and the end of a region after a linebreak inside a region. Since I

Recursive parentheses in syntax

2021-05-31 Thread BPJ
$operator_B_re (? (?) ) | $some_operator_re (? (?) | (?) ) ) \} ) }msx; `` TIA, /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.

Re: What is fuzzy matching?

2021-04-30 Thread BPJ
match based on some criteria. > > The match with the highest score is returned first. > > > > Regards, > > Yegappan > > Ah I see. So IIUC Vim's fuzzy matching will match (caselessly) if > there is an extra letter but not if there is a missing letter, and it > won't match

Re: Automating paragraphs (was Re: Dump help pages)

2021-04-21 Thread BPJ
e selection. Just make sure that the selection ends with a blank line. The nnor Jp ... line from yesterday does the same over the whole buffer in normal mode, with the difference that it first inserts a blank line at the bottom of the buffer to make sure there is one. >

Re: Automating paragraphs (was Re: Dump help pages)

2021-04-20 Thread BPJ
dd a blank line below the last so we are sure there is one! > " gg " Go to the first line in the buffer > " V " Visually select the (first) line > " G " Extend the selection to the last line in the buffer > " :Jp " Execute th

Re: Automating paragraphs (was Re: Dump help pages)

2021-04-20 Thread BPJ
uot; Go to the last line in the buffer " o " Add a blank line below the last so we are sure there is one! " gg " Go to the first line in the buffer " V " Visually select the (first) line " G " Extend the selection to the last line in the buffer "

Re: tabedit and closing

2021-03-18 Thread BPJ
Den tors 18 mars 2021 17:44rwmit...@gmail.com skrev: > On Thursday, March 18, 2021 at 12:14:43 PM UTC-4 Gary Johnson wrote: > >> On 2021-03-18,gmail.com wrote: >> > On Thursday, March 18, 2021 at 10:51:20 AM UTC-4 BPJ wrote: >> > >> >> Den tors 18 mars 2

Re: tabedit and closing

2021-03-18 Thread BPJ
register. However I have the whole set of :tab... commands mapped to F12 combos in my .vimrc because I use them all the time: nnor n :tabnext nnor p :tabprevious nnor f :tabfirst nnor l :tablast nnor t :ls t com Tc tabclose | tabprevious nnor c :Tc > On Thursday, March 18, 2021 at 10:51:20

Re: tabedit and closing

2021-03-18 Thread BPJ
Den tors 18 mars 2021 15:03rwmit...@gmail.com skrev: > I have multiple tabs open using :tabedit > I'm in a tab other than the right most. > :tabedit opens a new tab to the right of the current tab > :q closes that tab but also advances the current tab again to the right. > > Is there a setting

Re: vim terminal - cannot generate C-Space (C-@)

2021-01-14 Thread BPJ
Den tors 14 jan. 2021 09:06Tony Mechelynck skrev: > There are keystrokes which are difficult to get on some keyboard > layouts or on some terminals. A workaround is to define a mapping with > the desired keystroke as {rhs} and something which you know how to > type, but don't need in Vim, as

Re: why doesn't min take more than 1 parameter?

2021-01-06 Thread BPJ
Den ons 6 jan. 2021 21:29Salman Halim skrev: > While I can't explain why things work the way they do, here is a custom > function that should do what you want (called Min); it takes a variable > number of arguments, flattens incoming lists into a single list and then > calls the built-in min.

Re: "deoplete" has a problem with my ESP32... :)

2020-12-22 Thread BPJ
Den tis 22 dec. 2020 11:44 skrev: > Hi, > > currently I am codeing a firmware for an ESP32 microcontroller. > I am using the ESP-IDF framework. This framework needs some > environment variables to be set. If this is done, deoplete > get confused and behaves oddly (seems to be based on the >

Re: the :sort command does not appear to give expected result

2020-12-06 Thread BPJ
Den tis 27 okt. 2020 23:56Chris Jones skrev: > > If I use the sort command provided on linux by the GNU coreutils package > so as to sort this file at the terminal > I use an external Perl script which uses one of several sort orders defined in Perl modules with [Unicode::Collate::Locale][] or

Re: Markdown with LSD-hallucinations... :)

2020-11-30 Thread BPJ
Den mån 30 nov. 2020 19:43 skrev: > Hi, > > I often come across markdown files - mostly wth github repos. > When browsing those with vim I often feel like I had licked > a "ticket" with LSD: > LOTS of bright colors and marks, which do highlight that > much, that a deep shadow falls onto any

Re: best library for data forms entry in vim

2020-11-18 Thread BPJ
Den ons 18 nov. 2020 22:14hor...@gmail.com skrev: > BPJ, > > Thanks for the feedback and idea, and i'll check out your tool. > Thanks. Note that I just pushed a rather vital fix for a bug which I introduced earlier today! /bpj You know, that's my fallback plan, to script

Re: best library for data forms entry in vim

2020-11-18 Thread BPJ
also optionally preload a default key-value mapping from a YAML or JSON file and/or save the collected/modified data to a YAML file. https://github.com/bpj/placeholder-prompt > so have people attempted this? if so which api should I be looking at.. > > >>> -- > -- > You re

Re: Happy birthday!

2020-11-04 Thread BPJ
ry function call. Does this mean - That there are no varargs? - That varargs are made available in some other way? - That you can't pass lists and dictionaries as arguments? (Not likely!) -Something else entirely? (I.e. me being dense!) /bpj -- -- You received this message from the "

Fwd: Selective spellchecking

2020-10-15 Thread BPJ
Another case of me not finding the relevant parts/tags in the documentation: Where can I find out how to set things up so that spell checking ignores markup, or conversely so that it ignores everything except comments? I'm sure it works through associating spell check with certain highlight

Re: VIM and Perl

2020-09-17 Thread BPJ
Den tors 17 sep. 2020 17:53Ruben Safir skrev: > On 9/17/20 11:23 AM, Matt Connell wrote: > > If you are willing and able to recompile vim, it can be built without > > depending on perl. > I have one question, if you don't mind me indulging. Why would vim need > perl built in as a dependency.

Re: create rules in vim

2020-09-17 Thread BPJ
(Traducido al español con el traductor de Google debajo del inglés) I like surround.vim . It is not totally automatic but on the other hand it also allows you to change HTML tags or brackets ( ) { } [ ] < > very easily. With the plugin enabled to create an HTML tag

Re: writing documents in plain TeX, using vim

2020-08-31 Thread BPJ
Den mån 31 aug. 2020 06:38 skrev: > Hi, > > to write documents in plain TeX (no LaTeX) with vim I am looking forward > for > plugins and helpers to do so. > > I searched the web and found quite a few - but they all supports LaTeX > and to my knowledge don't support plain TeX. > > I don't want to

Re: Vim easter egg in command line completion

2020-06-29 Thread BPJ
Den sön 28 juni 2020 22:36Yegappan Lakshmanan skrev: > Hi, > > On Sun, Jun 28, 2020 at 1:24 PM Dominique Pellé > wrote: > >> Yegappan Lakshmanan wrote: >> >> > Hi, >> > >> > Try pressing Tab after entering the following (you need a space after >> Ni): >> > >> >:hi Ni >> > >> > I haven't

Re: function definition for only one file, not for other simultaneously opened files

2020-05-31 Thread BPJ
sion is present on the filename or not. " e.g. let bool = bpj#util#ext_is('md', bufname()) fun! bpj#util#ext_is (ext, filename) abort " prepend dot to ext if none let wanted = substitute(a: ext, '\v^[^\.]+$', '.&','') " get ext incl do

Re: Use Vim to compute the date of Easter

2020-05-03 Thread BPJ
Den sön 3 maj 2020 08:37Tony Mechelynck skrev: P.P.S. Gauss invented as a child the formula on which this method is a > minor improvement because he wanted to know his birthday: his mother > only remembered that is was "on a Wednesday, one week before Ascension > day". Germany had made the

Re: :terminal

2020-04-05 Thread BPJ
Den sön 5 apr. 2020 02:41Walter Cazzola skrev: > Dear Vimmers, > just recently I'm passed to use vim 8 (8.2 to be precise) from vim 7.4. > > I really like the idea of having a terminal attached to my editor > (:terminal) > unfortunately in my case it doesn't work properly. > > In particular I

Re: VIM on Windows Work Laptop

2020-03-07 Thread BPJ
For starters it is called _vimrc on windows, and according to :h _vimrc it lives in $HOME/vimfiles/, which is what ~/.vim is called on Windows. Den lör 7 mars 2020 22:35Jack corley skrev: > Hey, guys I recently started a position that requires me to use a windows > workstation but I would like

Re: viw / how to select a one char word ?

2020-02-04 Thread BPJ
Den mån 3 feb. 2020 12:17M Kelly skrev: > Hi, > > Is there a way to select a one char word ? > lbve or viw or ? All my attempts seem to continue on to the beginning (or > end) of the next word. > Is it that a 'word' cannot be a single char ? > > thx for everything vim, > -m > I simply use v.

Re: Feature/plugin dependency checks in plugins

2019-02-16 Thread BPJ
Den 2019-02-16 kl. 11:53, skrev meine: On Sat, Feb 16, 2019 at 09:54:01AM +0100, BPJ wrote: What is the best practice when a plugin needs a minimum version of Vim with certain features, or on some other plugin? several times a week I run an update of all software on my machines, and therefor

Feature/plugin dependency checks in plugins

2019-02-16 Thread BPJ
if it is issued at loading time. There is also the concern that if you are using a plugin manager some other plugin which you depend on may not be loaded yet even though it eventually will be. TIA, /bpj -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your r

Placing fold markers above comments above declarations

2019-01-10 Thread BPJ
with getting the assignment operators and brackets copied along with the sub/variable names. Note that I want the comment marker immediately before the fold marker preserved, as I search for `#{{{\d\+` to remove the fold makers when I'm done. /bpj -- -- You received this message from

Re: Abbreviations not saving in vim

2018-12-10 Thread BPJ
mån 10 dec. 2018 kl. 08:41 skrev revrari : > On Monday, December 10, 2018 at 9:36:34 AM UTC+2, Christian Brabandt wrote: > > On So, 09 Dez 2018, revrari wrote: > > > > > Thanks. The corrections should go to the autocorrect.vim file. > > > > Not sure it is possible per configuration. > > > > Well,

Re: Mapping for one handed touch typing

2018-03-29 Thread BPJ
I'm also disabled having cerebral palsy with reduced mobility in both hands and arms. While most of my remappings probably won't help you one of the things I've done might: I've remapped most of the commands to {key} because it's hard for me to hold down two keys simultanously and

syntax highlighting disabled with :bufdo e in gvim

2018-03-20 Thread BPJ
is of course to not have to do that! /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

Re: markdown 4 backticks fenced code blocks

2017-10-20 Thread BPJ
> fre 20 okt. 2017 kl. 11:44 skrev David Demelier >Hello, > In vim, all my markdown files used 4 backticks () to delimitate fenced code blocks. It does not renders correctly in vim because it looks like vim's markdown syntax only supports 3 backticks (which is valid in most markdown

Re: "superscript" asterisk is gone!

2017-05-23 Thread BPJ
combining characters under 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"

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: Substitution ignoring combining marks

2017-04-17 Thread BPJ
Den 15 apr 2017 23:11 skrev "Tony Mechelynck" <antoine.mechely...@gmail.com >: On Sat, Apr 15, 2017 at 2:54 PM, BPJ <b...@melroch.se> wrote: > It seems that I at some point, or a default, has set s/// to automatically > ignore differences in combining marks, whic

Substitution ignoring combining marks

2017-04-15 Thread BPJ
n 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 subject

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

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.

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 2

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 message from

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

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

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

2016-10-01 Thread BPJ
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 ar

Re: Annoying "smart" indentation

2016-09-09 Thread BPJ
d that the behaviour 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

Re: horizontal range, kindof

2016-06-28 Thread BPJ
Mind the reply to! Den 27 jun 2016 17:53 skrev "Tumbler Terrall" <kingdomboun...@gmail.com>: > > 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 tabl

horizontal range, kindof

2016-06-27 Thread BPJ
(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 received this message from the "vim_use" maillist. Do not

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

Re: Python Regex in a Vim Search

2016-05-12 Thread BPJ
ome context 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.

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

2016-04-28 Thread BPJ
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> Feel free

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

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

Re: Packages

2016-03-03 Thread BPJ
hing, 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 hint what it is all about! /bpj

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

Re: "Exploding" a paragraph into individual lines

2016-01-30 Thread BPJ
s difficult for me to select-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! T

Re: "Exploding" a paragraph into individual lines

2016-01-29 Thread BPJ
fredag 29 januari 2016 skrev Salman Halim :

>
> On Jan 28, 2016 11:56 PM, "Chris Collision"  > wrote:
> >
> >
> >
> > On Thu, Jan 28, 2016 at 8:04 PM, Rik  

Re: Question about language specific mappings

2015-11-21 Thread BPJ
for them, like `g` for Greek. The dictionary is a global variable and I have a command to add an entry and rerun the mapping function. /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 informati

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

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

2015-10-09 Thread BPJ
e 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 > > <https://github.com/bpj/vim-ToggleKeyma

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

Re: Warning for writing partial file

2015-08-15 Thread BPJ
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 received this message because you are subscribed to the Google

Is there a repository of spell files for different languages?

2015-07-30 Thread BPJ
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/maillist.php --- You received this message because you

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

2015-07-28 Thread BPJ
(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://www.vim.org/maillist.php

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 do

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

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

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 you are subscribed

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

2015-05-10 Thread BPJ
'` 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 -- -- You received this message from the vim_use maillist. Do

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

Re: Extra sheet of paper.

2015-02-20 Thread BPJ
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, visit http://www.vim.org/maillist.php --- You received this message because you

Re: Use contents of register in search?

2015-02-13 Thread BPJ
(though I don't know what I've *meant* to type when doing so!) and have been unable to find out what I've done. It has already proven especially useful when I have added too few/many backslashes in search patterns! I tend to forget seldom-used features, but this one won't be seldom used! /bpj

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 simple methods? E.g.: $ echo Ewokhbhs

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

2014-12-15 Thread BPJ
? 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 `\\([\\])` to match backslash escapes, but I suspect it isn't enough. /bpj -- -- You received this message

Vim and disabillity accessability

2014-11-27 Thread BPJ
or outside Vim. :-( /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: 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 to tweak these options without

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 soon realized that it would

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

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)

Re: syntax highlighting with regular expressions

2014-07-06 Thread BPJ
Den 6 jul 2014 01:03 skrev Ben Fritz fritzophre...@gmail.com: On Saturday, July 5, 2014 5:26:15 PM UTC-5, Mark Volkmann wrote: I'm trying to use syntax region with start=regex and end=regex, but having difficulty. I want the region to match what follows the start regex and precedes the end

  1   2   >