Re: unchangeable lines

2020-01-01 Thread Erik Christiansen
On 29.12.19 17:43, Efraim Yawitz wrote: > I wonder if this could be easily hacked into the code of vim by creating a > new syntax group called Unchangeable or something and adding code to make > it uneditable. Or more easily in the folding code? That already treats an arbitrary number of lines as

Re: file subset of file updated

2019-08-01 Thread Erik Christiansen
On 31.07.19 12:15, Bee wrote: > Does vim have the ability to reference a file made of files? > > file A is a subset of file B > file A = text > file B = file A plus more text In my experience, Vim edits multiple files, one at the time, and you can switch between them. Where you have created

Re: long line to paragraph all indented

2019-06-03 Thread Erik Christiansen
On 03.06.19 13:43, Tim Johnson wrote: > > Pour the remaining sauce over the enchiladas. Cover with leftover cheese > and bake for about 20 minutes or until cheese is bubbling. > > becomes: > > Pour the remaining sauce over the enchiladas. Cover with leftover cheese > and bake

Re: writing one text the same way vim's help

2019-05-11 Thread Erik Christiansen
On 11.05.19 14:34, Erik Christiansen wrote: > On 10.05.19 19:29, Mathieu Roux wrote: > > 1) |plouf| is colored is blue, and *plouf* is colored in red when open > > with vi. It is function of hightlight, right? How can i use the same > > highlight for my own-text file?

Re: writing one text the same way vim's help

2019-05-10 Thread Erik Christiansen
On 10.05.19 19:29, Mathieu Roux wrote: > 1) |plouf| is colored is blue, and *plouf* is colored in red when open > with vi. It is function of hightlight, right? How can i use the same > highlight for my own-text file? Not being a user of highlighting, I can only point to ":h highlight". Mastering

Re: searching one word containing # with touch *

2019-05-08 Thread Erik Christiansen
On 07.05.19 21:19, Mathieu Roux wrote: > 2) First i wanted to do it with "real tags" (with a tag-file made by > ctag, and with ctrl-]), but if i understand good, it does not work like > this. > But if i understand good, i can press ctrl-] on the title of an article > voir titre-de-larticle > , to

Re: plugin for toggeling line numbers

2019-04-07 Thread Erik Christiansen
On 07.04.19 13:51, meine wrote: > hi, > > I found a site where a vim plugin was used for relative line numbering > and I want to give it a try. relative line numbers make it easier to > navigate in normal mode by just using `3j' instead of `256G'. the less > keystrokes the better! ... > does

Re: I need to fool vim to think buffer starts at column n

2018-12-04 Thread Erik Christiansen
On 03.12.18 17:40, Magnus Woldrich wrote: > Hi list, > > I'd like to stop vim from modifying the first n columns of a buffer, no > matter what I do in it. To comply with the requirement "no matter what I do in it", ISTM to be necessary to use something like "cut" to strip the first n-1 columns

Re: vim should reset indent size settings when changing file types

2018-11-29 Thread Erik Christiansen
On 29.11.18 11:14, David Demelier wrote: > I'm not sure if there is way to fix that, but I actually would like to use > tabs of size 8 for every file except html. > > So basically I create a ~/.vim/ftplugin.html file with: > > set ts=4 > set sts=4 > set sw=4 > set noet > > Then, runnin `vim

Re: How to set noexpandtab for a specific file

2018-11-24 Thread Erik Christiansen
On 24.11.18 06:46, Bradley Bell wrote: > I have the following two lines in my .vimrc: > :set tabstop=4 softtabstop=4 shiftwidth=4 expandtab > set modeline > > On the first line of a file called automake.am, I have > # vim: set noexpandtab: It works for me in makefiles, using: #

Re: spell check files

2018-11-24 Thread Erik Christiansen
On 24.11.18 17:46, Steve wrote: > Dear vimers, > > I'm currently doing some cleaning in my ~/.vim. > > Just noticed that my spell file are really old (2013): > > 83 déc 6 2013 en.utf-8.add > 192 déc 6 2013 en.utf-8.add.spl > 570549 fév 15 2013 en.utf-8.spl > 556477 fév 15 2013

Re: from the old vi faq

2018-09-30 Thread Erik Christiansen
On 30.09.18 03:15, Eli the Bearded wrote: > http://www.faqs.org/faqs/editor-faq/vi/part2/ > -- start quote 8< -- > 6.1 - Silly vi tricks Seems to be a typo there? For decades some have used them as _Standard_ Vi(m) Operations, especially xp, as mistyping is more common than the need for

Re:

2018-09-13 Thread Erik Christiansen
On 13.09.18 01:53, Ni Va wrote: > > I need to edit buffer that contains vbscript that has chars and > friends ... > > Without definitively write current edited file, How can I change all > that chars in order to be able to make modification in an easy view ? :%s//"/ -- -- You received this

Re: Formatting text and using the convention of putting 2 spaces after a period

2018-08-06 Thread Erik Christiansen
On 06.08.18 19:15, Tim Chase wrote: > I still use two spaces in my source material particularly because I > can `:set cpo+=J` and Vim will be smart enough to navigate by > sentence even if I have intermediate punctuation that might otherwise > be considered terminal. E.g. > > I saw Dr. Smith

Re: Formatting text and using the convention of putting 2 spaces after a period

2018-08-06 Thread Erik Christiansen
On 06.08.18 11:40, David Woodfall wrote: > I've noticed that when I select a block of text (written English > prose, not code) and press gq to reformat it, vim will change some of > the spaces after a period into two spaces, as is the convention among > some typists. > > Is this intended, and can

Re: Interloper vi

2018-08-05 Thread Erik Christiansen
On 01.08.18 13:19, Christian Brabandt wrote: > > On Mi, 01 Aug 2018, 'Suresh Govindachar' via vim_use wrote: > > > Extract from replies: `which` does not report on what bash will execute; > > `type` does. Although `type` provides info on whether the command is hashed > > or not, `type -a` does

Re: bnext which doesn't wrap?

2018-07-04 Thread Erik Christiansen
On 04.07.18 14:47, David Woodfall wrote: > Is there a way of doing a :bnext or :bprev that doesn't wrap? Or > alternatively an option to turn off wrapping when navigating buffers? If you step through the buffers with :n instead, it won't wrap. However, if you fall into old habits, and slip in a

Re: Help with word motions

2018-06-04 Thread Erik Christiansen
On 04.06.18 02:44, Patrik Iselind wrote: > Hi, > > I have a use case that I run into quite often, but cannot find a solution > for. So I ask here. > > I have an example document > ```example document > foo bar > ``` > > My cursor is at the first o character in foo. I would like to change > foo

Re: compressed undofiles

2018-06-03 Thread Erik Christiansen
On 03.06.18 09:46, Bram Moolenaar wrote: > > Adam Monsen wrote: > > > I use undofiles heavily. I often copy a file along with its undofile when > > creating a new similar file. I notice (a) the undofiles can get quite large > > and (b) they compress very efficiently. I tested compressing a few >

Re: First line starting with space affects cursor position when switching buffers

2018-06-01 Thread Erik Christiansen
On 31.05.18 23:25, dmcco...@comcast.net wrote: > Place the cursor on the last line (or any line other than the first line). > Save the file (:w) and switch (:e) to view another file. > Switch back (:e) to the original file. > Notice that the cursor is on the first line, not where it was

Re: special characters in abbreviations

2018-05-31 Thread Erik Christiansen
On 31.05.18 08:09, Robert Bower wrote: > I have the following abbreviation > iab julianheader :r!~/.bin/datevim.sh > > It worked fine till I swapped the caps lock and the escape key at the > os level. FYI I am using Ubuntu 16.04 Now the abbreviation no longer > works. I am assuming in Vim now

Re: use Vi editor

2018-05-06 Thread Erik Christiansen
On 06.05.18 12:42, Renzo Marengo wrote: > I need to understand if VI can permit these operations: > > 1- to move cursor to next word, does it exist key-bindings to make it? > 2- select specific part of text to copy it and to past it to another area > inside the same file. > 3- to insert tabs for

Re: sorting file content by third numbered column

2018-03-14 Thread Erik Christiansen
On 13.03.18 07:41, Ni Va wrote: > The csv file attached below it produced from this code particularly by from > s:results list of strings. > > I import it into excel and then do a sort from max to min spent time by third > column. > > I would do the same from this vimscript below on in order

Re: Neither Emacs nor Vim nor Nano handle ligature literal insertion well

2018-02-02 Thread Erik Christiansen
On 02.02.18 16:31, Andrew Pennebaker wrote: > I would really like convenient access to ligatures in my word processing > software. Unfortunately, none of the major text editing applications > appears to handle ligatures intelligently: Each of Emacs, Vim, Nano, MS > Word, Google Drive, Libre

Re: colors missing in rgb.txt?

2018-01-09 Thread Erik Christiansen
On 09.01.18 07:55, Christian Brabandt wrote: > IIRC, rgb.txt came from the X11 Server sources and those colors were not > defined there. > > Anyhow, I cannot find it in the X11 Server source and in some commits > they removed all references to that file. So it might no longer exist in > a

Re: libvterm color palette

2017-09-25 Thread Erik Christiansen
On 24.09.17 14:57, 'Grant Taylor' via vim_use wrote: > On 09/24/2017 11:46 AM, Bram Moolenaar wrote: > > I suppose the xterm source code must contain the "source of truth". I > > was assuming Leonerd took it from there, but perhaps he didn't. Should > > be easy to fix, but I wonder if Paul will

Re: Indentation of line continuations in C++ braced initializer lists

2017-09-17 Thread Erik Christiansen
On 17.09.17 03:33, Antony Lee wrote: > However, vim is by default unable to recognize a C++ > braced-initializer list, which effectively have similar semantics as > parentheses in a function call; it will indent > // Case 3: oops, 2-space indent, but 4 would be preferred. > some_type{ >

Re: does VIM read OK the tags file if ctags was installed after VIM?

2017-08-15 Thread Erik Christiansen
On 14.08.17 19:23, Jose Caballero wrote: > I am working on a host that didn't have ctags installed. I have just > installed it. The install order won't make any difference. Vim only needs to find a tags file you've generated. > However, I think I am missing some step. > After creating the tags

Re: Changing Word with Yanked Word

2017-08-03 Thread Erik Christiansen
On 03.08.17 06:58, Michael Henry wrote: > I frequently use visual mode to select the word, then paste over > the selection from register 0. Usually I don't want the > behavior of ``dw`` because that removes trailing spaces and I > typically have yanked only the replacement word (without >

Re: complete twp consecutive words

2017-08-03 Thread Erik Christiansen
On 02.08.17 21:16, Bee wrote: > Is it possible to complete 2 consecutive words? > That is match the first and include the second? That first becomes useful when repeated, so '.' is perhaps the quickest and easiest solution: Find the first word (or the pair), c2w, then hit 'n' for next match, and

Re: Changing Word with Yanked Word

2017-08-03 Thread Erik Christiansen
On 02.08.17 17:45, Parag Bhatt [C] wrote: > I am looking for a quick way to change a word(cw?) with one that was > yanked (yw). I do not want to enter insert mode, and would like to do > it in command mode. With the cursor on the start of the target word, dw"0P will do it. I admit that I had to

Re: Advice on opening large/huge files

2017-08-02 Thread Erik Christiansen
On 02.08.17 11:49, Lifepillar wrote: > From time to time, I need to edit large files (~10^2-10^3 MB). > In my tests, Vim loads large files relatively quickly (~100MB/s). > It's (some) filetype plugins that hog Vim. > > For instance, take any large file and change its suffix to have > it

Re: Arduino with vim (read "no IDE"-challenge)

2017-07-23 Thread Erik Christiansen
On 22.07.17 17:21, tu...@posteo.de wrote: > To summarize my initial mail more clearly: > What plugin is recommended, if I want to use vim to replace the tasks > of the Arduino IDE. > I am running Gentoo Linux on a x86 PC. Hi Meino, ISTM that if performing all coding and build actions in Vim,

Re: Regula expressions: How to find a string without some other string

2017-07-05 Thread Erik Christiansen
On 05.07.17 00:25, Igor Forca wrote: > To find OK and error message in vim: > /AAA\d\d\d\D > > but how to get only error messages. As you're seeking a numeric (not regex) exclusion, I'd skip complex regex gymnastics, and just pipe the log file through "grep -v AAA000A" before using your simple

Re: Failing to do an install in $HOME from git

2017-07-01 Thread Erik Christiansen
On 30.06.17 15:41, Tim Chase wrote: > Though I do get one extra line after the "creating auto/config.h" > line: > >config.status: auto/config.h is unchanged > > I'm not sure how it's determining that, as there's no auto/config.h > file present to compare it to. Tim, what does: $ locate

Re: Is there a simple way to |^a| and |^x| ?

2017-06-07 Thread Erik Christiansen
On 06.06.17 09:26, Tim Chase wrote: > Ah, I'd misunderstood that it was ignoring the sign and you wanted > to respect it. But you *wanted* to ignore the sign. Thus, you can > omit the optional sign: > > :'<,'>s/\d\+/\=submatch(0)+22/g > > or move the "\zs" after the optional minus-sign > to

Re: Is there a simple way to |^a| and |^x| ?

2017-06-07 Thread Erik Christiansen
On 06.06.17 08:38, Christian Brabandt wrote: > > On Di, 06 Jun 2017, Erik Christiansen wrote: > > > Thanks Tim, I'll make a note of that for possible future use, but the > > crux remains: inc/dec of the magnitude, irrespective of sign. It looks > > like I'd need to c

Re: Is there a simple way to |^a| and |^x| ?

2017-06-05 Thread Erik Christiansen
On 05.06.17 08:29, Tim Chase wrote: > While a side-stepping of your literal request, you can do > incrementing/decrementing in search replacements. > > For all numbers in a range: > > :'<,'>s/-\=\d\+/\=submatch(0)+22/g > > to add 22 to all numbers in that range of lines. ... Thanks Tim, I'll

Is there a simple way to |^a| and |^x| ?

2017-06-05 Thread Erik Christiansen
Both ^a and ^x have proven very useful in a variety of scenarios. Now, while editing some postscript, I sometimes have to decrement the magnitude of a series of literal constants by a common amount, and if there were mod variants of ^a and ^x, I'd be able to hit '.' on them all, instead of having

Re: Strange behavior with x! and permissions

2017-05-05 Thread Erik Christiansen
On 04.05.17 17:30, Christian Brabandt wrote: > > On Do, 04 Mai 2017, Charles E Campbell wrote: > > > What is v+ and v- ? > > A special label used by mutt and vim to display the following lines like > shell window. Charles, a longer explanation is that some of us use t-prot

Re: an old "hack" of mine, shared for amusement

2017-04-24 Thread Erik Christiansen
On 24.04.17 19:50, Eli the Bearded wrote: > $ cat my-src/hacks/vi/fork > vi: set noml | w! | ! vim % : > vi: e! % | w! | q : > > foobar > $ > > I don't remember writing that, but I can fully believe I did. (There's > other stuff there, I'm sure I have written. > > What this does is

Re: Automatically add two spaces between sentences

2017-03-15 Thread Erik Christiansen
On 14.03.17 22:20, Vim the Best wrote: > When we use Vim, what's the best way to add two spaces between > sentences automatically rather than manually press the space bar > twice? Perhaps you could use an iab, if necessary, using e.g. ".." for ". ". It still saves one keystroke, and does not

Re: Am I subscribed?

2017-03-04 Thread Erik Christiansen
On 04.03.17 14:31, tu...@posteo.de wrote: > > Hi Erik, > > thanks a lot...but I received nothing here...(?!) > > Cheers > Meino Hi Meino, That's a new email address, we've not seen before, even on this thread. I've forwarded the post to that one as well. The one to the address you used

Re: Am I subscribed?

2017-03-04 Thread Erik Christiansen
On 04.03.17 12:36, meino.cra...@gmx.de wrote: > But without the physical copy of that mail I cant reply to Ben/the > list. > > What is the best way to answer without cluttering threads and > mail IDs ? I've forwarded a copy of that post offlist. As you're using mutt as MUA, I figure you're

Re: Am I subscribed?

2017-03-04 Thread Erik Christiansen
On 04.03.17 11:42, meino.cra...@gmx.de wrote: > Hi, > > I had to chance my mail address and that > may / may not work half... But it hasn't changed in half a decade or more, Meino? > If someone could read me I would > be glad for an answer to the > mailing list. Perhaps you wonder because the

Re: How do I get C++ comments to wrap correctly?

2017-03-02 Thread Erik Christiansen
On 02.03.17 09:07, Barry Gold wrote: > I want to use word-wrap on my C++ comments. > > My .vimrc file contains > set tw=75 > set fo+=tcjro > > But when I type a long C++ style comment, I get > // This object contains the logic (code and data) for making the > first pass over the

Re: Highlight words not previously used.

2017-02-18 Thread Erik Christiansen
On 11.02.17 11:37, Søren kjeil wrote: > I'd like to highlight words that I have not previously used. > > This would let me know when if I misspelled a name. By itself, that would also highlight the first use of every word in your text, making it hard to spot misspellings, I expect. > Is there a

Re: Having certain lines readonly

2017-01-09 Thread Erik Christiansen
On 02.01.17 03:42, Tihomir Mitkov wrote: > Is it possible to have certain lines uneditable while keeping the rest of > them editable? In *nix, almost anything is possible. You could either excise the protected lines with e.g. Awk, then reinsert them after exit from Vim to the wrapper script, or

Re: List is quiet

2016-12-08 Thread Erik Christiansen
On 07.12.16 15:17, Brett Stahlman wrote: > "Quiet" is an understatement. Only 1 thread active in the past 5 days, > and no posts at all since 2 days ago, with several posts unanswered?! > Something's changed... Intrusion of meatspace distractions? (Some still digesting turkey, many working on

Re: Strength of builtin blowfish2 encryption?

2016-09-26 Thread Erik Christiansen
On 25.09.16 16:24, Stefan Klein wrote: > Hi, > > I wonder how string the builtin encryption of vim really is. > The manpage states: "cryptmethod zip [ ... ] breakable [ ... ] a 6 > character key in one day (on a Pentium 133 PC)" > Guess today's computers will use seconds if not microseconds. > >

Re: Trying to learn to Work with Text without using J,K,H,L and arrow keys

2016-09-14 Thread Erik Christiansen
On 13.09.16 08:23, Amit Christian wrote: > Here is my question: > > I find it still difficult to go to next lines or browsing up or down > through the text. Can any one please help me with efficient use of > working with text without a usual j,k,h,l use? Are there resources or > help on internet?

Re: Changing the defaults with Vim 8

2016-07-25 Thread Erik Christiansen
On 24.07.16 15:02, Bram Moolenaar wrote: > If someone wants to start with 'nocompatible', but not all of the new > option values, a .vimrc would be needed to change the settings. This is > the most common and also most tricky part. Assuming that the user will > want most of the new option

Re: Spellcheck after Ellipsis again

2016-06-14 Thread Erik Christiansen
On 14.06.16 05:57, Tony Mechelynck wrote: > > if has('digraphs') && has('multi_byte') > dig ** 8226 " • U+2022 BULLET > dig ,, 8230 " … U+2026 HORIZONTAL ELLIPSIS > " dig ff 64256 " ff U+FB00 LATIN SMALL LIGATURE FFthe commented ones > " dig fi 64257 " fi U+FB01 LATIN SMALL LIGATURE FI

Should Vim recognise an ellipsis? [Was: Spellcheck after Ellipsis again]

2016-06-14 Thread Erik Christiansen
On 13.06.16 16:29, David Woodfall wrote: > I did once use the uft8 symbol for ellipsis, but it really killed the > readability of it. Ah ... yes, the spaced out dots are especially good for indicating hesitation/thinking in dialogue or even a list reply. Maybe we need Vim spellchecking to

Re: Spellcheck after Ellipsis again

2016-06-13 Thread Erik Christiansen
On 13.06.16 14:45, David Woodfall wrote: > >Any ideas? (Other than renaming my txt files to tex) > > Actually, renaming doesn't work either. It seems that some things are > still spellchecked up the top of the document. If I put an ellipsis > near the end it's fine. > > Stumped... > > I'm sure

Re: dictionary completion for words including `@' sign

2016-05-20 Thread Erik Christiansen
On 20.05.16 09:56, Eric Smith wrote: > It do not need syntax highlighting in my vims spawned from mutt, > but I do want email address completion! If including '@' in a vim dictionary remains problematic, the fact that you're using mutt provides an alternative method. Mutt email aliases allow the

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

2016-04-15 Thread Erik Christiansen
On 14.04.16 18:00, LCD 47 wrote: > > As for Vim: its regexes have features not present in any other > language. People use them, and thousands of plugins and syntax files > rely on them. You're asking to break all of them because you _prefer_ > something else? Please quote a whole message

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

2016-04-14 Thread Erik Christiansen
On 14.04.16 14:40, Christian Brabandt wrote: > Am 2016-04-14 12:14, schrieb Erik Christiansen: > >So many unix utilities support POSIX "Modern" EREs, that it is the best > >standard to conform to. There's then only one regex dialect to learn. > >(Queue

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

2016-04-14 Thread Erik Christiansen
On 12.04.16 21:15, Christian Brabandt wrote: > On Di, 12 Apr 2016, L. A. Walsh wrote: > >If vim supported posix extended RE's, Some of us have been asking for that for around a decade now. So many unix utilities support POSIX "Modern" EREs, that it is the best standard to conform to. There's

Re: How can I delete all the ; in column mode? or how can I alignment the semicolons ?

2016-03-13 Thread Erik Christiansen
On 13.03.16 19:54, Yang Luo wrote: > input i_start_addr ; > input num_pad_y ; > input i_en ; > input i_sram_ren0 ; > input i_sram_raddr0 ; > input i_wdata0 ; ... With the cursor before the first such line, .,$s/ *;$// will delete any ';' at

Re: delete chinese character quickly

2016-03-13 Thread Erik Christiansen
On 13.03.16 06:18, bsta...@gmail.com wrote: > 在 2016年3月13日星期日 UTC+8下午7:51:43,Yang Luo写道: > > this is a subtitle.srt, I want to delete all the Chinese character(like > > this:距离地球4亿英里,存在这一个迷你太阳系,), how can I do it using vim command? ... > %s/[^ -~]//g Hey, that's good enough to try here. Might

Re: How do I add the option +xterm_clipboard to terminal vim

2016-03-07 Thread Erik Christiansen
On 06.03.16 20:23, Bee wrote: > How do I add the option +xterm_clipboard to terminal vim? > > I can compile vim with all patches, > but do not know how to get the option +xterm_clipboard. It is a "configure" option. This shows running ./configure with a couple of options:

Re: how to transfer output of ':.w !sh' back to current buffer

2016-02-27 Thread Erik Christiansen
On 26.02.16 08:29, Roman wrote: > I use ':.w !sh' to run some lines with shell commands > Is any way to transfer output of this commands back to buffer or maybe > to split buffer window or do something like ':r !sh $current_line' The easiest way to return the result is not to use ":.w", but the !

Re: Feature or bug? Funny behaviour of cw on whitespace.

2016-02-12 Thread Erik Christiansen
On 12.02.16 03:02, Elmar Hinz wrote: > > > It doesn't say why though, and the reason IIUC is that vi did it > > that way, and it's such a basic command that millions are used to > > it. IMO we'd be better off with consistency, c{motion} is like > > d{motion} then enter insert mode, without this

Re: Feature or bug? Funny behaviour of cw on whitespace.

2016-02-11 Thread Erik Christiansen
On 11.02.16 03:43, 'Elmar Hinz' via vim_use wrote: > the normal behaviour of the w motion is to move n words forward and to act > exclusively. Yes, the motion is (mostly) to the start of the next/nth word. (exclusive) > Different from this the normal behaviour of cw is to change to the end > of

Re: Feature or bug? Funny behaviour of cw on whitespace.

2016-02-11 Thread Erik Christiansen
On 11.02.16 05:06, Elmar Hinz wrote: > > The w motion is then perfectly as specified, and as expected. > > It is particularly handy when correcting indentation of a few > > lines to align with a leading line of arbitrary indentation: > > > > 1) Move to start of leading line, with ^. > > 2) j

Re: inclusive-linewise: Is the help topic wrong?

2016-02-10 Thread Erik Christiansen
On 10.02.16 10:33, Tony Mechelynck wrote: > Maybe "there is nothing but blanks" or "there are zero or more > blanks"? And I suppose "blanks" means "whitespace characters" (spaces > or tabs) here? Is it simpler to understand "there are no non-blank characters"? A single category is a minimally

Re: How to get vim to display Cyrillic, Greek, or Russian? [Was: Feature or bug? dw oddities]

2016-02-10 Thread Erik Christiansen
On 09.02.16 15:19, Nikolay Aleksandrovich Pavlov wrote: > 2016-02-09 14:48 GMT+03:00 Erik Christiansen <dva...@internode.on.net>: > > Thank you for the hints, Tony, but nothing tried so far is making any > > difference. Vim still won't display Cyrill

FIXED [Was: How to get vim to display Cyrillic, Greek, or Russian?]

2016-02-10 Thread Erik Christiansen
On 10.02.16 12:13, Tony Mechelynck wrote: > On Wed, Feb 10, 2016 at 11:40 AM, Erik Christiansen > <dva...@internode.on.net> wrote: > > On 09.02.16 15:19, Nikolay Aleksandrovich Pavlov wrote: > >> See also https://en.wikipedia.org/wiki/Unicode_and_email. > >> >

How to get vim to display Cyrillic, Greek, or Russian? [Was: Feature or bug? dw oddities]

2016-02-09 Thread Erik Christiansen
On 09.02.16 09:49, Tony Mechelynck wrote: > On Tue, Feb 9, 2016 at 8:24 AM, Erik Christiansen > > Does anyone know what it takes to get vim to display Cyrillic, Greek, or > > Russian characters in a (utf-8 enabled) xterm? (Note: Vim encoding while > > editing this post, in wh

Re: Feature or bug? dw oddities

2016-02-08 Thread Erik Christiansen
On 08.02.16 10:50, Matt Ackeret wrote: > The next text will be from the Russian input method: > АВСРОМИС > > This wasn't typed in Terminal, but I just typed Russian characters > into Terminal, and they showed up fine. Viewing Cyrillic, Greek, or Russian characters doesn't work for me in "xterm"

Re: editing a _corrupted_ CP1252 file

2016-01-27 Thread Erik Christiansen
On 26.01.16 13:11, Kenneth Reid Beesley wrote: > Here’s my usual .gvimrc setup for encodings: > > “ encoding used internally in the edit buffer > set encoding=utf-8 > > “ default encoding for saving any new files created > setglobal fileencoding=utf-8 > > “ when editing an existing file, try

Re: editing a _corrupted_ CP1252 file

2016-01-25 Thread Erik Christiansen
On 25.01.16 11:18, Kenneth Reid Beesley wrote: > I know that the files are _supposed_ to be CP1252. > But beforehand I don’t if or how they are corrupted. Usually the > problem in a corrupted file is the presence of \x81, \x8D, \x8F, \x90 > and/or \x9D bytes, which are

Re: Regex issue with \|-concatenation

2016-01-25 Thread Erik Christiansen
On 24.01.16 12:14, A. B. wrote: > Hello Vim-users, > > I've try to construct a regex to find the jumping positions of the )-movement. > Unfortunately I can not concatenate two patterns with \|. Concats are separated by \&. \| separates branches. See :h regex. In general regex terms, | can be

Re: problem: editing a _corrupted_ CP1252 file

2016-01-23 Thread Erik Christiansen
On 22.01.16 17:45, Kenneth Reid Beesley wrote: > > I have a number of 8-bit text files that _should_ be in CP1252, but they may > contain byte values that are undefined for CP1252, e.g. \x81, \x8D, \x8F, > \x90 and \x9d. > I.e. these are potentially corrupted files that are mostly legal CP1252,

Re: Ignore some filenames

2015-12-10 Thread Erik Christiansen
On 07.12.15 13:34, Paolo Bolzoni wrote: > On Fri, Dec 4, 2015 at 7:05 PM, Erik Christiansen > <dva...@internode.on.net> wrote: > > The more structured approach also simplifies matters if it is decided to > > place the source code under version control, but not anyth

Re: Ignore some filenames

2015-12-04 Thread Erik Christiansen
On 04.12.15 13:55, Paolo Bolzoni wrote: > I am aware that is exactly what I asked, but I was wondering if there > is a easy way to tell vim to ignore any filename ending by .o The suggested glob ignore methods are simpler alternatives to explicitly listing the filename extensions to be included,

Re: conflagration between expantab and softtabstop

2015-11-01 Thread Erik Christiansen
On 01.11.15 21:03, toothpik wrote: > with softtabstop set to 4 and set noexpandtab, in insert mode on a new > line, when I enter a single character followed by a tab, 3 spaces are > inserted Not able to replicate that here, with Vim 7.4 (1-688). With tabstop=3 and noexpandtab, tabs of that size

Re: Problem using vim in csh on linux

2015-10-21 Thread Erik Christiansen
On 21.10.15 05:20, Lowell Specht wrote: > How do I establish my terminal session? > terminal is Windows client app hummingbird exceed common desktop > environment to logon to a HP unix server. From there, I ssh -Y to the > linux server. I have memories of using the same application for the same

Re: slow display update, maybe due to folded text

2015-10-16 Thread Erik Christiansen
On 15.10.15 07:21, Paul wrote: > On Thursday, October 15, 2015 at 1:49:24 AM UTC-4, Paul wrote: > >On Wednesday, October 14, 2015 at 8:12:27 AM UTC-4, Erik Christiansen > >wrote: > >> ISTM very intuitive that compounding excessive layers of > >> highlighting resu

Re: slow display update, maybe due to folded text

2015-10-14 Thread Erik Christiansen
On 12.10.15 08:23, Paul wrote: > On Monday, October 12, 2015 at 6:17:38 AM UTC-4, Erik Christiansen > wrote: > > What I'm using is just: > > > > " Cursor Appearance and behaviour: > > " (Insert_Mode == Green, Normal_Mode == Red) > > if =~ "xte

Re: slow display update, maybe due to folded text

2015-10-12 Thread Erik Christiansen
On 11.10.15 16:02, Paul wrote: > I have the following function that flashes crosshairs in the current > window so that my attention gets brought to where the active window > is, and where the cursor is. ... > I'm finding that if I have a window with many closed folds, *and* I > have another

Re: Switching off auto-indent within vim script...

2015-10-09 Thread Erik Christiansen
On 08.10.15 14:56, Sonny Chee wrote: > > But all of the text is auto-indented. Any help would be appreciated Have you tried "set paste", instead? If pasting from the X Clipboard, there's also: "+p (That was "*p in old Vim versions, IIRC.) Erik -- -- You received this message from the

Alternative keymaps [Was: vim and touch typing]

2015-10-09 Thread Erik Christiansen
On 08.10.15 20:33, Gevisz wrote: > In this connection I have only one inconvenience connected with the facts that > 1) I usually have to use 3 keyboard layouts at the same time switching >between them with a hot key, > 2) it is impossible to have a "direct hot key switch" to a certain >

Re: vim and touch typing

2015-10-08 Thread Erik Christiansen
On 06.10.15 01:01, Filype Pereira wrote: > So, I started reading a vim book and didn't get very far, when I stopped at > this line: > > > If you can't touch type, then go learn it and then come back to learn vim. What a load of bollocks! During three decades of earning a living developing

Re: (wandering off-topic) Re: How to use :help?

2015-09-16 Thread Erik Christiansen
On 16.09.15 11:28, Gevisz wrote: > Just looked in 'man apropos' and tried 'apropos mount' > > It does not work. Can you, please, provide an example. The "apropos" command is the same as "man -k". Here, both give 27 hits for "mount". You'll need to diagnose the problem at your end. Erik -- --

Re: [ANN] Plugin: VimCrypt: A small framework for encryption and decryption in vim. (supports openssl and gpg)

2015-09-15 Thread Erik Christiansen
On 13.09.15 12:26, mwnx wrote: > I created a plugin called VimCrypt to enable seamless reading and writing of > encrypted files in vim, which I find useful for password lists and other > sensitive information. Right now, it supports *openssl* and *gpg*, and can > be extended to support other

Re: [ANN] Plugin: VimCrypt: A small framework for encryption and decryption in vim. (supports openssl and gpg)

2015-09-15 Thread Erik Christiansen
On 15.09.15 12:17, mwnx wrote: > Not sure what kinds of metrics you're talking about. Thank you, the Wikipedia reference is enough to gain an idea of blowfish's current security. In the first paragraph: "Blowfish provides a good encryption rate in software and no effective cryptanalysis of it has

Re: How to use :help?

2015-09-13 Thread Erik Christiansen
On 13.09.15 12:03, Niels Kobschaetzki wrote: > I read quite often "just use the help" or recently on the list "don't > use google, use :help". But how do I "use" it? When I want to know if > something is possible in vim, I never figured out how to search for it > because I always got the feeling

Re: Solver in vim?

2015-08-26 Thread Erik Christiansen
On 26.08.15 15:00, Uwe Husmann wrote: Those are textpads that will recognize and solve mathematical formulas and equations. I just wonder if there are similar plugins for vim that will do the same thing or at least go in the same direction? Sounds like an attempt to build a new emacs.

Re: vim suitable for professional software development?

2015-08-24 Thread Erik Christiansen
On 23.08.15 16:33, taschent...@posteo.de wrote: i'm wondering whether VIM is really suitable for professional software development. I have no considerable experience with vim, linux, software development or anything else mentioned in this post, i.e. i'm a beginner ... Over three decades in

Re: C comment block indentation woes

2015-08-17 Thread Erik Christiansen
On 17.08.15 07:26, LCD 47 wrote: On a side note: you can usually avoid dealing with :set for options that take string values by using let option = ... instead of set option= E.g. for the line above: let comments = 'sO:* -,mO:* ,exO:*/,s1:/*,mb:*,ex:*/,://' Thanks for that,

Re: Warning for writing partial file

2015-08-16 Thread Erik Christiansen
On 15.08.15 19:47, BPJ wrote: I have acquired a tendency to overuse `v` or `V` in cases where it is not (strictly) needed. When writing prose I type `vipgq` or somesuch and then immediately `v:w` or even `gv:w` on misguided reflex. I'm curious what others have done when getting into such bad

Re: C comment block indentation woes

2015-08-15 Thread Erik Christiansen
On 14.08.15 04:02, Oliver Wraight wrote: The behaviour I'm after is ludicrously simple: /* Comment block indented by shiftwidth */ The behaviour I'm getting is: /* Comment block indented by shiftwidth */ ... comments=sO:* -,mO:*

Re: Flexible auto-insertion of date at end of file.

2015-07-30 Thread Erik Christiansen
On 30.07.15 20:30, Erik Christiansen wrote: Desired Enhancement: ... Changing to named parameters fails through lack of an eval/expand on the a:Format, but then also switching to strange appending syntax¹ ($put) found on the list: au BufWinEnter ~/Personal/rainfall/*/* call Append_Date('%d

Re: Flexible auto-insertion of date at end of file.

2015-07-30 Thread Erik Christiansen
On 30.07.15 07:52, Tim Chase wrote: So combining those above with your enhancement request, I came up with the following function which seems to do what you want: function! Append_Date(fmt) $put=strftime(a:fmt) startinsert! endfunction Many thanks Tim. That does it exactly, is

Re: Flexible auto-insertion of date at end of file.

2015-07-30 Thread Erik Christiansen
On 30.07.15 09:41, Tim Chase wrote: So the first ex command is the :put command (:help :put) with a Doh! Yes, now it has a place in the jigsaw. It is very early morning here, too late in the night for coffee. I'll read up on it tomorrow. Have to fit in a bit of sleep somewhere. Thanks. Erik

Flexible auto-insertion of date at end of file.

2015-07-30 Thread Erik Christiansen
What I have so far is: Autoinsert date at end of file, _after_ reading modelines: au BufWinEnter ~/Data/rainfall/*/* call Append_Date() function! Append_Date() normal G :r !date '+\%d.\%m:' normal A endfunction Problem: The normal A moves the cursor to the end of the

Re: I cannot realise a :map why ??

2015-07-21 Thread Erik Christiansen
On 21.07.15 01:02, aubertin.sylvain wrote: For instance I should like to make F9 stand for papa Following VIM Manual (by Moolenaar) I type : :map F9 ipapaEsc (5 characters for Esc and 4 characters for F5 ) That works for me, when typed on Vim's command line, omitting your bracketed

Re: vim replace a string when a change occurred in another place

2015-06-24 Thread Erik Christiansen
On 23.06.15 23:56, Rudra Banerjee wrote: Erik, Thanks for you commentbut it is solved. Now, another important thinghow to invoke it! Is it possible to have something like this: if (getline(.)) startswith Program au CursorMovedI call EdName() i.e. calling a autocmd conditionally

  1   2   3   >