Re: CTRL+V I CTRL+Y - duplicating text from current line.

2021-07-05 Thread Chris Jones
On Mon, Jul 05, 2021 at 03:20:17AM EDT, 'Jürgen Krämer' via vim_use wrote: > Hi, > > Chris Jones schrieb am 03.07.2021 um 21:50: [...] > > > Is there a better way (excluding mouse'ing and plugin'ing) to achieve > > this? > > "A" in visual block

Re: Prevent vim from polluting the file system with a bunch of temporary $HOME/.viminf[a-z] files

2021-07-05 Thread Chris Jones
On Mon, Jul 05, 2021 at 07:10:40AM EDT, John Barbour wrote: > Side note, a "tmux" or "screen" session can helpful when network > connectivity is and issue. I think that what may have caused the problem is that due to having had to move all my stuff to a new box and restore from backups... which

CTRL+V I CTRL+Y - duplicating text from current line.

2021-07-03 Thread Chris Jones
Something that's been bugging me for some time. I am working on an anthology of French literature and I need to xhtml this renowned piece from the late 18th century: | 000 ... | 001 En tous lieux le cul nous appelle, $ | 002 Le cul met tous les vits en rut,$ | 003 Le cul du

Re: Prevent vim from polluting the file system with a bunch of temporary $HOME/.viminf[a-z] files

2021-07-03 Thread Chris Jones
On Thu, Jul 01, 2021 at 09:37:33AM EDT, aroc...@vex.net wrote: > > The best way to avoid having those files laying around is to find > > out why Vim is unable to rename them and fix that problem. Watch > > for error messages when Vim closes. > Possibly a permissions problem? A look at the

Prevent vim from polluting the file system with a bunch of temporary $HOME/.viminf[a-z] files

2021-06-30 Thread Chris Jones
No idea where these files come from or what they're for. I ended up grepping the reference manual for clues and am none the wiser. Internet searches also failed to give me an answer. Is there any way to tell vim NOT to create them in the first place? Thanks, CJ -- -- You received this

Re: using a variable in a substitute command

2021-05-21 Thread Chris Jones
On Fri, May 21, 2021 at 02:23:56PM EDT, Gary Johnson wrote: > On 2021-05-20, Chris Jones wrote: > > > And as to doubling the textit slash it's needed because vim gobbles up > > the initial 't' of 'textit' otherwise .. not sure why. > > In many contexts, Vim interprets

Re: using a variable in a substitute command

2021-05-21 Thread Chris Jones
On Thu, May 20, 2021 at 12:37:16PM EDT, Tim Chase wrote: > On 2021-05-19 19:16, Chris Jones wrote: > > Now I tried to replace the "echom g:counter" command by a > > :s(ubstitute) command, e.g. > > > > | :s/^# \(.*$\)/# \\textit{\=g:counter: \0} >

using a variable in a substitute command

2021-05-20 Thread Chris Jones
I have a bunch of headers of the form: | # ... in a few files conveniently named: f01.md, f02.md... fnn.md and I was looking for a way to number these headers and add a constant literal so that after processing they would look something like this: | # \textit{: } While editing the files, I

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

2020-12-06 Thread Chris Jones
On Sun, Dec 06, 2020 at 04:37:52AM EST, BPJ wrote: > 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

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

2020-12-06 Thread Chris Jones
On Sun, Dec 06, 2020 at 03:44:03AM EST, Christian Brabandt wrote: > > On Sa, 05 Dez 2020, Chris Jones wrote: > > > BTW... How can I keep an eye on if/when/how this issue will be addressed > > natively in vim? > > If I remember correctly what the issue was then I

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

2020-12-05 Thread Chris Jones
On Thu, Nov 05, 2020 at 05:27:22PM EST, Chris Jones wrote: > So I have two problems: > > 1. sort the output by key value (couldn't think of a simple way > to do this off the batน... > > 2. until the issue I described earlier in this thread is addressed > I need to

Re: regex to find where 'sample text' is not followed by 'sample text' a couple of lines down

2020-11-15 Thread Chris Jones
On Sat, Nov 14, 2020 at 08:16:26PM EST, Tim Chase wrote: > On 2020-11-14 16:18, Chris Jones wrote: [..] > The "\%(…\)" is the same as the grouping/capturing "\(…\)" > except, well, it doesn't capture (for later reuse with either "\1", > "\2", e

Re: regex to find where 'sample text' is not followed by 'sample text' a couple of lines down

2020-11-14 Thread Chris Jones
On Thu, Nov 12, 2020 at 07:15:07PM EST, Tim Chase wrote: > On 2020-11-12 18:42, Chris Jones wrote: > > I am proofreading a document where a few words occur on one line > > and the same exact words are replicated two lines down. > > > > Here's a sample: > > &g

regex to find where 'sample text' is not followed by 'sample text' a couple of lines down

2020-11-12 Thread Chris Jones
I am proofreading a document where a few words occur on one line and the same exact words are replicated two lines down. Here's a sample: | ```{=latex} | \index{Text that must occur twice} | ``` | **2507. Text that must occur twice.** ... etc. I found that it's easy to highlight such

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

2020-11-05 Thread Chris Jones
On Sun, Nov 01, 2020 at 02:45:28AM EST, Tekki wrote: > Chris Jones schrieb am Samstag, 31. Oktober 2020 um 20:16:53 UTC+1: > > You could create your own sort command in vimrc, for example > > command -nargs=1 Sort :.,+!sort - > > Then :Sort7 will sort the above list of l

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

2020-11-05 Thread Chris Jones
On Sun, Nov 01, 2020 at 02:45:28AM EST, Tekki wrote: > Chris Jones schrieb am Samstag, 31. Oktober 2020 um 20:16:53 UTC+1: > > > > > So what's the next step? > > > > > You could create your own sort command in vimrc, for example > > command -nargs=1 Sort

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

2020-10-31 Thread Chris Jones
On Tue, Oct 27, 2020 at 10:26:47PM EDT, Tony Mechelynck wrote: > On Tue, Oct 27, 2020 at 11:55 PM Chris Jones wrote: > A "stable" sort is a sort which will keep lines with the same sort > keys in the order they were before the sort. (If you sort on whole > lines the dif

the :sort command does not appear to give expected result

2020-10-27 Thread Chris Jones
Here's a (test) file that contains a sample of single characters from the French alphabet. Column 1 contains a character (0x09) and column 2 contains the actual letters. A E O À È É Ô Œ If I use the sort command provided on linux

Re: Disable automatic indentation of a block that starts with number+period after issuing gw-type commands

2020-10-27 Thread Chris Jones
On Mon, Oct 26, 2020 at 03:51:57PM EDT, Gary Johnson wrote: > On 2020-10-26, Chris Jones wrote: > > It looks like you have the 'n' flag in 'formatoptions' set. Try > executing this, > > :set fo-=n > > and reformatting that paragraph. If that's it, you can fin

Disable automatic indentation of a block that starts with number+period after issuing gw-type commands

2020-10-26 Thread Chris Jones
I would like to disable this feature. I have text that looks like this: | 1234. Reprehenderit voluptatem similique quibusdam | voluptate voluptas. | Et repellat autem aspernatur sunt aperiam id necessitatibus | laudantium. Rerum | eum | libero excepturi cum illum aliquam rerum aut. Amet

Re: An interesting little poser

2020-07-01 Thread Chris Jones
On Sun, Jun 28, 2020 at 05:37:04PM EDT, Mateusz Okulus wrote: > I've made the following macro that works for the given example, assuming > 1 line of footnote. > > Run the following (copy and paste) > > :map G?\[\d\+\]va[y/0dd0DnF[hr^llPdt] > > Press F2 to run this macro. You can also hold the

Re: An interesting little poser [PS]

2020-06-30 Thread Chris Jones
On Mon, Jun 29, 2020 at 03:34:03PM EDT, Tim Chase wrote: > Try changing that line from > > $?^$?+,$g/^\[\@!.*\n\[\@!/,/\n\[\|\%$/j > > to > > $?^$?+,$g/^\[\@!.*\n\[\@!./,/\n\[\|\%$/j This indeed fixes the problem. Still trying to wrap my head around this bizarre

Re: An interesting little poser

2020-06-29 Thread Chris Jones
On Sun, Jun 28, 2020 at 05:37:04PM EDT, Mateusz Okulus wrote: > > Run the following (copy and paste) > > :map G?\[\d\+\]va[y/0dd0DnF[hr^llPdt] Nice! Really does a spectacular job when run on my toy example... especially when one presses and holds down key. But there appears to be a problem

Re: An interesting little poser [PS]

2020-06-28 Thread Chris Jones
On Mon, Jun 22, 2020 at 09:40:38PM EDT, Tim Chase wrote: > > function! Unfootnote() > " make all the footnotes on one line > $?^$?+,$g/^\[\@!.*\n\[\@!/,/\n\[\|\%$/j > " gather the footnotes into b:a > let b:a={} > $?^$?,$g/\[\d\+\]/let b:a[getline('.')]=getline(line(".")+1)

Re: An interesting little poser [PS]

2020-06-26 Thread Chris Jones
On Mon, Jun 22, 2020 at 09:40:38PM EDT, Tim Chase wrote: Sorry for the delay... needed time for this to sink in (and test) > In this case because each of the commands involves the :g command, it > becomes a bit trickier. I'd likely define a function something like > > function! Unfootnote()

Re: An interesting little poser [PS]

2020-06-22 Thread Chris Jones
Congrats! Works out of the box and does exactly what I had in mind: copy-pasted the commands and the result is spectacular. The clever idea is to use the :g(lobal) command to build the array. I posted a little too fast and left out an important third³ footnote at the bottom of my message...

An interesting little poser

2020-06-21 Thread Chris Jones
I have a bunch of text files where the footnotes are in the following format: <- START OF FILE -> Nobis delectus adipisci nostrum vel. Consequuntur ducimus repellat saepe. Itaque [1] et sit voluptate non sint. Ab labore sapiente voluptatem ratione illum voluptatem reprehenderit. Corporis

Re: Wrapg text at col. 80 on large-ish files - performance aspects.

2020-06-10 Thread Chris Jones
On Wed, Jun 10, 2020 at 04:52:37AM EDT, Paul wrote: > > You have this in ftdetect, which runs regardless of which filetype you open. > ftdetect is for specification of filetype. Settings per filetype should go > into after/ftplugin, and will only be executed when that filetype is detected. >

Re: Wrapg text at col. 80 on large-ish files - performance aspects.

2020-06-08 Thread Chris Jones
Taking the approach that this is just another symptom that cleaning up all the crud that thas accumulated in my vim environment over the years is long overdue... I decided to look into this further and found the culprit: I ended up looking at an ~8-year-old mediawiki.vim (!) file in my

Re: wrap text at col. 80 on large-ish files - performance aspects.

2020-03-16 Thread Chris Jones
On Mon, Mar 16, 2020 at 01:35:45PM EDT, Tony Mechelynck wrote: [..] > > To see if it's your custom tabline and/or statusline, you can load Vim > with your usual vimrc, then type > > :set tal= stl= > > and see if it makes a difference. If it does, then retry by setting > the one but not

Re: Wrap text at col. 80 on large-ish files - performance aspects.

2020-03-16 Thread Chris Jones
Fix typo in issue Subject (:s//Wrapg/wrap/) -- -- 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

Re: Wrapg text at col. 80 on large-ish files - performance aspects.

2020-03-16 Thread Chris Jones
On Sun, Mar 15, 2020 at 02:10:56PM EDT, Tim Chase wrote: > On 2020-03-15 11:44, Chris Jones wrote: > > What is the recommended way to wrap files at column 80 or thereabout > > when dealing with 5,000-10,000 lines files without a major > > performance hit? > > St

Wrapg text at col. 80 on large-ish files - performance aspects.

2020-03-15 Thread Chris Jones
What is the recommended way to wrap files at column 80 or thereabout when dealing with 5,000-10,000 lines files without a major performance hit? I have tried issuing a ':set syntax off' command followed by running different flavors of the gw command in normal or visual mode but this may not be

Re: vim undo

2020-03-05 Thread Chris Jones
On Wed, Mar 04, 2020 at 01:00:54PM EST, Chris Jones wrote: Thanks to both for timely response. Interesting answers indeed. Looking at my problem from a different angle I eventually noticed something that allowed me to single out the outcome of the incorrect changes and let me reverse them

vim undo

2020-03-04 Thread Chris Jones
Scenario: - I open a file - I make one big global change (C0)... say via substitute+regex - I proceed to make more changes (C1, C2, ... Cn). While *still editing the file* I realize that the initial change (C0) was in error. Can I undo the initial change (C0) and keep all the ensuing changes?

Re: Highlighting parenthesized blocks

2019-11-12 Thread Chris Jones
I just found a pandoc.vim syntax file at github that appears to does the job… only had to do a ':set cole=0' to get rid of the fancy 'conceal' gimmickry and it seems to highlight inline foonotes reliably. Sorry fo the noise. CJ On Monday, November 11, 2019 at 7:20:16 PM UTC-5, Chris Jones

Re: Highlighting parenthesized blocks

2019-11-12 Thread Chris Jones
:20:16 PM UTC-5, Chris Jones wrote: > > I would need to highlight blocks of text delimited by opening/closing > parentheses of any given type (regular, square, curly, squiggly, etc.). > > For instance: > > '… this is some text (here is a parenthesized block) that I would

Highlighting parenthesized blocks

2019-11-11 Thread Chris Jones
I would need to highlight blocks of text delimited by opening/closing parentheses of any given type (regular, square, curly, squiggly, etc.). For instance: '… this is some text (here is a parenthesized block) that I would like to stand out.' then a few lines down: '… more text an here

Re: termguicolors and xterm

2019-02-14 Thread Chris Jones
On Sat, Jan 19, 2019 at 05:43:24PM EST, Chris Jones wrote: > I came across a new 'termguicolors' option in Vim. > > I took a closer look using KDE's Konsole and gnome-terminal and it > appears to work out of the box: just a matter of adding a ":set > termguicolors" s

termguicolors and xterm

2019-01-19 Thread Chris Jones
I came across a new 'termguicolors' option in Vim. I took a closer look using KDE's Konsole and gnome-terminal and it appears to work out of the box: just a matter of adding a ":set termguicolors" statement to your ~/.vimrc and 16M colors color schemes written with gvim in mind are correctly

Re: using vim to add links to an epub index file

2017-11-25 Thread Chris Jones
On Fri, Nov 24, 2017 at 12:43:46PM EST, porphyry5 wrote: > On Thursday, November 23, 2017 at 3:53:58 PM UTC-8, Chris Jones wrote: [..] > > Substitute (:h :s) will do all you need. In the case of links and > anchors, I modify this model to the specific situation in each case: >

using vim to add links to an epub index file

2017-11-23 Thread Chris Jones
I am currently in the final stages of putting together an epub version of Auguste Escoffier's _Le Guide Culinaire_. Since this is a "cookbook" of sorts, the last step before proofreading pretty much requires building a working index with html style links to the text relative to each entry. In

Re: How to get rounded bullet list character

2016-02-18 Thread Chris Jones
On Thu, Feb 18, 2016 at 07:31:40PM EST, Mac Martine wrote: > If you scroll down slightly in to the image showing an example of Vim > notes, it has the round bullet points in fro of the list items: > https://github.com/xolox/vim-notes > > How do you create those? > ... if your system supports the

Re: How to get rounded bullet list character

2016-02-18 Thread Chris Jones
On Thu, Feb 18, 2016 at 07:31:40PM EST, Mac Martine wrote: > If you scroll down slightly in to the image showing an example of Vim notes, > it has the round bullet points in fro of the list items: > https://github.com/xolox/vim-notes > > How do you create those? Type: CTRL+V u 2 0 2 2 You

Dead keys

2016-01-22 Thread Chris Jones
Just curious about this and couldn't find anything online. Has anybody heard of a dead key scheme where the user hits the printable key first and then adds the diacritic? Same as what I do when using the X server's Compose key.. but without the need of a Compose key. When you type the Spanish

Re: Suggestion for vim -diff behavior change

2014-03-28 Thread Chris Jones
On Fri, Mar 28, 2014 at 08:51:48PM EDT, Marcin Szamotulski wrote: You can easily open all folds with zr. Or zR..if you have several levels of folding.. ? CJ -- -- 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: colorcolumn creates a large red block

2014-02-11 Thread Chris Jones
On Tue, Feb 11, 2014 at 12:59:24AM EST, Anton Bobrov wrote: let colorcolumn=join(range(81,244), ',') My background is all red after the 80th column. Its a joke? :help 'colorcolumn' :-O CJ -- Have a nice day! -- -- You received this message from the vim_use maillist. Do not

Re: Showing underlines in markdown

2014-02-04 Thread Chris Jones
On Tue, Feb 04, 2014 at 04:10:45AM EST, BPJ wrote: 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

Re: Showing underlines in markdown

2014-02-01 Thread Chris Jones
On Sat, Jan 25, 2014 at 09:53:44PM EST, sokada wrote: As you can see in the image, it shows underlines and I don't know why. I added the markdown file as well. I don't use markdown, but I have seen this when I edit html files.. another markup language.. with possible similarities in their .vim

Re: adjust by =

2012-10-16 Thread Chris Jones
On Tue, Oct 16, 2012 at 07:08:42AM EDT, monax wrote: How I can change this code a = 10 bb = 100 ccc = 1000 d = 1 to this a = 10 bb = 100 ccc = 1000 d = 1 At a pinch, here's how I'd do it: | Shift+V | 3j | :','s/ *= */\t=\t/Enter | gv | :','retabEnter | 3l | CTRL+V |

Re: [Rephrased] Problem with a regular expression in Vim

2012-10-08 Thread Chris Jones
On Wed, Oct 03, 2012 at 11:37:36AM EDT, Ben Fritz wrote: [..] This seems to work for me: \%(^\|[^=]*==[^=]*==\)\@=[^=]*==\zs[^=]*\ze== Probably this pattern could be made simpler.. Maybe something like this..? | \(^[^=]*\|==[^=]*\)==\zs[^=]* Only briefly tested since I felt the solution

Re: [Rephrased] Problem with a regular expression in Vim

2012-10-08 Thread Chris Jones
On Mon, Oct 08, 2012 at 03:53:29PM EDT, Ben Fritz wrote: [..] Hi Ben, Thanks much for your comments. I did run some tests to try and figure out what that perl g flag was for and wrongly concluded -- shades of Vim, I guess, that it meant something like repeat match until end-of-string. I

Re: Problem with a regular expression in Vim

2012-10-03 Thread Chris Jones
On Tue, Oct 02, 2012 at 10:37:34PM EDT, Xell Liu wrote: Hi all, Suppose this text fragment: xxx==aaa==bbbccc==ddd==yyy How can I match the aaa and ddd between the pair of == without matching the bbbccc (or, of course, xxx or yyy)? Apparently /==\zs[^=]\{-}\ze==/ fails. However

Re: [Rephrased] Problem with a regular expression in Vim

2012-10-03 Thread Chris Jones
On Wed, Oct 03, 2012 at 10:04:26AM EDT, Xell Liu wrote: [..] (According to Jones, due to the mechanism of regex engine, it's highly improbable...) Hehe.. Don't take my word for it.. Aside from attempting to clarify your initial post, I tried to restate the problem in such terms: Is there

Re: OT: The so called steep learning curve of vim...

2012-09-30 Thread Chris Jones
On Sun, Sep 30, 2012 at 09:37:34AM EDT, meino.cra...@gmx.de wrote: Hi, it is often said, taht certain software has a steep learning curve. Vi/vim is such an example for the use of this phrase... I was thinking of this phrase and the graph I would draw if I had to show an example for such

Re: cal in a doc

2012-09-10 Thread Chris Jones
On Mon, Sep 10, 2012 at 02:46:55PM EDT, sc wrote: [..] I had to install it and was slightly miffed when a man page didn't come down with it. Calendars are a complicated matter and a man page is probably not the most suitable format. See this instead:

Re: vim window clears the terminal history

2012-09-01 Thread Chris Jones
On Sat, Sep 01, 2012 at 11:19:23AM EDT, joe M wrote: [..] Thanks for the detailed response. I will go through the email and keep you posted if I notice anything different. Not much help probably.. :-) Might be interesting testing your version of Vim/vi on an xterm, though.. CJ -- Have a

Re: vim window clears the terminal history

2012-08-31 Thread Chris Jones
On Fri, Aug 31, 2012 at 09:14:14AM EDT, joe M wrote: On Fri, Aug 31, 2012 at 1:27 AM, Chris Jones cjns1...@gmail.com wrote: On Thu, Aug 30, 2012 at 01:34:10PM EDT, joe M wrote: [..] Hope the above helps. Please let me know if you need more information. I'm not an expert in Vim or termcap

Re: vim window clears the terminal history

2012-08-30 Thread Chris Jones
On Thu, Aug 30, 2012 at 01:34:10PM EDT, joe M wrote: [..] Anyway, just a heads-up if anyone is interested. I certainly do. Thanks for bringing this to the list's attention. Reading through the thread, I'm pretty sure you stated somewhere along the line that the behavior you reported occurs

Re: Typing â problem

2012-08-27 Thread Chris Jones
On Mon, Aug 27, 2012 at 11:10:02AM EDT, Alexandre Provencio wrote: I was also having problems like this with other plugins when mapping Alt combinations. This thread helped me figuring that out, so thanks. On Mon, Aug 27, 2012 at 6:31 AM, Fernando Basso fernandobasso...@gmail.com wrote:

Re: Typing â problem

2012-08-27 Thread Chris Jones
On Mon, Aug 27, 2012 at 02:48:09PM EDT, Alexandre Provencio wrote: On Mon, Aug 27, 2012 at 2:35 PM, Chris Jones cjns1...@gmail.com wrote: Have you reported these issues to the maintainers of these plugins..? Yes, you can check on snipmate's issues. Sorry about that.. my question was meant

Re: vcscommand + ZoomWin

2012-08-26 Thread Chris Jones
On Sun, Aug 26, 2012 at 07:51:27AM EDT, Andy Wokula wrote: [..] What I use for zooming in is :tab split It keeps the original layout in the other tab, no need for a plugin. Actually that's why I love tab pages :-) And why I hate plugins..! .. running for cover ;-) CJ -- Mooo

Re: Typing â problem

2012-08-26 Thread Chris Jones
On Sat, Aug 25, 2012 at 09:42:06PM EDT, Fernando Basso wrote: On Saturday, August 25, 2012 10:36:40 PM UTC-3, Chris Jones wrote: [..] Have you solved this..? As Tim indicated, there's a very strong likelihood that whatever Vim sees when you ‘type’ â is somehow bound to some (unprintable

Re: colorscheme highlights 88 color cterms

2012-08-25 Thread Chris Jones
On Fri, Aug 24, 2012 at 07:30:40PM EDT, richard emberson wrote: I note that some scheme when setting highlights for cterms use numbers in the range 0 to 255. What happens if one is using a rxvt 88 color terminal? [..] Save from referring to the code, you could check this as follows: 1.

Re: Typing â problem

2012-08-25 Thread Chris Jones
On Sat, Aug 25, 2012 at 04:01:49PM EDT, Tim Chase wrote: On 08/25/12 14:52, Fernando Basso wrote: I have been facing an issue that when I type ā, like in the word Parāmetro, either the cursor jumps somewhere else in the file, or the ā is just not inserted and I see only Parmetro. If I do

Re: Typing â problem

2012-08-25 Thread Chris Jones
On Sat, Aug 25, 2012 at 08:25:25PM EDT, Tim Chase wrote: On 08/25/12 15:45, Chris Jones wrote: [..] I suspect Google Groups misbehavior. Checking the OP's message and my sent-mail folder, they both have a-hat, not a-macron. My outbound was encoded in ISO-8859-1 and your reply came

Re: Typing â problem

2012-08-25 Thread Chris Jones
On Sat, Aug 25, 2012 at 08:33:16PM EDT, Fernando Basso wrote: On Saturday, August 25, 2012 5:45:49 PM UTC-3, Chris Jones wrote: Because that's what I get here in mutt: 'parâmetro' in his initial post becomes 'parāmetro' in your reply, in the quoted text. When did this start

Re: Using Alt in my keymaps and utf-8

2012-08-22 Thread Chris Jones
On Wed, Aug 22, 2012 at 10:28:47AM EDT, Pablo Giménez wrote: I am using Vim with terminals Mrxvt in Linux and iTerm2 in the Mac. I have the same problem in Gvim as well. [..] Don't have access to either.. What happens if you use Esc instead of M- or A- i.e. map Esca :echo 'You hit

Re: Using Alt in my keymaps and utf-8

2012-08-22 Thread Chris Jones
On Wed, Aug 22, 2012 at 12:43:48PM EDT, Ben Fritz wrote: On Wednesday, August 22, 2012 9:28:47 AM UTC-5, pabl...@gmail.com wrote: [..] You can try using Esc as Chris suggests, but this should only work in some terminals, and it's a hack, not the correct solution. It WON'T work in gvim. I

Re: Using Alt in my keymaps and utf-8

2012-08-21 Thread Chris Jones
On Sun, Aug 19, 2012 at 07:35:03PM EDT, Pablo Giménez wrote: I am trying to do some keymappings to keys combinations which uses the Alt key. [..] What terminal(s) are you using..? CJ -- Oh My God!!! Larry is back! -- You received this message from the vim_use maillist. Do not top-post!

Re: error in regex handling of \n?

2012-08-18 Thread Chris Jones
On Sat, Aug 18, 2012 at 05:14:40PM EDT, Tim Chase wrote: [..] Sorry I can't claim I remember the post :-) https://groups.google.com/forum/?fromgroups#!topic/vim_use/zb7KnkxBGSw[1-25] Made my day, at the time¹..! So playing around with this, I've tried multiple cases and must say I'm

Re: error in regex handling of \n?

2012-08-17 Thread Chris Jones
On Fri, Aug 17, 2012 at 11:09:21AM EDT, Tim Chase wrote: [..] I was a little surprised by this one. Starting with a -u NONE vim, I :set hls and issued /r[^\n] which should have found all the r characters in my text that weren't at the end of the line. Yet, as Paul notes, it found r

Re: error in regex handling of \n?

2012-08-17 Thread Chris Jones
On Fri, Aug 17, 2012 at 02:01:53PM EDT, Tim Chase wrote: On 08/17/12 12:51, Chris Jones wrote: On Fri, Aug 17, 2012 at 11:09:21AM EDT, Tim Chase wrote: /r[^\n] /r\_[^\n] to no avail. /r[^\r] Well, bust my buttons. So \n is a newline on the search side, and \r

Re: always paste as if :set pate is on.

2012-08-13 Thread Chris Jones
On Mon, Aug 13, 2012 at 12:22:38AM EDT, sinbad wrote: how do i make vim think that the set paste option is set if i'm pasting output from outside. i use shift-insert to paste, can this be mapped to set/unset paste? A different approach is to do one's pasting in insert mode via i_CRTL-R and

Re: capitalize the current word in insert mode

2012-08-08 Thread Chris Jones
On Wed, Aug 08, 2012 at 02:05:16AM EDT, sinbad wrote: how can one capitalize the current word or the word just before the current cursor position with out leaving the insert mode ? leaving insert mode and capitalize and come back to insert mode is becoming a tedious task for me ...:) I

Re: background color gray instead of black

2012-07-29 Thread Chris Jones
On Sun, Jul 29, 2012 at 01:03:43PM EDT, Britton Kerin wrote: On Sat, Jul 28, 2012 at 4:56 PM, Chris Jones cjns1...@gmail.com wrote: [..] It looks the same after the first ctermbg=255 command above. t After the second one, the output changes showing ctermbg=255 instead of ctermbg=0. What

Re: vim: syntax issue: colorscheme change reset my syntax highlight

2012-07-29 Thread Chris Jones
On Sun, Jul 29, 2012 at 12:38:30PM EDT, ping wrote: On 7/17/2012 5:38 PM, Chris Jones wrote: [..] Maybe you could comment out the ‘hi’ statements at the end of this syntax file.. or if you like the color scheme move them to a separate color scheme file..? this I tried, but not only

Re: background color gray instead of black

2012-07-28 Thread Chris Jones
On Sat, Jul 28, 2012 at 03:11:23PM EDT, Britton Kerin wrote: I've tried both these commands: :highlight Normal ctermbg=black :highlight Normal ctermbg=0 but the background is still ugly grey not true black. Hmm after a bit more experimentation I find this does what I want:

Re: How to remove empty lines except of one

2012-07-23 Thread Chris Jones
On Mon, Jul 23, 2012 at 10:46:17AM EDT, Ben Fritz wrote: On Wednesday, July 18, 2012 10:41:37 PM UTC-5, Chris Jones wrote: As an aside, probably due to the mailer you are using, _some_ of your posts end up with html ‘amp;gt;’ quoted text signs beyond the first one (when viewed in mutt, Vim

Re: sharing buffer between vim sessions without X

2012-07-22 Thread Chris Jones
On Sun, Jul 22, 2012 at 10:58:39AM EDT, Eric Smith wrote: How do I share the cut or yank register between different sessions? No X windows available. If you only need pasting contents of Vim buffers, you could also run your instances of Vim under GNU/screen. GNU/screen provides its own

Re: How to remove empty lines except of one

2012-07-18 Thread Chris Jones
On Wed, Jul 18, 2012 at 11:19:30AM EDT, Ben Fritz wrote: On Tuesday, July 17, 2012 7:27:42 PM UTC-5, Bee wrote: This will collapse multiple blank lines, remove trailing white space, and leave only one blank line at the end of file. %s-\_s\+$-\r Bill But this one fails to collapse

Re: How to remove empty lines except of one

2012-07-18 Thread Chris Jones
On Wed, Jul 18, 2012 at 03:46:45PM EDT, Ben Fritz wrote: On Tuesday, July 17, 2012 7:27:42 PM UTC-5, Bee wrote: This will collapse multiple blank lines, remove trailing white space, and leave only one blank line at the end of file. %s-\_s\+$-\r Bill I found the problem with this

Re: How to remove empty lines except of one

2012-07-18 Thread Chris Jones
On Wed, Jul 18, 2012 at 04:35:56PM EDT, Bee wrote: %s-\_s\+\n-\r Removes ALL blank lines, rather than collapsing multiple blank lines into one 'blank' line. I still want one blank line between 'paragraphs'. So maybe the not-so-elegant but yet correct answer is.. | :%s/^\_s\+\n/\r |

Re: How to remove empty lines except of one

2012-07-18 Thread Chris Jones
On Wed, Jul 18, 2012 at 10:27:02PM EDT, Ben Fritz wrote: On Wednesday, July 18, 2012 3:35:56 PM UTC-5, Bee wrote: [..] gt; gt; Note this is almost identical to my first proposed solution, except that it is missing the beginning of line anchor. I#39;m not sure what makes it fail with

Re: How to remove empty lines except of one

2012-07-17 Thread Chris Jones
Here's a pared down version illustrating the problem: | :%s-\(\%^\|.*\S\+.*\n\)\zs\(^\s*\n\)\{2,\}-\r Before: - 1 | 2 | 3 |asdf 4 | 5 | - After:

Re: vim: syntax issue: colorscheme change reset my syntax highlight

2012-07-17 Thread Chris Jones
On Mon, Jul 16, 2012 at 11:25:43AM EDT, ping wrote: experts: I found every time I change my colorscheme, my syntax highlight seems got reset. * the reason I need to change my colorscheme: I use vim from inside gnu screen, work from office home, in office I run terminator/ubuntu, with

Re: Cleaning up the buffer list

2012-07-13 Thread Chris Jones
On Fri, Jul 13, 2012 at 06:31:40AM EDT, geoffrey.w...@thomsonreuters.com wrote: [..] I'm glad you asked actually - I set hidden a couple of years ago and I definitely had a good reason at the time, but I find I'm no longer sure what it was. [..] For instance, I start making changes to a

Re: vim : fold expansion and refresh

2012-07-12 Thread Chris Jones
On Thu, Jul 12, 2012 at 04:22:29PM EDT, ping wrote: everytime I expand the fold , I notice the text got a little bit messed up somewhere, c-l quickly clean it nicely. [..] Shot in the dark.. but does this happen under GNU/screen..? In a terminal? This Control+L business sounds suspiciously

Re: Cleaning up the buffer list

2012-07-12 Thread Chris Jones
On Thu, Jul 12, 2012 at 06:34:32AM EDT, geoffrey.w...@thomsonreuters.com wrote: [..] I have set hidden in my vimrc so I end up with a lot of buffers in the list. Good to know I'm not alone.. :-) Mind you, some might argue that you're not really supposed to use the :ls command at all.. so

Re: Cleaning up the buffer list

2012-07-12 Thread Chris Jones
On Thu, Jul 12, 2012 at 01:58:24AM EDT, Christian Brabandt wrote: On Thu, July 12, 2012 01:38, Chris Jones wrote: [..] Has anyone looked into buffer list manipulation before and could advise on a different approach suggest how I might be able to come up with something a bit less clunky

Re: vim: session of sessions

2012-07-11 Thread Chris Jones
On Wed, Jul 11, 2012 at 03:25:58PM EDT, ping wrote: Maybe OT, but anyway.. [..] * switching beyond 9 windows is painful in screen, if you ever use it. Not sure what you mean by painful, but GNU/screen lets you define extra shortcuts to access windows directly via the ‘bind’ command: bind ')'

Re: vim: session of sessions

2012-07-11 Thread Chris Jones
On Wed, Jul 11, 2012 at 05:00:19PM EDT, ping wrote: [..] so back to my initial question regardless of screen, how to manage multiple vim sessions in one vim instance then,if we should only use one vim instance? :h mkview ?? CJ -- Mooo Canada -- You received this message from the

Re: How to remove empty lines except of one

2012-07-09 Thread Chris Jones
On Thu, Jul 05, 2012 at 06:54:44AM EDT, Tim Chase wrote: Hello Tim, not replying to anybody in particular.. It might be slightly more efficient, as replacing the 2 case with \r\r is a NOOP. As for blank-ish lines (containing just whitespace), it might become something like

Re: How to write a text line as binary/Hex with a filename by means of Vim command line(s)?

2012-07-04 Thread Chris Jones
On Wed, Jul 04, 2012 at 12:18:48AM EDT, William Fugh wrote: -Vim 7.3 + Vista(SP2) If there are 8 chars in one line like this: 52494646 Question: using Vim command line(s), how to write a binary file, and make it 'RIFF' (4 char, not '52494646') in a viewer of TXT? Just to illustrate: let l1

Re: How to remove empty lines except of one

2012-07-04 Thread Chris Jones
On Wed, Jul 04, 2012 at 10:52:47PM EDT, Tim Chase wrote: For some reason (legacy?), Vim uses \n on the left side and \r on the right side, Ah.. good one.. baffled me for ages and always had something more urgent to do.. never got a chance or remembered to look into it.. and kicked myself later

Re: What does the second example for map() mean?

2012-06-26 Thread Chris Jones
On Tue, Jun 26, 2012 at 09:56:48PM EDT, Benjamin R. Haskell wrote: There's an example in the help for map() that reads: :let tlist = map(copy(mylist), ' . \t') What is that ampersand doing there? Is the example incomplete? Obsolete? Should it be v:val instead? Yes. Looks like someone

Re: max colors in text based terminals

2012-06-06 Thread Chris Jones
On Tue, Jun 05, 2012 at 05:50:45AM EDT, Thomas Dickey wrote: On Jun 5, 3:00 am, Chris Jones cjns1...@gmail.com wrote: [..] xterm looks for 5 (38;5), that's documented and well-known. My understanding is that the 38;5 and the 38;2 have different goals: From Konsole's README.moreColors

Re: max colors in text based terminals

2012-06-05 Thread Chris Jones
On Mon, Jun 04, 2012 at 08:35:18PM EDT, Thomas Dickey wrote: On Jun 4, 4:00 pm, Chris Jones cjns1...@gmail.com wrote: All the same, I'd be curious to know what the Konsole developers had in mind when they implemented 16M colors support . konsole implements the xterm 256-color controls

Re: max colors in text based terminals

2012-06-03 Thread Chris Jones
On Sun, Jun 03, 2012 at 08:38:31AM EDT, sinbad wrote: my question is are there any terminal implementations that support more than 256 colors in text consoles not in gui. Konsole and derivatives support a 24-bit color palette, i.e. they let you display 16,777,216 colors concurrently. This

Re: XIM Input Method for Motif Gvim

2012-06-02 Thread Chris Jones
On Sat, Jun 02, 2012 at 08:08:04AM EDT, Christian Brabandt wrote: I have recently been working on the Motif GUI and noticed, that my gvim always show XIM INSERT, when in insert mode. I keep reading :h xim and mbyte-XIM, but I seem to be missing something. So my questions are: 1) Why is

  1   2   3   >