Re: Questions about mapping information

2018-03-21 Thread Nikolay Aleksandrovich Pavlov
2018-03-21 10:34 GMT+03:00 Lifepillar : > I am trying to debug an issue with my plugin (µcomplete) and auto-pairs, > and I have a couple of questions about the way Vim displays information > about mappings. > > I have these definitions in my vimrc: > > imap MyCR

Re: Prevent the use of italic

2018-03-02 Thread Nikolay Aleksandrovich Pavlov
2018-03-02 19:06 GMT+03:00 Oliver Knodel : > Am Freitag, 2. März 2018 08:37:21 UTC+1 schrieb Anton Shepelev: >> Hello, all >> >> I am using GVim with a font that has no italic sub- >> set. When I edit markdown (.md) files, however, Vim >> tries to render *emphasized*

Re: making custom key names for mappings

2018-02-26 Thread Nikolay Aleksandrovich Pavlov
2018-02-26 4:20 GMT+03:00 Renato Fabbri : > Em sexta-feira, 23 de fevereiro de 2018 15:51:35 UTC-3, ZyX escreveu: >> 2018-02-23 18:21 GMT+03:00 Renato Fabbri: >> > Em quinta-feira, 22 de fevereiro de 2018 22:05:29 UTC-3, ZyX escreveu: >> >> 2018-02-23 1:43 GMT+03:00

Re: making custom key names for mappings

2018-02-23 Thread Nikolay Aleksandrovich Pavlov
2018-02-23 18:21 GMT+03:00 Renato Fabbri : > Em quinta-feira, 22 de fevereiro de 2018 22:05:29 UTC-3, ZyX escreveu: >> 2018-02-23 1:43 GMT+03:00 Renato Fabbri: >> > Well, from your comments, i put a: >> > >> > let g:aall = mapleader >> > " let mapleader = '' >> > if

Re: making custom key names for mappings

2018-02-22 Thread Nikolay Aleksandrovich Pavlov
2018-02-23 1:43 GMT+03:00 Renato Fabbri : > Well, from your comments, i put a: > > let g:aall = mapleader > " let mapleader = '' > if exists("g:aa_leader") > let mapleader = g:aa_leader > el > let mapleader = 'anything' > en > > > before the mappings, and a: > > let

Re: making custom key names for mappings

2018-02-22 Thread Nikolay Aleksandrovich Pavlov
2018-02-22 18:58 GMT+03:00 Renato Fabbri : > leader and localleader are the standard, so one might > have conflicts between scripts because > all of them use leader and localleader. > > how would you define, say > , which you set to the > leader by default, > but can be

Re: CTRL-[ == ALT == ESC to Vim? (or how to make them different)

2018-02-21 Thread Nikolay Aleksandrovich Pavlov
2018-02-21 14:51 GMT+03:00 Renato Fabbri : > That is what I get when typing with > in insert mode. > > > ((( > > " C-V C-[ > " C-V A-x > x > > " C-V > echo " " == " " == " " > echo ' ' == ' ' == ' ' > ))) > where this strange symbol appears as ^[ here, > and x seems to

Re: vimdiff - how to jump to next difference in long line - shortcut ]c does not work

2018-02-21 Thread Nikolay Aleksandrovich Pavlov
2018-02-21 12:43 GMT+03:00 Igor Forca : > @ZyX, I did: > 1. Start-up Vim in clean: > gvim -u NONE -N > > 2. Open the first file: > :e file1.txt > > 3. Diff mode second file: > :vert diffsp file2.txt > > 4. Do the mapping you suggested: > nnoremap a ]c > > 5. Press the a key and

Re: vimdiff - how to jump to next difference in long line - shortcut ]c does not work

2018-02-21 Thread Nikolay Aleksandrovich Pavlov
2018-02-21 11:45 GMT+03:00 Igor Forca : > Hi, > I have files with long lines and when doing diff it is time consuming to move > to the diff change (marked red in vimdiff). > > I have searched the help: > :h jumpto-diffs > > With explanation that: > ]c > should jump to the next

Re: build dict key:val from map list and substitute

2018-02-20 Thread Nikolay Aleksandrovich Pavlov
2018-02-20 22:52 GMT+03:00 Ni Va : > Hi, > > map(copy(totaltimelist)[0:10], 'substitute(v:val, linepat, "\\1 : \\2", "")') > > Two values as backward ref are retrieved from a mapped list but I would like > to use : > - first value \\1 as dict.key > - second value \\2 is added

Re: substitue( optimize

2018-02-14 Thread Nikolay Aleksandrovich Pavlov
translating. > > 2018-02-14 9:20 GMT+01:00 Nikolay Aleksandrovich Pavlov <zyx@gmail.com>: >> >> 2018-02-14 10:41 GMT+03:00 Ni Va <nivaem...@gmail.com>: >> > Le mardi 13 février 2018 14:30:38 UTC+1, Luc Hermitte a écrit : >> >> Hello Ni

Re: substitue( optimize

2018-02-14 Thread Nikolay Aleksandrovich Pavlov
2018-02-14 10:41 GMT+03:00 Ni Va : > Le mardi 13 février 2018 14:30:38 UTC+1, Luc Hermitte a écrit : >> Hello Nicholas, >> >> > After reading a file and getting 1 million lines' List, I need to >> > make similar substitutions over matched lines ~500 times with this >> > func:

Re: Glob filename containing { (left brace) in Windows

2018-02-11 Thread Nikolay Aleksandrovich Pavlov
2018-02-11 21:44 GMT+03:00 Lifepillar : > Is there any way for glob() to expand a filename containing > { (left brace) in Windows *without* removing { from isfname? > > For example, if the current dir has a file called '{foo', then > > :echo glob('\{*') > > correctly

Re: Writing tests for completion

2018-02-05 Thread Nikolay Aleksandrovich Pavlov
2018-02-05 23:31 GMT+03:00 Lifepillar : > I would like to automate the testing of my completion plugin, > so I have started to write functions like this (I am using > a test framework like the one in Vim): > > fun! Test_buffer_keyword_completion() > new > set

Re: Print to PDF (and open in browser)

2018-01-27 Thread Nikolay Aleksandrovich Pavlov
2018-01-27 13:29 GMT+03:00 : > Hello (sorry for my poor English), > > I need to send a lot of emails (50-70) from lists everyday and I had found a > good way to save my time pasting the list to Writer, exporting it to pdf, > opening pdf in chromium and going directly to

Re: :terminal mode ques

2017-12-29 Thread Nikolay Aleksandrovich Pavlov
2017-12-29 17:30 GMT+03:00 M Kelly : >> > Off course you can. Type CTRL+\ CTRL+N and the terminal buffer will become >> > a regular buffer without ending the job. Then you can yank, mark or do >> > whatever you need. >> > >> > >> > To go back to Terminal mode just type A.

Re: location of vim rc files and directories. Making them relocatable.

2017-11-25 Thread Nikolay Aleksandrovich Pavlov
2017-11-25 19:17 GMT+03:00 Jose Caballero : > Hi, > > this is a quick question about how to modify my .vimrc and all my > plugins so I can copy all of them to different hosts (under different > usernames) and still work. > > I have all of them (vimrc and all plugin

Re: python 3

2017-11-25 Thread Nikolay Aleksandrovich Pavlov
2017-11-25 3:09 GMT+03:00 Shidong Wang : > no need to install python3.5 , just set the value of pythonthreedll. It is not going to work properly if Vim was compiled with python 3.5. Python version Vim was compiled with and Python version actually used must match, Python’s n.i

Re: Vim surprisingly slow?

2017-11-16 Thread Nikolay Aleksandrovich Pavlov
2017-11-16 16:35 GMT+03:00 Tim Chase : > On 2017-11-16 08:03, Christian Brabandt wrote: >> On the other hand, we can not fsync() at the end of the `:g` >> command, because at that time, we would not have a filehandle to >> fsync(). > > I suppose one could gather the

Re: Vim surprisingly slow?

2017-11-15 Thread Nikolay Aleksandrovich Pavlov
2017-11-16 8:43 GMT+03:00 Dominique Pellé : > Dominique Pellé wrote: > >> Christian Brabandt wrote: >> >>> On Mi, 15 Nov 2017, Dominique Pellé wrote: >>> >>> > As highlighted in red, notice that we only write 179,281

Re: Vim surprisingly slow?

2017-11-15 Thread Nikolay Aleksandrovich Pavlov
2017-11-15 16:57 GMT+03:00 Tim Chase : > On 2017-11-15 08:25, Christian Brabandt wrote: >> On Mi, 15 Nov 2017, Dominique Pellé wrote: >> > As highlighted in red, notice that we only write 179,281 bytes to >> > file "20150425.txt" but we open/write/close/fsync 5004 times. >>

Re: , , , , key notation in Vim documentation

2017-11-10 Thread Nikolay Aleksandrovich Pavlov
2017-11-10 19:31 GMT+03:00 'Andy Wokula' via vim_use : > Am 10.11.2017 um 13:55 schrieb Renato Fabbri: >> >> I did not find explicitly in the manual, >> e.g. in :h key-notation, so... >> >> does anyone know if there is any difference in: >> , , >> for Vim? > > > It's all

Re: How to handle non-ascii characters?

2017-10-21 Thread Nikolay Aleksandrovich Pavlov
2017-10-21 19:39 GMT+03:00 : > On Sat, Oct 21, 2017 at 08:43:23AM -0700, Barry Gold wrote: >> Background: I write documents in MS Word, but my target format is HTML. >> After >> I do a Save as "Web Page (filtered)", I can use global replaces to get rid of >> most of the

Small puzzler

2017-10-02 Thread Nikolay Aleksandrovich Pavlov
Hello, I have a small puzzler for you: describe all messages which the below code may possibly yield depending on what you substitute for `^` and `^^`, assuming that first may only be either zero or one and second may only be a dictionary {}, dictionary {'a': 1} or number 2. (Preferably do this

Re: Lost in formatoptions …

2017-10-01 Thread Nikolay Aleksandrovich Pavlov
2017-10-01 21:43 GMT+03:00 Nikolay Aleksandrovich Pavlov <zyx@gmail.com>: > 2017-10-01 14:01 GMT+03:00 Matěj Cepl <mc...@cepl.eu>: >> Hi, >> >> trying to use vim for writing long prose and I am playing with >> the optimal value for formatoptions. Curren

Re: Lost in formatoptions …

2017-10-01 Thread Nikolay Aleksandrovich Pavlov
2017-10-01 14:01 GMT+03:00 Matěj Cepl : > Hi, > > trying to use vim for writing long prose and I am playing with > the optimal value for formatoptions. Currently I have > > set formatoptions=1tcroqlav > > but I think I have something wrong. Somehow 'a' is too active > to me

Re: How to scroll back in Vim's built-in terminal?

2017-10-01 Thread Nikolay Aleksandrovich Pavlov
2017-10-01 21:28 GMT+03:00 Tony Mechelynck : > On Sun, Oct 1, 2017 at 7:24 PM, Redesorr wrote: >> Hello, >> I am using Vim's built-in ":terminal", it works well. >> >> However, I found it is impossible to scroll back in this terminal. >> >> I have

Re: libvterm color palette

2017-09-24 Thread Nikolay Aleksandrovich Pavlov
2017-09-24 0:36 GMT+03:00 Bram Moolenaar : > > Marcin Szamotulski wrote: > >> Is there a way to redefine color palette used by the `:terminal` >> (libvterm)? > > No, but you can use RGB colors ('termguicolors'). I remember this issue popping up in Neovim bug tracker and it was

Re: new tool lib conflict with gvim lib

2017-09-18 Thread Nikolay Aleksandrovich Pavlov
2017-09-18 2:50 GMT+03:00 Sand Glass : > I install a new tool, and I export the LD lib. > > export > LD_LIBRARY_PATH="/opt/Xilinx/Vivado/2016.3/lib/lnx64.o:"$LD_LIBRARY_PATH > > > But my gvim cannot launch. > > /usr/bin/gvim:

Re: need help with regex and matchlist()

2017-09-02 Thread Nikolay Aleksandrovich Pavlov
2017-09-02 23:06 GMT+03:00 Lifepillar : > On 02/09/2017 19:46, Jose Caballero wrote: >> >> Hi, >> >> As this is my first time I try to write a vimscript function that uses >> regular expressions, I am a little bit of lost. Not sure which >> built-in function is the most

Re: autocmd! followed by

2017-08-20 Thread Nikolay Aleksandrovich Pavlov
2017-08-20 21:53 GMT+03:00 'Andy Wokula' via vim_use : > Am 19.08.2017 um 08:17 schrieb Lifepillar: >> >> It seems impossible to have autocmd! followed by another command, i.e.: >> >> autocmd! some_group | >> >> According to `:help autocmd`, autocmd may be followed by

Re: source or load an autoload script

2017-08-18 Thread Nikolay Aleksandrovich Pavlov
2017-08-18 11:13 GMT+03:00 Ni Va : > Le jeudi 17 août 2017 22:55:13 UTC+2, Christian Brabandt a écrit : >> On Do, 17 Aug 2017, Ni Va wrote: >> >> > Hi, >> > >> > >> > I'am writing a plugin with autoload part: >> > myplugin\autoload\myplugin.vim >> > >> > >> > A Command mapped

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

2017-08-17 Thread Nikolay Aleksandrovich Pavlov
2017-08-17 22:04 GMT+03:00 Jose Caballero : > 2017-08-17 14:51 GMT-04:00 Gary Johnson : >> On 2017-08-17, Jose Caballero wrote: >> >>> In both cases, after trying a tag, :ts gives me the same, similar to >>> >>># pri kind tag file

Re: "real" shell in window?

2017-08-16 Thread Nikolay Aleksandrovich Pavlov
2017-08-16 5:01 GMT+03:00 Cesar Romani <cesar.rom...@gmail.com>: > On 11/08/2017 01:12 a.m., Nikolay Aleksandrovich Pavlov wrote: >> 2017-08-09 23:25 GMT+03:00 ANDY KENNEDY<andy.kenn...@adtran.com>: >>> All, >>> >>> First, thanks Christian for addin

Re: Silently edit a buffer

2017-08-15 Thread Nikolay Aleksandrovich Pavlov
2017-08-15 21:56 GMT+03:00 Dmitry Zotikov : > Dear all, > > what would be the best way to silently edit a buffer? In particular, I want > to > be able to write the content of a variable to it, as well as to delete all > of > its content. > > The story goes, I'm writing a plugin

Re: A very naive question: any doc (book, web page, ...) to learn step by step how to custom configure vim?

2017-08-11 Thread Nikolay Aleksandrovich Pavlov
2017-08-11 21:36 GMT+03:00 Jose Caballero : > I reply to myself so I don't pick any particular answer. > Thanks a lot for your comments. I will have a look to those books. I > have SAFARI account, so I can check them for free :) > As I said, I am not that much concerned

Re: "real" shell in window?

2017-08-11 Thread Nikolay Aleksandrovich Pavlov
2017-08-09 23:25 GMT+03:00 ANDY KENNEDY : > All, > > First, thanks Christian for adding me back to the list ;). > > Is there a way in Vim to open a :vs, then launch some sort of shell in > that window? > > I found a couple of different plugins that appear to be loosely

Re: Regex arithmetic

2017-08-05 Thread Nikolay Aleksandrovich Pavlov
2017-08-05 23:27 GMT+03:00 porphyry5 : > On Friday, August 4, 2017 at 10:03:16 AM UTC-7, porphyry5 wrote: >> :h submatch( includes >> Example: >> :s/\d\+/\=submatch(0) + 1/ >> This finds the first number in the line and adds one to it. >> >> Needing

Re: Regex arithmetic

2017-08-04 Thread Nikolay Aleksandrovich Pavlov
2017-08-04 20:03 GMT+03:00 Graham Lawrence : > :h submatch( includes > Example: > :s/\d\+/\=submatch(0) + 1/ > This finds the first number in the line and adds one to it. > > Needing to increment several fields consisting of underscore and a single >

Re: Idea and prototype: Vim independent event based communication & completions?

2017-08-03 Thread Nikolay Aleksandrovich Pavlov
2017-08-03 0:23 GMT+03:00 Marc Weber : > Vim8 / NeoVim / maybe Emacs and more > languages: VimL/Python (maybe lua)/ others > > But common features such as > - completion > - templates > - describe thing at cursor > - goto thing at cursor > - show errors > - run

Re: Why the bufnew not work here?

2017-07-29 Thread Nikolay Aleksandrovich Pavlov
2017-07-29 18:45 GMT+03:00 Zhe Lee : > I use > au BufNewFile *.py 0r headerfile/python.header > > in my vimrc file . I want to auto add snippet when the python file is create. > But it doesn't work, when I use the "gvim newpy.py" command in command > prompt. How to fix

Re: Function xxxx already exists, add ! to replace it

2017-07-23 Thread Nikolay Aleksandrovich Pavlov
2017-07-23 11:49 GMT+03:00 Length Power : > here is my .vimrc > > 1 execute pathogen#infect() > 2 execute pathogen#helptags() > 3 syntax on > 4 filetype plugin indent on > 5 > 6 let g:pydiction_location = > '/home/guest/.vim/bundle/dict/pydiction/complete-dict' >

Re: Really simple abbreviation I can't do

2017-07-14 Thread Nikolay Aleksandrovich Pavlov
2017-07-14 23:16 GMT+03:00 : >> Use mappings as suggested here: >> > > Thanks for everyone who has responded. I'm still curious about the extra > space inserted by the :ab, when exactly the same sequence, (as far as I > can see) does not generate it. There is no “extra space”

Re: Really simple abbreviation I can't do

2017-07-13 Thread Nikolay Aleksandrovich Pavlov
2017-07-14 1:03 GMT+03:00 Nikolay Aleksandrovich Pavlov <zyx@gmail.com>: > 2017-07-14 0:45 GMT+03:00 Tony Mechelynck <antoine.mechely...@gmail.com>: >> On Thu, Jul 13, 2017 at 9:55 PM, <aroc...@vex.net> wrote: >>> >>> I hesitate to ask th

Re: Really simple abbreviation I can't do

2017-07-13 Thread Nikolay Aleksandrovich Pavlov
2017-07-14 0:45 GMT+03:00 Tony Mechelynck : > On Thu, Jul 13, 2017 at 9:55 PM, wrote: >> >> I hesitate to ask this question, since it appears to be so simple, but the >> answer ought to be useful to a lot of people. >> >> There are many constructs

Re: Really simple abbreviation I can't do

2017-07-13 Thread Nikolay Aleksandrovich Pavlov
2017-07-13 22:55 GMT+03:00 : > > I hesitate to ask this question, since it appears to be so simple, but the > answer ought to be useful to a lot of people. > > There are many constructs in most programming languages which involve > paired characters - {} () [] particularly. It

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

2017-07-05 Thread Nikolay Aleksandrovich Pavlov
2017-07-05 10:49 GMT+03:00 Christian Brabandt : > > On Mi, 05 Jul 2017, Igor Forca wrote: > >> Hi, >> I have a log file with several text OK and error messages. >> >> OK message is always: AAA000A >> >> Error message starts with AAA, then three numbers (but not three zeros) and

Re: vi.bat helper

2017-06-29 Thread Nikolay Aleksandrovich Pavlov
2017-06-30 0:16 GMT+03:00 Andrew Pennebaker : > The Vim installer for Windows helps to add "vim" to the command PATH by > adding a vim.bat file in C:\Windows. Could the installer also add a vi.bat > file, so that developers can invoke Vim by the even shorter command

Re: save and load a micro

2017-06-12 Thread Nikolay Aleksandrovich Pavlov
2017-06-12 8:05 GMT+03:00 Ben Fritz : > On Sunday, June 11, 2017 at 5:26:43 AM UTC-5, Sand Glass wrote: >> And record a macro in register a. But the macro not completely right like >> ^Q(it's into block coloumn mode). I want to fix my macro and save it to a >> file, next

Re: mapping list with : v:val and index of v:val

2017-06-11 Thread Nikolay Aleksandrovich Pavlov
2017-06-11 18:36 GMT+03:00 Ni Va : > Hi, > > Trying this > > > let file = readfile(expand("%:p"),'b') > let g:file=map(copy(file),'v:val.":".index(copy(file), v:val)') > > returns -1 for each v:val of list 'file' out of 0, 1 , 2 etc.. There is `v:key`, do not use `index()`

Re: meaning of \= in syntax scripts

2017-06-01 Thread Nikolay Aleksandrovich Pavlov
2017-06-01 21:08 GMT+03:00 Erhy : > Hello, I try to update a syntax script > e.g. > syn match scilabArithmetic "\.\=[*/\\]\.\=" > > Please tell me about\= :h /\= > > Thank you > Erhy > > -- > -- > You received this message from the "vim_use" maillist. >

Re: Insert lines at begin of file with writefile

2017-05-30 Thread Nikolay Aleksandrovich Pavlov
2017-05-30 14:21 GMT+03:00 Ni Va : > Le mardi 30 mai 2017 13:03:38 UTC+2, ZyX a écrit : >> 2017-05-30 11:21 GMT+03:00 Ni Va : >> > Hi, >> > >> > >> > Is that a way to tell writefile() func to append lines at the beginning of >> > file? >> >> Just read the

Re: Insert lines at begin of file with writefile

2017-05-30 Thread Nikolay Aleksandrovich Pavlov
2017-05-30 11:21 GMT+03:00 Ni Va : > Hi, > > > Is that a way to tell writefile() func to append lines at the beginning of > file? Just read the whole file, prepend and then write the whole file. In any case I do not know a way to actually prepend bytes to the file: if you

Re: Bug/non-determinism in output of maparg() and map commands

2017-05-29 Thread Nikolay Aleksandrovich Pavlov
2017-05-29 22:17 GMT+03:00 Brett Stahlman <brettstahl...@gmail.com>: > On Mon, May 29, 2017 at 3:19 AM, Nikolay Aleksandrovich Pavlov > <zyx@gmail.com> wrote: > [...] >>>> >>>> This is not actually different from the current situation: was n

Re: E114: Missing quote in gvim.exe', '-c'

2017-05-29 Thread Nikolay Aleksandrovich Pavlov
2017-05-28 23:10 GMT+03:00 Ni Va : > Le dimanche 28 mai 2017 21:49:03 UTC+2, Ni Va a écrit : >> Hi, >> >> An attempt to modify Make_mvc.mak with a gvim -c command and it fails : >> >> let makefile = globpath(expand('$tmp'.'/vim/src'),'Make_mvc.mak') >> call

Re: Bug/non-determinism in output of maparg() and map commands

2017-05-29 Thread Nikolay Aleksandrovich Pavlov
2017-05-29 4:25 GMT+03:00 Brett Stahlman <brettstahl...@gmail.com>: > On Sun, May 28, 2017 at 4:19 PM, Nikolay Aleksandrovich Pavlov > <zyx@gmail.com> wrote: > [...] >>>>>> >>>>>> And why do you think that “do not make plugins reinwent

Re: Bug/non-determinism in output of maparg() and map commands

2017-05-28 Thread Nikolay Aleksandrovich Pavlov
2017-05-28 23:16 GMT+03:00 Brett Stahlman <brettstahl...@gmail.com>: > On Sun, May 28, 2017 at 1:10 PM, Nikolay Aleksandrovich Pavlov > <zyx@gmail.com> wrote: > > [...] >>>> >>>> You may also ask Brett Stahlman whether my proposal is enough, it d

Re: Bug/non-determinism in output of maparg() and map commands

2017-05-28 Thread Nikolay Aleksandrovich Pavlov
2017-05-28 19:05 GMT+03:00 Brett Stahlman <brettstahl...@gmail.com>: > On Sun, May 28, 2017 at 6:50 AM, Nikolay Aleksandrovich Pavlov > <zyx@gmail.com> wrote: >> 2017-05-28 8:57 GMT+03:00 Bram Moolenaar <b...@moolenaar.net>: >>> >>> Nikol

Re: Bug/non-determinism in output of maparg() and map commands

2017-05-28 Thread Nikolay Aleksandrovich Pavlov
2017-05-28 8:57 GMT+03:00 Bram Moolenaar : > > Nikolay Pavlov wrote: > > [..] > >> >> Enable, disable, query, execute plus two callbacks. *Four* functions >> >> and two callbacks in place of just two simple functions, mostly using >> >> the functionality that is already there.

Re: Bug/non-determinism in output of maparg() and map commands

2017-05-27 Thread Nikolay Aleksandrovich Pavlov
2017-05-27 20:29 GMT+03:00 Brett Stahlman <brettstahl...@gmail.com>: > On Sat, May 27, 2017 at 11:51 AM, Nikolay Aleksandrovich Pavlov > <zyx@gmail.com> wrote: >> 2017-05-27 19:32 GMT+03:00 Brett Stahlman <brettstahl...@gmail.com>: >>> On Sat, May 27, 2

Re: Bug/non-determinism in output of maparg() and map commands

2017-05-27 Thread Nikolay Aleksandrovich Pavlov
2017-05-27 19:48 GMT+03:00 Bram Moolenaar <b...@moolenaar.net>: > > Nikolay Pavlov wrote: > >> 2017-05-27 18:02 GMT+03:00 Brett Stahlman <brettstahl...@gmail.com>: >> > On Sat, May 27, 2017 at 8:35 AM, Nikolay Aleksandrovich Pavlov >> > <zyx@gm

Re: Bug/non-determinism in output of maparg() and map commands

2017-05-27 Thread Nikolay Aleksandrovich Pavlov
2017-05-27 19:32 GMT+03:00 Brett Stahlman <brettstahl...@gmail.com>: > On Sat, May 27, 2017 at 10:39 AM, Nikolay Aleksandrovich Pavlov > <zyx@gmail.com> wrote: >> 2017-05-27 18:02 GMT+03:00 Brett Stahlman <brettstahl...@gmail.com>: >>> On Sat, May 27,

Re: Bug/non-determinism in output of maparg() and map commands

2017-05-27 Thread Nikolay Aleksandrovich Pavlov
2017-05-27 18:02 GMT+03:00 Brett Stahlman <brettstahl...@gmail.com>: > On Sat, May 27, 2017 at 8:35 AM, Nikolay Aleksandrovich Pavlov > <zyx@gmail.com> wrote: >> 2017-05-27 12:45 GMT+03:00 Bram Moolenaar <b...@moolenaar.net>: >>> >>> Nikolay P

Re: Bug/non-determinism in output of maparg() and map commands

2017-05-27 Thread Nikolay Aleksandrovich Pavlov
2017-05-27 12:45 GMT+03:00 Bram Moolenaar : > > Nikolay Pavlov wrote: > >> 2017-05-26 20:43 GMT+03:00 Bram Moolenaar : >> > >> > Brett Stahlman wrote: >> > >> >> >> On Tuesday, May 23, 2017 at 8:25:33 AM UTC-5, Brett Stahlman wrote: >> >> >> > On Tue, May

Re: Bug/non-determinism in output of maparg() and map commands

2017-05-26 Thread Nikolay Aleksandrovich Pavlov
2017-05-27 0:12 GMT+03:00 Nikolay Aleksandrovich Pavlov <zyx@gmail.com>: > 2017-05-26 20:43 GMT+03:00 Bram Moolenaar <b...@moolenaar.net>: >> >> Brett Stahlman wrote: >> >>> >> On Tuesday, May 23, 2017 at 8:25:33 AM UTC-5, Brett Stahlman wrote

Re: Bug/non-determinism in output of maparg() and map commands

2017-05-26 Thread Nikolay Aleksandrovich Pavlov
2017-05-26 20:43 GMT+03:00 Bram Moolenaar : > > Brett Stahlman wrote: > >> >> On Tuesday, May 23, 2017 at 8:25:33 AM UTC-5, Brett Stahlman wrote: >> >> > On Tue, May 23, 2017 at 4:35 AM, Bram Moolenaar >> >> > wrote: >> >> > > >> >> > > Brett Stahlman

Re: :right command on Chinese characters

2017-05-21 Thread Nikolay Aleksandrovich Pavlov
2017-05-21 14:54 GMT+03:00 Joey : > When I run :right command in gvim, it's ok, like this: > >彼外道常说自然,我说因缘。——楞严经 > > But if I open the txt file with Word, it's like this: > > 彼外道常说自然,我说因缘。——楞严 > 经 > > The last character is

Re: am getting a CRITICAL error using gvim and linux

2017-05-17 Thread Nikolay Aleksandrovich Pavlov
2017-05-18 8:04 GMT+03:00 Tony Mechelynck : > On Thu, May 18, 2017 at 5:35 AM, Charles E Campbell > wrote: >> >> Here it is: >> >> ** (gvim:62530): CRITICAL **: murrine_style_draw_box: assertion 'width >= >> -1' failed >> >> Suggestions

Re: Retrieve

2017-05-16 Thread Nikolay Aleksandrovich Pavlov
2017-05-16 14:44 GMT+03:00 Ni Va : > Le mardi 16 mai 2017 12:27:34 UTC+2, ZyX a écrit : >> 2017-05-16 11:38 GMT+03:00 Ni Va : >> > Hi, >> > >> > How to retrieve the result of this expression in a vimscript var >> > >> > let myvar =

Re: Retrieve

2017-05-16 Thread Nikolay Aleksandrovich Pavlov
2017-05-16 11:38 GMT+03:00 Ni Va : > Hi, > > How to retrieve the result of this expression in a vimscript var > > let myvar = executable(prevline.',.s/PATTERN//gn') > > this seems to don't work. > > thank you! I do not understand what “expression” you mean, but `executable`

Re: Please explain highlight groups User1 ... User9!!!

2017-05-10 Thread Nikolay Aleksandrovich Pavlov
2017-05-10 17:01 GMT+03:00 : > On Wednesday, May 10, 2017 at 9:37:41 AM UTC-4, Tony Mechelynck wrote: >> On Wed, May 10, 2017 at 6:09 AM, wrote: >> > On Tuesday, May 9, 2017 at 11:35:47 PM UTC-4, Tony Mechelynck wrote: >> >> On

Re: Swap directory changes when opening files under /media [Fedora]

2017-04-22 Thread Nikolay Aleksandrovich Pavlov
2017-04-21 13:16 GMT+03:00 Ian : > Perfect, thanks. Here's what I get: > > --- Auto-Commands --- > fedora BufReadPre > /media/* set directory=~/tmp,/var/tmp,/tmp > Last set from /etc/vimrc > /run/media/* > set directory=~/tmp,/var/tmp,/tmp >

Re: width of help text on a small device

2017-04-19 Thread Nikolay Aleksandrovich Pavlov
2017-04-19 13:28 GMT+03:00 Christian Brabandt : > On Di, 18 Apr 2017, tu...@posteo.de wrote: > >> on my 7" tablet (Android) I installed a chrooted Linux on which >> in turn I installed vim (*not* gvim. *not* neovim. "vim" != "gvim" != >> "neovim". >> The console version. The

Re: Vim Improvement suggester

2017-04-19 Thread Nikolay Aleksandrovich Pavlov
2017-04-18 17:28 GMT+03:00 Patrik Iselind : > Hi, > > I am interested in a way to be suggested what i can improve with my personal > usage of Vim commands. So i thought it would be useful if Vim could record > the commands i use somehow. Then once a month or something (cron

Re: width of help text on a small device

2017-04-18 Thread Nikolay Aleksandrovich Pavlov
2017-04-18 20:51 GMT+03:00 : > Hi, > > on my 7" tablet (Android) I installed a chrooted Linux on which > in turn I installed vim (*not* gvim. *not* neovim. "vim" != "gvim" != > "neovim". > The console version. The only one called simply "vim"). > > Unfortunately the tablet is

Re: execute sub command without moving cursor

2017-04-05 Thread Nikolay Aleksandrovich Pavlov
2017-04-05 22:21 GMT+03:00 Ni Va : > Hi, > > > I use this kind of command but it moves my cursor pos. > > > silent! exe '?^BEGIN?,/^END/s/^NETWORK.*$/\="NETWORK".s:inc()." \/\/In > ".s[0]." : ".s[1]/e' > > > Can I avoid to move cursor when I replace executing sub command ? >

Re: Word definition includes period?

2017-04-01 Thread Nikolay Aleksandrovich Pavlov
2017-04-02 3:17 GMT+03:00 Saurabh T : > Hi, > > > While using vim 7.4 on cygwin, I noticed that word characters include a > period, for example "cw" with cursor on the f of file.html attempts to > change the entire file.html rather than just file. I have LANG set to C and >

Re: encoding file

2017-03-12 Thread Nikolay Aleksandrovich Pavlov
2017-03-12 22:21 GMT+03:00 Ni Va : > Hi, > > I am rreading some windows help in french and got a little pb. > > Reading help of robocopy > > --- >ROBOCOPY :: Copie de fichiers robuste pour

Re: Ambiguity about what $ means?

2017-03-06 Thread Nikolay Aleksandrovich Pavlov
2017-03-06 23:09 GMT+03:00 Bram Moolenaar : > > Shawn Corey wrote: > >> On Mon, 6 Mar 2017 08:01:58 -0800 (PST) >> Ben Fritz wrote: >> >> > But, you can still match end-of-line in the middle of a pattern using >> > "\n". >> >> No, that matches a

Re: How to map to ?

2017-03-06 Thread Nikolay Aleksandrovich Pavlov
2017-03-06 9:34 GMT+03:00 'Suresh Govindachar' via vim_use : > Hello, > > How can be made to work as ? Following does not work for > me: > >nnoremap Why do you use ` > Asking because I want to

Re: autcommand problem.

2017-03-02 Thread Nikolay Aleksandrovich Pavlov
2017-03-02 10:07 GMT+03:00 sinbad : > why doesn't the following auto command work. If i run the same command > manually it works. > > au BufWritePost *.[ch] > \ if ( == 'c' || == 'h') > \ | silent call GenerategtagsFiles() > \ | silent

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

2017-03-02 Thread Nikolay Aleksandrovich Pavlov
2017-03-02 20:07 GMT+03:00 Barry Gold : > 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 >

Re: Reload ~/.vim/pythonx libraries without quitting vim?

2017-02-24 Thread Nikolay Aleksandrovich Pavlov
2017-02-24 15:35 GMT+03:00 BPJ : > Is there a way to reload libraries in ~/.vim/pythonx (after editing them) > without quitting/restarting vim? > > If there is it's probably in the help, but I usually can't find things there > without already knowing the tag I should look for...

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

Re: Buffer number explodes when :vimgrep is called.

2017-02-15 Thread Nikolay Aleksandrovich Pavlov
2017-02-15 3:00 GMT+03:00 : > Hello all, > > When I call :vimgrep, I'll usually search a directory of 600-1000 files. The > number of unlisted buffers explodes after the call (I assume because buffers > must be loaded into vim in order for the text to be

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: 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: 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 modify the trigger key in the snip mate?

2017-01-15 Thread Nikolay Aleksandrovich Pavlov
2017-01-15 17:32 GMT+03:00 Zhe Lee : > The mappings SnipMate uses can be customized with the |:map| commands. For > example, to change the key that triggers snippets and moves to the next > tab stop, > > > :imap snipMateNextOrTrigger > :smap

Re: Issue with using gvim system() and fzy

2017-01-08 Thread Nikolay Aleksandrovich Pavlov
2017-01-09 0:18 GMT+03:00 Gary Johnson : > On 2017-01-08, justrajdeep wrote: >> On Saturday, January 7, 2017 at 1:20:14 PM UTC-5, Gary Johnson wrote: >> > On 2017-01-07, Justin M. Keyes wrote: >> > >> > > On Jan 6, 2017 17:09, "justrajdeep" wrote: >> > >> > >> Having an

Re: What's the minimum version of GCC required to build the latest Vim? Are there any patches to allow one to build it with even older versions of GCC?

2017-01-08 Thread Nikolay Aleksandrovich Pavlov
2017-01-08 17:40 GMT+03:00 Brenton Horne : > Sorry, I just read about how it can't be in HTML. Here is the message > without HTML > > Hi, > > I maintain Vim packages in my Open Build Service home project, for > example here are the packaging files I use to build it for >

Re: How to use * to search the word with dash under cursor?

2017-01-07 Thread Nikolay Aleksandrovich Pavlov
2017-01-08 4:45 GMT+03:00 Zhe Lee : > > > for example the text is like this > ``` > a-b > b-c > a-b > > ``` > > > if the cursor is on the first line first column (on `a` now). And then I > press `*` I want to find the `a-b` but the vim just search `a` instead of > `a-b`,

Re: perl vs python bindings for vim and tab page object access

2017-01-05 Thread Nikolay Aleksandrovich Pavlov
2017-01-06 5:56 GMT+03:00 Arif Khokar : > [I sent this to the vim_dev list earlier, but didn't get a response] > > After looking through the documentation for if_perl and if_pyth, I noticed > that the python bindings had the ability to query and manipulate tab page >

Re: 'maxfuncdepth' ignored

2017-01-02 Thread Nikolay Aleksandrovich Pavlov
2017-01-02 23:36 GMT+03:00 Brett Stahlman : > On Monday, January 2, 2017 at 11:40:32 AM UTC-6, ZyX wrote: >> 2017-01-01 0:40 GMT+03:00 Brett Stahlman : >> > On Saturday, December 31, 2016 at 12:23:10 PM UTC-6, ZyX wrote: >> >> 2016-12-30 20:09

Re: 'maxfuncdepth' ignored

2017-01-02 Thread Nikolay Aleksandrovich Pavlov
2017-01-01 0:40 GMT+03:00 Brett Stahlman : > On Saturday, December 31, 2016 at 12:23:10 PM UTC-6, ZyX wrote: >> 2016-12-30 20:09 GMT+03:00 Brett Stahlman : >> > Consider the following recursive user function... >> > >> > fu! Fun(count) >> > if

Re: 'maxfuncdepth' ignored

2016-12-31 Thread Nikolay Aleksandrovich Pavlov
2016-12-30 20:09 GMT+03:00 Brett Stahlman : > Consider the following recursive user function... > > fu! Fun(count) > if a:count > 0 > call Fun(a:count - 1) > endif > endfu > > :h 'maxfuncdepth' describes the option's purpose as follows: > > Maximum depth of

Re: Inconsistent json_encode() behaviors regarding empty (sub)strings

2016-12-22 Thread Nikolay Aleksandrovich Pavlov
2016-12-22 9:20 GMT+03:00 Kay Zheng : > Hi folks, > > I was trying out the new channel APIs, and found a little glitch in > the built-in function json_encode(): > > call assert_equal('', 'a'[1:0]) " pass > call assert_equal('""', json_encode('')) "pass > call assert_equal('""',

Re: How to fold or hide the comment in vimrc file?

2016-12-16 Thread Nikolay Aleksandrovich Pavlov
2016-12-16 17:43 GMT+03:00 Gary Johnson <garyj...@spocom.com>: > On 2016-12-16, Nikolay Aleksandrovich Pavlov wrote: >> 2016-12-16 5:41 GMT+03:00 Zhe Lee >> > I want to fold or hide the comment in the vimrc file. >> > I Google it and find mainly the 2 solut

  1   2   3   >