Re: programmatically determine blockwise visual mode

2015-12-07 Thread Nikolay Aleksandrovich Pavlov
2015-12-05 14:59 GMT+03:00 Christian Brabandt <cbli...@256bit.org>: > On Sa, 05 Dez 2015, Nikolay Aleksandrovich Pavlov wrote: > > > I think that in most cases `"\42$"` will work: `+"42$" is 42`, > `str2nr > > ("42$") is 42`. > > Hm,

Re: programmatically determine blockwise visual mode

2015-12-05 Thread Nikolay Aleksandrovich Pavlov
2015-12-05 0:37 GMT+03:00 Charles E Campbell : > Christian Brabandt wrote: > > Hi Charles! > > > > On Fr, 04 Dez 2015, Charles E Campbell wrote: > > > >> Christian Brabandt wrote: > >>> Hi, > >>> let's say I have script, that wants to work on the last visually > >>>

Re: programmatically determine blockwise visual mode

2015-12-10 Thread Nikolay Aleksandrovich Pavlov
2015-12-10 20:18 GMT+03:00 Christian Brabandt <cbli...@256bit.org>: > On Mi, 09 Dez 2015, Bram Moolenaar wrote: > > > Christian Brabandt wrote: > > > > > On Mo, 07 Dez 2015, Nikolay Aleksandrovich Pavlov wrote: > > > > > > > I have mis

Re: help a beginner getting vim setup with YCM and Jedi

2016-01-07 Thread Nikolay Aleksandrovich Pavlov
2016-01-07 19:40 GMT+03:00 Never Boy : > Dear Vim users > I have started using vim lately and really enjoyed the learning. But after > a while I simply got stuck. > > Vim is not hard to learn to use I dont think but building it into a work > environment is really hard! > >

Re: E749: empty buffer with vimdiff startup commands

2016-01-08 Thread Nikolay Aleksandrovich Pavlov
2016-01-09 3:04 GMT+03:00 François-Xavier Thomas : > Hello all, > > I've hit a small issue today. The following sequence always stops a few > seconds on 'E749: empty buffer' before displaying the diffs. Calling > '1bufdo set ma' afterwards does not trigger the error. > >

Re: how to double negation in regex

2015-12-25 Thread Nikolay Aleksandrovich Pavlov
2015-12-25 10:16 GMT+03:00 Chump Ma : > For example, > > [[:punct:]] > > match punctuations, now I want to match punctuations but not '-', so I try > > [^[^[:punct:]\]\-] > > and > > [^[:punct:]\-]\@! > > but neither worked, can someone help? > ​Use negative look-aheads or

Re: Redirection of

2016-06-05 Thread Nikolay Aleksandrovich Pavlov
2016-06-05 18:33 GMT+03:00 Ni Va : > Hi, > > I am using vim7.4 and wonder why it is netrw that is called by default when I > type :e mydir. > > When I type :command E, this output this list > :command E > NameArgs Address Complete Definition > ! E

Re: Using ^ (match start of line) and \% (match column) together

2016-06-07 Thread Nikolay Aleksandrovich Pavlov
2016-06-07 22:45 GMT+03:00 Nicola : > The following patterns both match up to column 17 included: > > /.*\%17v > /.*\%17v. > > If ^ is added, the two are no more equivalent: > > /^.*\%17v <-- matches up to column 16 > /^.*\%17v.<-- matches up to column 17 You are

Re: Using ^ (match start of line) and \% (match column) together

2016-06-08 Thread Nikolay Aleksandrovich Pavlov
2016-06-08 11:40 GMT+03:00 Nicola <nvitacolo...@gmail.com>: > On 2016-06-07 20:47:07 +, Nikolay Aleksandrovich Pavlov said: > >> 2016-06-07 22:45 GMT+03:00 Nicola <nvitacolo...@gmail.com>: >>> >>> The following patterns both match up to column

Re: Channel commands: special characters, quotes and escaping

2016-05-25 Thread Nikolay Aleksandrovich Pavlov
2016-05-25 16:35 GMT+03:00 'Jan Bundesmann' via vim_use : >> JSON has no single quoted literal >> strings, so your example *must* fail because it is not a valid JSON. > > I think, this is the answer. > > Maybe learning first how to write valid JSON is a good idea when

Re: subscripts and superscripts

2016-06-02 Thread Nikolay Aleksandrovich Pavlov
2016-06-02 17:31 GMT+03:00 Charles E Campbell : > kamaraju kusumanchi wrote: >> For normal editing purposes, I use vim and it works great. But once in >> a while, I want to use subscripts and superscripts. For example, while >> writing chemical equations I would like to

Re: detach current tab into a separate window

2016-01-14 Thread Nikolay Aleksandrovich Pavlov
2016-01-14 8:23 GMT+03:00 kamaraju kusumanchi : > Is it possible to detach the current tab in a gvim session into a > separate gvim window? Something akin to what firefox can do with tabs? > > Once the tab is separated, can I dock it back into the original gvim >

Re: Search for a mach in the last line

2016-01-16 Thread Nikolay Aleksandrovich Pavlov
2016-01-17 3:10 GMT+03:00 Axel Bender : > When I want to match a pattern in the first line of a document, I use > "\%1l". However, no pattern for the last line is provided in the docs (my - > somewhat naive - attempts using "\%$l", or "\%l" failed). > > Did I miss

Re: detach current tab into a separate window

2016-01-14 Thread Nikolay Aleksandrovich Pavlov
2016-01-14 20:20 GMT+03:00 Salman Halim <salmanha...@gmail.com>: > > > On Thu, Jan 14, 2016 at 10:41 AM, Nikolay Aleksandrovich Pavlov < > zyx@gmail.com> wrote: > >> >> >> 2016-01-14 18:05 GMT+03:00 Salman Halim <salmanha...@gmail.com>: >

Re: detach current tab into a separate window

2016-01-14 Thread Nikolay Aleksandrovich Pavlov
2016-01-14 18:05 GMT+03:00 Salman Halim <salmanha...@gmail.com>: > > > On Thu, Jan 14, 2016 at 8:44 AM, Nikolay Aleksandrovich Pavlov < > zyx@gmail.com> wrote: > > >> >> >> 2016-01-14 8:23 GMT+03:00 kamaraju kusumanchi < >> raju

Re: Continuation line doesn't work when executing from register

2016-06-26 Thread Nikolay Aleksandrovich Pavlov
2016-06-26 15:38 GMT+03:00 Bram Moolenaar : > > Cesar Romani wrote: > >> I'm using vim 7.4.1952 on Windows 7. >> Suppose I have two files on the same folder: test1.txt and test2.txt. >> I have 'set nocp' in both of them. >> >> test1.txt contains the following code, and I

Re: Pathogen doesn't seem to work

2016-02-05 Thread Nikolay Aleksandrovich Pavlov
2016-02-05 19:53 GMT+03:00 Erik Falor <ewfa...@gmail.com>: > On Fri, Feb 05, 2016 at 10:14:31AM +0300, Nikolay Aleksandrovich Pavlov wrote: >> 2016-02-05 6:00 GMT+03:00 Erik Falor <ewfa...@gmail.com>: >> > On Thu, Feb 04, 2016 at 03:54:40PM -0800, Hashjie wrote:

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

2016-02-09 Thread Nikolay Aleksandrovich Pavlov
2016-02-09 14:48 GMT+03:00 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?

Re: Can you edit EBCDIC files on non-OS390 builds of VIM?

2016-02-08 Thread Nikolay Aleksandrovich Pavlov
2016-02-08 21:35 GMT+03:00 Justin Dearing : > On Sunday, January 31, 2016 at 6:14:49 PM UTC-5, Eric Christopherson wrote: >> I find it interesting to see >> this question, just a few days after reading a page laying out the case >> for NeoVim . . . it >> gave EBCDIC support as

Re: Pathogen doesn't seem to work

2016-02-04 Thread Nikolay Aleksandrovich Pavlov
2016-02-05 6:00 GMT+03:00 Erik Falor : > On Thu, Feb 04, 2016 at 03:54:40PM -0800, Hashjie wrote: > >> Whenever I run vim with vim -u NONE > > That's your problem right there. -u skips many of Vim's regular > initializations, including loading [autoloaded] plugins. That is why >

Re: unexpected sessionman behaviour

2016-02-05 Thread Nikolay Aleksandrovich Pavlov
2016-02-05 14:51 GMT+03:00 : > Hi, > > recently i installed sessionman and for a while i was quite happy with > it, but then i discovered something i dislike: > > Open some files, edit them, and have some changes unsaved. Then open a > saved session with

Re: Pathogen doesn't seem to work

2016-02-05 Thread Nikolay Aleksandrovich Pavlov
2016-02-05 14:24 GMT+03:00 Hashjie : > Op vrijdag 5 februari 2016 08:14:35 UTC+1 schreef ZyX: >> 2016-02-05 6:00 GMT+03:00 Erik Falor : >> > On Thu, Feb 04, 2016 at 03:54:40PM -0800, Hashjie wrote: >> > >> >> Whenever I run vim with vim -u NONE >> > >>

Re: "Exploding" a paragraph into individual lines

2016-01-27 Thread Nikolay Aleksandrovich Pavlov
2016-01-27 20:49 GMT+03:00 Chris Lott : > I'd like to take a paragraph like the following: > > This is a paragraph. Wow! What do I do now? > > And break it into individual lines, ala: > > This is a paragraph. > Wow! > What do I do now? > > StackExchange revealed this regex

Re: Can you edit EBCDIC files on non-OS390 builds of VIM?

2016-01-31 Thread Nikolay Aleksandrovich Pavlov
2016-02-01 2:14 GMT+03:00 Eric Christopherson : > On Sat, Jan 30, 2016, Justin Dearing wrote: >> I'd like to edit EBCDIC encoded files in VIM on windows vim --version shows >> this: >> >> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 16 2015 08:44:57) >> Included

Re: Can you edit EBCDIC files on non-OS390 builds of VIM?

2016-01-31 Thread Nikolay Aleksandrovich Pavlov
2016-01-31 5:32 GMT+03:00 Justin Dearing : > I'd like to edit EBCDIC encoded files in VIM on windows vim --version shows > this: > > VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 16 2015 08:44:57) > Included patches: 1-872 > Compiled by > Huge version

Re: Newbie Setup Advice

2016-02-23 Thread Nikolay Aleksandrovich Pavlov
2016-02-23 19:13 GMT+03:00 Ben Fritz : > On Monday, February 22, 2016 at 11:58:54 PM UTC-6, ZyX wrote: >> >> Pathogen is not a plugin manager. >> > > I understand this sentiment, especially coming from someone such as yourself > who works on a very fully featured plugin

Re: Back reference across range

2016-02-29 Thread Nikolay Aleksandrovich Pavlov
2016-02-29 20:40 GMT+03:00 Paul : > To fold a closing brace at the same indentation level as its opening "sub > {", this doesn't work, because of the back reference: > > :g/\v^(\s+)sub \{/,/\v\1\}/fold > > This is just an example, I could be matching "foo" and "bar", I'm

Re: Newbie Setup Advice

2016-02-22 Thread Nikolay Aleksandrovich Pavlov
2016-02-23 8:26 GMT+03:00 Niels Kobschaetzki : > On 16/02/22 14:27, Vee Mur wrote: >> >> Hi folks, >> >> I am new to vim.I recently installed vim 7.4 on my pc running ubuntu >> mate,now i've been trying to install several plugins without any success at >> all. >> >>

Re: simple vim startup question

2016-01-21 Thread Nikolay Aleksandrovich Pavlov
2016-01-21 14:36 GMT+03:00 : > Tony Mechelynck writes: > > > On Thu, Jan 21, 2016 at 10:20 AM, wrote: > > [...] > > >> The files have to be read in this sequence: > >> 1) ~/.vimrc > >> 2)

Re: vim problems

2016-01-23 Thread Nikolay Aleksandrovich Pavlov
2016-01-23 10:32 GMT+03:00 Bob Holtzman : > After using vi and vim for many years it suddenly started acting up. > > Running debian 8.2 on a thinkpad T420 w/ vim 7.4.488-7. > > On a fresh install of debian 8.2, I copied the vimrc from debian 7.9 > and plugged it in. That may have

Re: add mapping for buftype=nofile?

2016-01-19 Thread Nikolay Aleksandrovich Pavlov
2016-01-20 5:08 GMT+03:00 Josef Fortier : > I'd like to map q to bwipe for all bt == nofile, but I'm having trouble > finding the autocmd to make it work (assuming that this is the way to go)? > > I've tried (transcribed from memory) > > autocmd bufreadpost * > \ if

Re: How to get rounded bullet list character

2016-02-19 Thread Nikolay Aleksandrovich Pavlov
2016-02-19 18:09 GMT+03:00 'Guyzmo' via vim_use : > Hi Mac, Christian, > > On Fri, Feb 19, 2016 at 01:45:28PM +0100, Christian Brabandt wrote: >> On Do, 18 Feb 2016, Mac Martine wrote: >> > If you scroll down slightly in to the image showing an example of Vim >> > notes,

Re: How to get rounded bullet list character

2016-02-19 Thread Nikolay Aleksandrovich Pavlov
2016-02-19 20:49 GMT+03:00 Marvin Renich : > * 'Guyzmo' via vim_use [160219 10:10]: >> or you can directly use the digraph: `Sb` which outputs: `∙`. From >> `:he digraph`: >> >> ∙ Sb 22198729BULLET OPERATOR >> >> or you could use the

Re: Packages

2016-03-01 Thread Nikolay Aleksandrovich Pavlov
2016-03-02 1:43 GMT+03:00 Bram Moolenaar : > > Matthew Desjardins wrote: > >> It also seems that even if a plugin has "plugin/*.vim" files, its >> "ftdetect" files aren't loaded in time. > > I suppose we should load them at the same time. > > I now notice that ftdetect isn't

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 Nikolay Aleksandrovich Pavlov
2016-03-09 23:54 GMT+03:00 BPJ <b...@melroch.se>: > 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 bra

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 Nikolay Aleksandrovich Pavlov
2016-03-09 17:02 GMT+03:00 Tim Chase : > add the following to your vimrc: > >let myfile='/path/to/your/file' > > then you can invoke vim with > >vim -c 'exe "e ".myfile' > > which is a bit awkward, so you might want to make an alias if you > intend to do it

Re: Does vimscript have a "stat()" command?

2016-03-28 Thread Nikolay Aleksandrovich Pavlov
2016-03-28 22:36 GMT+03:00 Josef Fortier : > I'm looking to automatically invoke the (tpope or chrisbra) "SudoEdit" > function when the file is root owned. I've set up a call to (unixland) "stat" > via systemlist() but it seems like vimscript should be able to find the

Re: about and

2016-04-05 Thread Nikolay Aleksandrovich Pavlov
2016-04-05 5:44 GMT+03:00 samxyzabc : > following is from :help NL-used-for-Nul > > Technical detail: > characters in the file are stored as in memory. In the display > they are shown as "^@". The translation is done when reading and writing > files. To match a with a

Re: Escaping in command line completion

2016-04-12 Thread Nikolay Aleksandrovich Pavlov
2016-04-12 23:54 GMT+03:00 : > On Tuesday, April 12, 2016 at 4:51:38 PM UTC-4, nwt...@gmail.com wrote: >> I have a set of files, whose names contain various punctuation characters >> like # and $. E.g. FOO#BAR and BIZ$BAZ. >> >> When editing a file via ":e" the command line

Re: How to open from bash file A and B in vertical split and file C in second tab?

2016-04-11 Thread Nikolay Aleksandrovich Pavlov
2016-04-11 8:32 GMT+03:00 h_east : > Hi Michał, > > 2016-4-11(Mon) 13:12:27 UTC+9 Michał Urban: >> Hi, >> >> How to open from bash file A and B in vertical split and file C in second >> tab? > > $ vim -O A B -c "tabedit C" -c "tabfirst" I would suggest using vim -O2 A

Re: Revert keys values in dict

2016-04-06 Thread Nikolay Aleksandrovich Pavlov
2016-04-06 16:00 GMT+03:00 Ni Va : > On Wednesday, April 6, 2016 at 1:36:08 PM UTC+2, lith wrote: >> > Such tricks are usually used in >> > plugins where you e.g. have mappings like “escape sequence to escaped >> > character” for decoder and “escaped character to escape

Re: don't allow vim to launch inside emacs/vim terminals

2016-04-05 Thread Nikolay Aleksandrovich Pavlov
2016-04-06 1:15 GMT+03:00 Dominique Pellé : > Andrew Pennebaker wrote: > >> Please help Vim detect strange terminal environments (e.g. Emacs/Vim >> shells), and prohibit launching in these. Otherwise, it completely messes up >> the shell. >

Re: Build cexpr from result of python code.

2016-03-24 Thread Nikolay Aleksandrovich Pavlov
2016-03-24 13:26 GMT+03:00 Ni Va : > On Monday, March 21, 2016 at 4:45:45 PM UTC+1, ZyX wrote: >> 2016-03-21 17:15 GMT+03:00 Ni Va : >> > Hi, >> > >> > I am using Execute-selection-in-Python-and-append-master plugin in order >> > to test python code

Re: Vim Function: return from within Python Code

2016-03-21 Thread Nikolay Aleksandrovich Pavlov
2016-03-19 19:38 GMT+03:00 rameo : > I have a VIM function with a lot of code written in python. > > There are many loops and sub-loops with this kind of code: > > if this > exit > else > do this > > Does anyone know how to exit the python code and return to vim? > (or even

Re: Vim Function: return from within Python Code

2016-03-21 Thread Nikolay Aleksandrovich Pavlov
2016-03-21 18:31 GMT+03:00 rameo : > @ZyX, > > Thanks, > You mean to extract the Python code to a .py file and import it in my vim > function? To a function in a *.py file. Python module is supposed to do nothing except for defining a few variables when it is imported,

Re: Is there any way to count all latin characters in utf-8 as 1 byte?

2016-03-08 Thread Nikolay Aleksandrovich Pavlov
2016-03-08 13:34 GMT+03:00 Nikolay Aleksandrovich Pavlov <zyx@gmail.com>: > 2016-03-08 13:22 GMT+03:00 rameo <rai...@gmail.com>: >> Thank you. >> You're right. It is not a question of decoding a list but decoding a string. >> Never did anything before wit

Re: Go to definition and open in new tab

2016-03-08 Thread Nikolay Aleksandrovich Pavlov
2016-03-08 13:04 GMT+03:00 Thomas R. : > Hello, > > I'm trying to remap the shortcut so it goes to the definition but using > a new tab. For example using . > > I have tried the following in my vimrc: > > nnoremap There is no key ``, you need to

Re: Is there any way to count all latin characters in utf-8 as 1 byte?

2016-03-08 Thread Nikolay Aleksandrovich Pavlov
2016-03-08 14:03 GMT+03:00 rameo : >> Better `vim.Function('getline')(linenr) > > You seems to know everything in every computer language :) > Yes I use Pyth3 and many times also `vim.current.buffer[linenr-1]` > or things like this `r = vim.current.buffer[startline:endline]` > >

Re: Is there any way to count all latin characters in utf-8 as 1 byte?

2016-03-08 Thread Nikolay Aleksandrovich Pavlov
2016-03-08 13:22 GMT+03:00 rameo : > Thank you. > You're right. It is not a question of decoding a list but decoding a string. > Never did anything before with string encoding. I've got it: I cannot use > searchpos() to use with python. Searching positions must be done in

Re: Is there any way to count all latin characters in utf-8 as 1 byte?

2016-03-08 Thread Nikolay Aleksandrovich Pavlov
2016-03-08 12:23 GMT+03:00 rameo : > Can't find anything on the net about string.encode(vim.options[encoding]). > No info either in Vim documentation: if_pyth > > Let say I create my list "MyPositions" with start/end position of matches > using searchpos() in vim. > > Then in my

Re: Packages

2016-03-04 Thread Nikolay Aleksandrovich Pavlov
2016-03-04 14:55 GMT+03:00 LCD 47 <lcd...@gmail.com>: > On 4 March 2016, Nikolay Aleksandrovich Pavlov <zyx@gmail.com> wrote: >> 2016-03-04 14:25 GMT+03:00 LCD 47 <lcd...@gmail.com>: >> > On 3 March 2016, Bram Moolenaar <b...@moolenaar.net> wrote: >

Re: Packages

2016-03-04 Thread Nikolay Aleksandrovich Pavlov
2016-03-04 14:25 GMT+03:00 LCD 47 : > On 3 March 2016, Bram Moolenaar wrote: > [...] >> I realize several people who have previously been using Pathogen are >> confused. Perhaps we can just put every directory under "pack/*/ever" >> in 'runtimepath'? > >

Re: Packages

2016-03-05 Thread Nikolay Aleksandrovich Pavlov
2016-03-05 22:32 GMT+03:00 Matthew Desjardins : > On Saturday, March 5, 2016 at 2:00:48 PM UTC-5, LCD 47 wrote: >> [...] >> Tangentially related again: since these latest versions have been >> pathogen slayers (like it or not, people are thinking about them that

Re: Is there any way to count all latin characters in utf-8 as 1 byte?

2016-03-07 Thread Nikolay Aleksandrovich Pavlov
2016-03-07 14:54 GMT+03:00 rameo : > I use searchpos() to capture start/endcolumns of a matches. > Then I use the results in Python code to transform the text. > > However I noted that latin characters as 'èéàòìù' are counted as 1 byte in > Python but 2 bytes in Vim and the

Re: Is there any way to count all latin characters in utf-8 as 1 byte?

2016-03-07 Thread Nikolay Aleksandrovich Pavlov
2016-03-08 1:32 GMT+03:00 rameo : > >> In Python you are not using *byte* counts, it indexes *unicode >> codepoints*. You may convert unicode Python objects to bytes objects >> by using `string.encode(vim.options['encoding'])`, use >> `.decode(vim.options['encoding'])` to convert

Re: Packages

2016-03-07 Thread Nikolay Aleksandrovich Pavlov
2016-03-07 8:24 GMT+03:00 Benjamin Fritz : > > > On Sat, Mar 5, 2016 at 7:27 AM, Bram Moolenaar wrote: >> >> >> Ben Fritz wrote: >> > >> > For Pathogen, you install by unzipping all files for a plugin, into a >> > directory under "bundle": >> > >> >

Re: Revert keys values in dict

2016-04-03 Thread Nikolay Aleksandrovich Pavlov
2016-04-03 10:54 GMT+03:00 lith : >> > I would like to make values become keys in this dict, is it possible >> > in one simple command ? >> However, with a dirty hack, it becomes possible to do this with a >> almost-oneliner: > > The problem with these oneliners is that

Re: Packages and plugin's subdirectories

2016-03-29 Thread Nikolay Aleksandrovich Pavlov
2016-03-29 22:53 GMT+03:00 Bram Moolenaar : > > Nicola wrote: > >> Neocomplete's plugin folder is organized as follows: >> >> plugin/ >> neocomplete.vim >> neocomplete/ >> buffer.vim >> dictionary.vim >> tag.vim >> >> No matter whether neocomplete is in

Re: How Encoding decoding utf-16 html charset entity

2016-04-04 Thread Nikolay Aleksandrovich Pavlov
2016-04-04 18:35 GMT+03:00 Ni Va : > Hi, > > I've got some CDATA sections in html source and want to pass easily from > utf-16 characters to ascii chars and opposite operation. > > I'am currently using a dict to make needed substitutions. Is it possible to > avoid this king

Re: Capture columns nummers of matches ending with double byte chars

2016-04-25 Thread Nikolay Aleksandrovich Pavlov
2016-04-26 0:45 GMT+03:00 rameo : > Op maandag 25 april 2016 22:26:27 UTC+2 schreef Ken Takata: >> Hi rameo, >> >> 2016/4/23 Sat 21:37:15 UTC+9 rameo wrote: >> > Searchpos() doesn't return the right end value of a match if the match end >> > with a double byte character

Re: E254?

2016-04-26 Thread Nikolay Aleksandrovich Pavlov
2016-04-26 19:08 GMT+03:00 : > Christian Brabandt [16-04-26 17:03]: >> Am 2016-04-26 05:10, schrieb meino.cra...@gmx.de: >> >Hi, >> >with the updates of yesterday (or the day before?) I got a lot of this >> >output, which wasn't there before: >> >line

Re: E254?

2016-04-26 Thread Nikolay Aleksandrovich Pavlov
2016-04-26 19:24 GMT+03:00 <meino.cra...@gmx.de>: > Nikolay Aleksandrovich Pavlov <zyx@gmail.com> [16-04-26 18:20]: >> 2016-04-26 19:08 GMT+03:00 <meino.cra...@gmx.de>: >> > Christian Brabandt <cbli...@256bit.org> [16-04-26 17:03]: >> >

Re: Capture columns nummers of matches ending with double byte chars

2016-04-23 Thread Nikolay Aleksandrovich Pavlov
2016-04-21 22:03 GMT+03:00 rameo : > Since I use Vim I have troubles with double byte characters. > > I want to capture all strings of matches together with startcolumn and > endcolumn of a match (line by line). I don't need only the strings but also > the columnnumbers for

Re: Completiion Suggestions on Status Line...

2016-04-29 Thread Nikolay Aleksandrovich Pavlov
2016-04-30 1:42 GMT+03:00 Sonny Chee : > Hey Guys, > > I recently had my home folder and vim nuked and am attempting to regain a > capability that I once had - the display of "command completion suggestions > on the status line", specifically. > > I used to be able to type

Re: unsuscribe

2016-05-17 Thread Nikolay Aleksandrovich Pavlov
2016-05-18 5:15 GMT+03:00 Matt Ackeret : > On Tue, 17 May 2016, T.Lux wrote: >> >>I am using Emacs now. > > The mailing list itself tells you how to unsubscribe. He used precisely this variant, but he has a typo in the email used to unsubscribe. -- -- You received this

Re: How to set CTRL and minus as a key mapping?

2016-05-21 Thread Nikolay Aleksandrovich Pavlov
2016-05-21 1:35 GMT+03:00 Tony Mechelynck <antoine.mechely...@gmail.com>: > On Sat, May 21, 2016 at 12:00 AM, Nikolay Aleksandrovich Pavlov > <zyx@gmail.com> wrote: >> 2016-05-20 23:03 GMT+03:00 Tony Mechelynck <antoine.mechely...@gmail.com>: >>> O

Re: How to set CTRL and minus as a key mapping?

2016-05-20 Thread Nikolay Aleksandrovich Pavlov
2016-05-20 23:03 GMT+03:00 Tony Mechelynck <antoine.mechely...@gmail.com>: > On Wed, May 18, 2016 at 4:48 PM, Nikolay Aleksandrovich Pavlov > <zyx@gmail.com> wrote: >> 2016-05-18 14:08 GMT+03:00 Igor Forca <igo...@gmail.com>: >>> Hi, >>> I really

Re: dictionary completion for words including `@' sign

2016-05-19 Thread Nikolay Aleksandrovich Pavlov
2016-05-19 21:40 GMT+03:00 Eric Smith : > I don't only want to enjoy autocomplete of my contacts when in gmail, but also > for my mutt. > > I have a file with all my email addresses and > set dict=emails.txt. > > When I complete with dictionary completion (mapped to ), then I

Re: When is a window's statusline updated?

2016-05-13 Thread Nikolay Aleksandrovich Pavlov
2016-05-13 16:01 GMT+03:00 : > Hello! > > I have read the statusline help docs but I wasn't able to find any mention of > how often a window's statusline is updated, especially when several windows > are open in splits. > > I'd be most grateful if somebody could

Re: How to set CTRL and minus as a key mapping?

2016-05-18 Thread Nikolay Aleksandrovich Pavlov
2016-05-18 14:08 GMT+03:00 Igor Forca : > Hi, > I really like to use big fonts in my gVim 7.4 on Windows 7. But time to time > I would like to have smaller font size, to actually see bigger picture > (without need to move up or down). > > In this case I would like to create key

Re: Python Regex in a Vim Search

2016-05-11 Thread Nikolay Aleksandrovich Pavlov
That was already suggested a lot of times. Search ML for “PCRE support”. 2016-05-11 19:19 GMT+03:00 rameo : > I would like to ask whether it is possible to add python regex to the VIM > search in a future VIM release? > > p.e. > We could use a `P` or something like that in a

Re: 'syntax hi [...] start=[...] stop=[...]' has no effect

2016-05-02 Thread Nikolay Aleksandrovich Pavlov
2016-05-03 2:52 GMT+03:00 mwnx : > Hello Vim users, > > I'm trying to get some fancy 24-bit color going with the official > vim using escape codes such as "[38;2;${r};${g};${b}m", which > work on some terminals. > > Now, according to Vim's documentation, it's possible to highlight >

Re: Confirm dialog called by python vim.command fails

2016-05-03 Thread Nikolay Aleksandrovich Pavlov
2016-05-03 12:58 GMT+03:00 Ni Va : > Hi, > > > Passing joined python list to the confirm dialog function through vim.command > feature in python code, I encounter these errors : > > Error detected while processing : > Traceback (most recent call last): > File "", line 1, in

Re: Updating argument

2016-05-06 Thread Nikolay Aleksandrovich Pavlov
2016-05-04 17:26 GMT+03:00 Paul : > On Tuesday, 03 May, 2016 at 17:06:45 BST, Ben Fritz wrote: >> >> On Tuesday, May 3, 2016 at 4:27:40 AM UTC-5, Jan wrote: >>> >>> I start vim with "vim file1 file2". :args shows I'm on file1. I change >>> buffer with :bnext. :args shows

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

2016-04-15 Thread Nikolay Aleksandrovich Pavlov
About this I think the following: 1. If implemented, PCRE syntax support should be like current engine select option support, though without possibility to use `set re` to switch to PCRE globally. I.e. `\%#=P` as the first charaters in pattern will enable PCRE syntax and select libpcre (or

Re: question on VIM syntax: highlight an entire paragraph

2016-04-16 Thread Nikolay Aleksandrovich Pavlov
2016-04-17 2:05 GMT+03:00 Jose Caballero : > > > > > > Is it possible to highlight an entire paragraph based on a single line > content? > > I would be interested in changing the color of an entire block of > > configuration lines if one of those lines in the block is

Re: question on VIM syntax: highlight an entire paragraph

2016-04-16 Thread Nikolay Aleksandrovich Pavlov
2016-04-16 19:52 GMT+03:00 Jose Caballero : > Hello, > > I have the feeling I asked this same question about a year ago. If > that is the case, then I truly apologize. I know, and understand, that > asking twice the same thing in a mailing list is close to a deadly > sin.

Re: question on VIM syntax: highlight an entire paragraph

2016-04-17 Thread Nikolay Aleksandrovich Pavlov
2016-04-17 20:19 GMT+03:00 Jose Caballero : >> >> " Need average length of such enabled section in place of 50 >> syntax sync minlines=50 >> syntax match PreProc /\%(\%^\|^$\n\)\@2<=\%(.\+\n\)*enabled = >> False\n\%(.\+\%(\n\|\%$\)\)*\%(\n\|\%$\)\@1=/ >> > > I

Re: question on VIM syntax: highlight an entire paragraph

2016-04-17 Thread Nikolay Aleksandrovich Pavlov
2016-04-17 17:52 GMT+03:00 porphyry5 : > On Saturday, April 16, 2016 at 3:48:52 PM UTC-7, Jose Caballero wrote: >> Is it possible to highlight an entire paragraph based on a single line >> content? >> I would be interested in changing the color of an entire block of >>

Re: question on VIM syntax: highlight an entire paragraph

2016-04-17 Thread Nikolay Aleksandrovich Pavlov
2016-04-18 0:11 GMT+03:00 Tom M <7to...@gmail.com>: > On Sunday, April 17, 2016 at 4:34:04 PM UTC, ZyX wrote: >> 2016-04-17 17:52 GMT+03:00 porphyry5 wrote: >> > On Saturday, April 16, 2016 at 3:48:52 PM UTC-7, Jose Caballero wrote: >> >> Is it possible to highlight an entire paragraph based on a

Re: Make auto-completion insert multi-line text at one selection

2016-05-08 Thread Nikolay Aleksandrovich Pavlov
2016-05-08 16:39 GMT+03:00 Jacky Liu : > It seems the auto-completion feature does not allow multi-line text to be > inserted at this point: > > function! g:MultiLineCompletion(findstart, basetext) > if a:findstart == 1 >

Re: vim doesn't read ~/.vim

2016-05-09 Thread Nikolay Aleksandrovich Pavlov
2016-05-09 19:52 GMT+03:00 sinbad : > vim is not reading the scripts present in ~/.vim folder. It is not supposed to read them. Automatically read are scripts in ~/.vim/plugin assuming you have not disabled this in one way or the other. In any case you are missing

Re: Channel commands: special characters, quotes and escaping

2016-05-25 Thread Nikolay Aleksandrovich Pavlov
2016-05-25 14:19 GMT+03:00 'Jan Bundesmann' via vim_use : >> I think this should also work: >> >> ["ex", 'call feedkeys("ggOHello, world!\\e")'] > Nope, it does not. Channel log says: > 82.925983 RECV on 0: '["ex", 'call feedkeys("ggOHello, world!\\e")']' > 82.926009

Re: vim function argument

2016-07-14 Thread Nikolay Aleksandrovich Pavlov
2016-07-14 13:06 GMT+03:00 Yang Luo : > > I complete the function as follow, now I want to add radix option, but I > don't know how to get width. Can you help me complement it > > function InsertNumber(start, end,...) " > step,is_column_first_0_padding,radix(b,d,o,x) >

Re: Question born from pure curiosity...

2016-07-31 Thread Nikolay Aleksandrovich Pavlov
2016-07-31 16:00 GMT+03:00 Nikolay Aleksandrovich Pavlov <zyx@gmail.com>: > 2016-07-31 10:31 GMT+03:00 <meino.cra...@gmx.de>: >> Hi, >> >> this NOT meant as implicit or explicit critism, complain >> or what else... >> >> Its just interes

Re: Question born from pure curiosity...

2016-07-31 Thread Nikolay Aleksandrovich Pavlov
2016-07-31 10:31 GMT+03:00 : > Hi, > > this NOT meant as implicit or explicit critism, complain > or what else... > > Its just interest in vim and driven by curiosity... :) > > To set an option or feature inside vim one do > > : set = > > But why it is > > :colorscheme

Re: how to map the n to nzz just in the jump in search result ?

2016-07-17 Thread Nikolay Aleksandrovich Pavlov
2016-07-17 16:54 GMT+03:00 Bee : > On Sunday, July 17, 2016 at 5:03:00 AM UTC-7, Tim Chase wrote: >> On 2016-07-16 23:56, Arun wrote: >> > On Sat, Jul 16, 2016 at 4:52 AM, Tim Chase >> > > :nnoremap n nzz >> > >> > As it appears that the intent here is to re-center the

Re: how to map the n to nzz just in the jump in search result ?

2016-07-17 Thread Nikolay Aleksandrovich Pavlov
2016-07-17 18:55 GMT+03:00 Bee : > On Sunday, July 17, 2016 at 7:28:48 AM UTC-7, ZyX wrote: >> 2016-07-17 16:54 GMT+03:00 Bee : >> > On Sunday, July 17, 2016 at 5:03:00 AM UTC-7, Tim Chase wrote: >> >> On 2016-07-16 23:56, Arun wrote: >> >> > On Sat, Jul

Re: Wrong vim color syntax

2016-07-15 Thread Nikolay Aleksandrovich Pavlov
2016-07-14 23:24 GMT+03:00 Richard Mitchell : > On Thursday, July 14, 2016 at 11:03:47 AM UTC-4, Willem D'Haese wrote: >> On Thursday, 7 July 2016 07:20:22 UTC+2, Christian Brabandt wrote: >> > Am 2016-07-06 22:18, schrieb Willem D'Haese: >> > > Hello, >> > > >> > > There

Re: vim: keep undo when moving a file?

2016-07-06 Thread Nikolay Aleksandrovich Pavlov
2016-07-05 17:29 GMT+03:00 ping song : > I have a file that I keep using for quite a long while, it's convenient to > keep the editing history forever, so if something gone wrong I can always > undo back and locate the issue. > > today I moved the file to another folder

Re: VimScript tips needed

2016-08-08 Thread Nikolay Aleksandrovich Pavlov
2016-08-08 17:01 GMT+03:00 Tumbler Terrall : > >> if ( line ) { >> if ( line =~ a:pattern ) { >> # do something >> } >> else { >> # do something else >> } >> } >> } >> endfun >> >> FindPattern( '=>\\s?{' ) > > > I

Re: VimScript tips needed

2016-08-08 Thread Nikolay Aleksandrovich Pavlov
2016-08-08 20:44 GMT+03:00 Arun : > On Mon, Aug 8, 2016 at 12:11 AM, Marc Weber wrote: >> >> :h search() -> there is an option to not change cursor position or such >> is an option as well >> > > Just to add to the above point, to check if the pattern is in

Re: VimScript tips needed

2016-08-08 Thread Nikolay Aleksandrovich Pavlov
2016-08-09 3:40 GMT+03:00 Arun <aema...@gmail.com>: > On Mon, Aug 8, 2016 at 11:51 AM, Nikolay Aleksandrovich Pavlov > <zyx@gmail.com> wrote: >> >> 2016-08-08 20:44 GMT+03:00 Arun <aema...@gmail.com>: >> > On Mon, Aug 8, 2016 at 12:11 AM, Marc Webe

Re: use cases for ?

2016-08-17 Thread Nikolay Aleksandrovich Pavlov
2016-08-17 11:10 GMT+03:00 Xavier Noria : > I was reading :h key-notation and saw which is meant to be a portable > newline. > > When is helpful? Should portable map commands use instead of > for example? It is for help files only. `` in rhs of the mapping does exactly the

Re: Python 2/3 scripting in vimscript

2017-02-07 Thread Nikolay Aleksandrovich Pavlov
2017-02-07 17:27 GMT+03:00 Jonathan Crall : > I've recently made the jump to python3 and I went to recompile vim with > +python3 instead of +python. When I did this I noticed that all my python > blocks in my .vimrc were failing. You can compile with both +python/dyn and

Re: How to open another file and go to a search pattern

2017-01-27 Thread Nikolay Aleksandrovich Pavlov
thought of writing a mail. Will correct it now. > > On Fri, Jan 27, 2017 at 02:13:24PM +0300, Nikolay Aleksandrovich Pavlov wrote: >> > function! GoToFile() >> > let line = getline(".") >> > let searchpat = split(line,":")[1] >> &

Re: GNU screen hardstatus line

2017-01-25 Thread Nikolay Aleksandrovich Pavlov
2017-01-25 19:12 GMT+03:00 Allan : > Hi > > Is there a way to note down the starting time or the duration of the current > screen session? I always resume after a long time after and feel it would be > helpful to know when the screen session was started. `ps -p {process id}

Re: Powerline without commandline?

2017-01-21 Thread Nikolay Aleksandrovich Pavlov
2017-01-22 3:09 GMT+03:00 Benny Powers : > Hello, > > I'm trying to replicate the screenshots on > https://github.com/powerline/powerline, meaning a single powerline at the > bottom of the vim screen. What I get is a powerline, followed by the standard > vim commandline

Re: How to open another file and go to a search pattern

2017-01-27 Thread Nikolay Aleksandrovich Pavlov
2017-01-27 5:46 GMT+03:00 Mayuresh : > I have a requirement where the cursor is on following line: > > SomeFileName : Some Multiple Words of Search Pattern > > I want to define a hot key (Say ) to open SomeFileName and go to and > highlight the whole pattern "Some Multiple Words

Re: syntax question.

2017-02-22 Thread Nikolay Aleksandrovich Pavlov
2017-02-22 23:10 GMT+03:00 sinbad : > How does vim syntax formatting works? for instance when i type ':' the whole > line gets left justified to the start of the line, though this action makes > sense for c-coding, it also happens for other file types. I want to disable

  1   2   3   >