balloons and changing workspace under linux

2020-04-14 Thread Charles E Campbell
Hello: I use balloons -- (see :he bexpr) -- but they persist when I change workspaces using ctrl-alt-arrow  (workspaces are done via Mate, yum -y groupinstall mate-desktop ). Having a balloon in an unrelated workspace is incorrect.  I suppose I could use FocusLost and force the issue, but it

Re: gx strange behavior

2020-04-06 Thread Charles E Campbell
Manfred Lotz wrote: On Mon, 6 Apr 2020 12:27:58 -0400 Charles E Campbell wrote: Manfred Lotz wrote: On Sun, 5 Apr 2020 11:52:42 -0400 Charles E Campbell wrote: Manfred Lotz wrote: Hi all, I have Fedora 31 and Fedora 32. Happens on both systems. I want to open an URL in my browser

Re: gx strange behavior

2020-04-06 Thread Charles E Campbell
Manfred Lotz wrote: On Sun, 5 Apr 2020 11:52:42 -0400 Charles E Campbell wrote: Manfred Lotz wrote: Hi all, I have Fedora 31 and Fedora 32. Happens on both systems. I want to open an URL in my browser and type `gx` when the cursor is over an URL in vim resp. gvim Doing this for example

Re: gx strange behavior

2020-04-05 Thread Charles E Campbell
Manfred Lotz wrote: Hi all, I have Fedora 31 and Fedora 32. Happens on both systems. I want to open an URL in my browser and type `gx` when the cursor is over an URL in vim resp. gvim Doing this for example in an markdown document it works fine for vim but nothing happens when doing the same

windows 10, cygwin, and compiling vim

2019-03-30 Thread Charles E Campbell
Hello: I've been working on getting a vim compiled under windows10+cygwin. Hasn't worked too well yet.  Anybody out there have some ideas on how to compile a runnable vim under windows10+cygwin? * configure --with-features=huge   That seems to work fine * cd src; make  (note that this is

Re: [vim/vim] Conceal for tex and saving folds (#4175)

2019-03-26 Thread Charles E Campbell
Hello: Your problem is that mkview/loadview do not handle filetype detection, nor do they handle syntax on.  See the help:  :help mkview  and search for "not perfect". So, modify your BufWinEnter handling autocmd: autocmd BufWinEnter * silent! loadview|filetype detect Hope that helps, Chip

windows 10, cygwin, and compiling vim

2019-03-11 Thread Charles E Campbell
Hello: I've been working on getting a vim compiled under windows10+cygwin. Hasn't worked too well yet. * configure --with-features=huge   That seems to work fine * cd src; make  (note that this is done under cygwin, so its cygwin's make and cygwin's gcc)   about 20 warnings: all saying

Re: [dr-chip-vim-scripts/StlShowFunc] POSIX shell functions support (#2)

2019-02-11 Thread Charles E Campbell
bam80 wrote: Fixes #1 * add POSIX-style shell functions definition support: func_name () { ... } * optimized function name search algorithm which runs /much/ faster * overall cleanup @ivanalejandro0

Re: How to debug a vim plugin?

2019-01-29 Thread Charles E Campbell
Tony Mechelynck wrote: On Mon, Dec 10, 2018 at 3:55 PM Peng Yu wrote: Hi, I am wondering how to debug a vim plugin (for example, the following one) in an efficient way. https://github.com/Clavelito/indent-sh.vim/blob/master/indent/sh.vim The main difficulty that I see is that a vim plugin

Re: lua

2018-08-23 Thread Charles E Campbell
rob wrote: I'm going to have to grok this. It will take a bit of time. Hello: Often one may use syntax-based folding, but it appears that syntax/lua.vim doesn't support any folding (ie. :set fdm=syntax). You might want to bring this up with lua's syntax maintainer (Marcus Aurelius Farias

Re: [vim/vim] TeX file syntax: recognize "align" as math environment (#3010)

2018-06-14 Thread Charles E Campbell
Andy Massimino wrote: Moved here: http://www.drchip.org/astronaut/vim/. Justification: Syntax/tex.vim should not support packages' macros, environments, etc.; I don't know about that.. but either way this PR would not be the right fix. Unfortunately, right now the user has no way of

Re: [vim/vim] Highlighting for tmap/tnoremap hasn't been added (#2995)

2018-06-09 Thread Charles E Campbell
K.Takata wrote: Cc: @cecamp Just FYI, there is a fork of the Vim script syntax file: https://github.com/vim-jp/syntax-vim-ex This is updated more frequently. There's a fork of the Vim script syntax file that's updated frequently; in fact, its the alpha/beta

Re: unable to build vim with gui

2018-03-15 Thread Charles E Campbell
Tony Mechelynck wrote: On Wed, Mar 14, 2018 at 3:03 PM, Lucien Gentis wrote: Hello, Maybe you already tried it, but did you try to use "gvim" command instead of "vim" command ? Mon cher Lucien: on Unix-like systems, and among others on every system where gvim can

unable to build vim with gui

2018-03-13 Thread Charles E Campbell
Hello: I used the following configuration command:    ./configure --with-features=huge --enable-gui=gtk2 --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-cscope The vim I ended up with did not have gui enabled, although I only see two lines associated with

Re: A syntax highlighting trivia: matching operators

2018-02-20 Thread Charles E Campbell
Lifepillar wrote: > Suppose that @, @@, and @@@ are three operators and that @ is not in > iskeyword. Besides, the operators may not necessarily be surrounded > by spaces or alphanumeric characters: for example, one may encounter > @( at the begin of the line (as in this line). > > How would you

Re: [netrw] How to use netrw#Call() to create custom mappings

2018-01-08 Thread Charles E Campbell
Pablo Giménez wrote: > Hello. > I want to customize some of the shortcuts in Netrw. > I have seen it provides a global variable which is a dictionary of key > mappings and function calls. > I paste here a snippet from the help: > Example: Clear netrw's marked file list via a mapping on gu > >

Re: [vim/vim] netrw 162m closes and deletes current window/buffer when opening directory (#2141)

2017-11-13 Thread Charles E Campbell
jim jammer wrote: > > How to replicate: > Open a file in vim, either command > |vim filename.ext| > or from vim > |:e filename.ext| > Open netrw explorer in vertical split > |:Vex| > Choose a directory and open it by pressing || > > your buffer containing filename.ext is automatically deleted and

Re: Automatically insert a special character at the beginning of a sentence

2017-10-05 Thread Charles E Campbell
Steve wrote: Le 05-10-2017, à 10:10:26 +0200, Tony Mechelynck a écrit : It's dangerous, because in French, the letter A (even at the start of a sentence) is often (more often than not, I guess) the uppercase counterpart of unaccented a — and in that case it must not get an accent. So if you

Re: [netrw] Netrw bugs on gvim for windows

2017-06-30 Thread Charles E Campbell
skywind3000 wrote: > Does anyone knows how to contact DrChip ? > His email is invalid now. > My email is and has been "valid". Did you happen to neglect to remove the NOSPAM embedded therein? Regards, Chip Campbell -- -- You received this message from the "vim_use" maillist. Do not top-post!

Re: looks like a bot or something is clobbering ZoomWin's ratings

2017-06-05 Thread Charles E Campbell
Bram Moolenaar wrote: > Charles Campbell wrote: > >> I don't check all that often, but I note that ZoomWin's ratings have >> plummeted by 473 points since Feb 22 this year (on vim.sf.net). >> In the past, I've pulled plugins that have experienced bot attacks like >> this, as their ratings never

Re: "superscript" asterisk is gone!

2017-05-24 Thread Charles E Campbell
Bram Moolenaar wrote: > Charles Campbell wrote: > >> Tony Mechelynck wrote: >>> In Bitstream Vera Sans Mono 8 in gvim 8.0.600 for GTK3 (which I just >>> made using "make reconfig" after an update of the python2, python3 and >>> IIRC lua packages), U+20F0 is present in the buffer and gvim >>>

Re: "superscript" asterisk is gone!

2017-05-24 Thread Charles E Campbell
BPJ wrote: > > > Den 22 maj 2017 21:32 skrev "Charles E Campbell" > <drc...@campbellfamily.biz <mailto:drc...@campbellfamily.biz>>: > > Tony Mechelynck wrote: > > In Bitstream Vera Sans Mono 8 in gvim 8.0.600 for GTK3 (which I just >

Re: "superscript" asterisk is gone!

2017-05-22 Thread Charles E Campbell
Tony Mechelynck wrote: > In Bitstream Vera Sans Mono 8 in gvim 8.0.600 for GTK3 (which I just > made using "make reconfig" after an update of the python2, python3 and > IIRC lua packages), U+20F0 is present in the buffer and gvim > recognises it as a composing character, but its display is easy to

looks like a bot or something is clobbering ZoomWin's ratings

2017-05-18 Thread Charles E Campbell
Hello: I don't check all that often, but I note that ZoomWin's ratings have plummeted by 473 points since Feb 22 this year (on vim.sf.net). In the past, I've pulled plugins that have experienced bot attacks like this, as their ratings never seem to be restored, and it obviously discourages folks

Re: "superscript" asterisk is gone!

2017-05-18 Thread Charles E Campbell
Charles E Campbell wrote: > Hello: > > I had been using a space (hex: 32) followed by a composing character > (hex: 20f0) to get a superscript asterisk. I no longer see the > "superscript" asterisk. > > * I did an o/s upgrade in the past 6 months or so, and so that

"superscript" asterisk is gone!

2017-05-18 Thread Charles E Campbell
Hello: I had been using a space (hex: 32) followed by a composing character (hex: 20f0) to get a superscript asterisk. I no longer see the "superscript" asterisk. * I did an o/s upgrade in the past 6 months or so, and so that could be why the "superscript asterisk" is no longer visible *

Re: am getting a CRITICAL error using gvim and linux

2017-05-18 Thread Charles E Campbell
Tony Mechelynck wrote: > On Thu, May 18, 2017 at 5:35 AM, Charles E Campbell > <drc...@campbellfamily.biz> wrote: >> Here it is: >> >> ** (gvim:62530): CRITICAL **: murrine_style_draw_box: assertion 'width >= >> -1' failed >> >> Sugge

am getting a CRITICAL error using gvim and linux

2017-05-17 Thread Charles E Campbell
Here it is: ** (gvim:62530): CRITICAL **: murrine_style_draw_box: assertion 'width >= -1' failed Suggestions appreciated. Regards, Chip Campbell Info: uname -a: Linux djinni.campbellfamily.biz 3.10.0-327.el7.x86_64 #1 SMP Fri Nov 20 11:12:42 CST 2015 x86_64 x86_64 x86_64 GNU/Linux

Re: Strange behavior with x! and permissions

2017-05-04 Thread Charles E Campbell
Christian Brabandt wrote: > Hi Gary! > > On Mi, 03 Mai 2017, Gary Johnson wrote: > If that was true, I would expect the inode number of the file to be different after Vim had edited it, but that is not what I observe. The inode number is unchanged. I created a file with

Re: Word definition includes period?

2017-04-02 Thread Charles E Campbell
Old problem; you need to upgrade your vim. C Campbell > On Apr 1, 2017, at 11:34 PM, Saurabh T wrote: > > You're right, for some reason iskeyword has an extra . in it on the Cygwin. I > was editing .bashrc at the time. It does not show up on some other file types > I

Re: how to find out what the current vim's servername is?

2017-03-29 Thread Charles E Campbell
David Fishburn wrote: > > > On Wed, Mar 29, 2017 at 10:39 AM, Charles E Campbell > <drc...@campbellfamily.biz <mailto:drc...@campbellfamily.biz>> wrote: > > Hello: > > I've looked through the help for some way to find out what the current > gvi

how to find out what the current vim's servername is?

2017-03-29 Thread Charles E Campbell
Hello: I've looked through the help for some way to find out what the current gvim's server name is (in my case, under X). The serverlist() function gives a list of all such server names, and one can specify a vim to have a specific name, but usually the names appear to be something like GVIM,

Re: RFE: enable gvim to open a buffer or tab in a new window

2017-03-29 Thread Charles E Campbell
L A Walsh wrote: > This is likely only pertinent to a GUI version of vim, > like gvim running over X. > > > More than once I've wanted to be able to tear off a tab > and have gvim open the tab in a new window and > have the new window function like a "tab" > (or a "split") -- except the other

Re: cpp and golang code fold problem

2017-03-29 Thread Charles E Campbell
YZ Xie wrote: > Hi everyone, > > my .vimrc was > set foldmethod=syntax > filetype plugin indent on " Automatically detect file types. > syntax enable > syntax on > > but it cannot fold code if file was named like *.cpp, but it can work > well if file was name *.c or *.cc.

Re: Fixate window layout?

2017-03-23 Thread Charles E Campbell
lith wrote: > 2017-03-23 0:02 GMT+01:00 Shawn H Corey >: > > > Try 'winfixheight' and 'winfixwidth'. > > > > And 'winpos' for position. > > > Maybe I didn't make myself clear. With "window" I refer to windows in > vim, not the

Re: Fixate window layout?

2017-03-22 Thread Charles E Campbell
lith wrote: > Hi! > > When switching back from eclipse to vim, I sometimes find it (still) > surprising that vim doesn't seem to provide a way to "fixate" the window > layout. While I think the volatility of the window layout is an advantage > when working on a small screen, it can be annoying

Re: "No fold found" on many C functions

2017-03-20 Thread Charles E Campbell
Andrew Pennebaker wrote: > When I try to zc C functions, Vim often complains "No fold found" > > Example project: > > https://github.com/edenhill/librdkafka > There's a lot of code in there. Care to point one file out in particular? I just tried rdavi.c and it folded just fine. Regards, Chip

Re: Passing current line number to shell command

2017-03-19 Thread Charles E Campbell
Honggyu Kim wrote: Hi all, I would like to ask a question regarding getting the current line number. I can get it as follows: :echo line(',') It works fine but my question is in command execution with '!' in the front. :!echo line('.') But "line" is not interpreted before going to

Re: gVim 8.0 (patches 1-133): netrw :Explore command not recognized

2017-02-20 Thread Charles E Campbell
boB Stepp wrote: I'm on Win7Pro-64-bit. When I type ":E(xplore)" I get the following: ***sorry*** this version of netrw requires vim 7.4 with patch 213 E117: Unknown function netrw#Explore I have not found this exact issue in my searching, but I have seen several open issues on the Vim

gvim display of contents disappears

2017-02-18 Thread Charles E Campbell
Hello: I use gvim on a Scientific Linux 7.3, which in turn runs in a VM under Windows (Vista). My problem: occasionally the display of the contents in the gvim window disappears, leaving a blank space instead. Ctrl-L does not work to restore the display. However, I've recently found that

Re: vim scp and a local swap file

2017-02-06 Thread Charles E Campbell
Neil Watson wrote: > Greetings, > > The other day I was editing a remote file via scp when my client machine > crashed. Had the file been local there would have been a swap file to recover > unsaved changes. Is it possible to have local swap file for a remote file? > There should be a local swap

Re: How to set a local syntax file?

2017-01-31 Thread Charles E Campbell
Fabio D'Alfonso wrote: > Hi, > I am using nasm, and made the change in syntax to nasm in the global > config, both to highlight and snippets. > Could you tell me where I could make a local setting? > Also I am using ti amix/vimrc . IF: you've taken nasm.vim and modified it, but its a complete

Re: horizontal range, kindof

2017-01-30 Thread Charles E Campbell
BPJ wrote: I'm trying to do a substitution in a 'horizontal/virtual column range'. I have an ASCII table where the columns are separated by tab characters (for now). I want to wrap the contents (which contain space (U+0020) and \S characters, being of unequal length of course!) of some specific

Re: HI Can VIM format a flat file to its fields using a record layout (cobol) ?

2017-01-30 Thread Charles E Campbell
Zvika Dvir wrote: > HI > > In IBM the are tools to map a file according to a given structure > (File Aid). > > I ask if Vim has thus feature ? > > Since I haven't used an IBM machine in decades, I don't really know what "mapping a file to a given structure" means in detail. However, one can

Re: How to make the curly brace on the same line when press enter between them ?

2017-01-25 Thread Charles E Campbell
Tony Mechelynck wrote: > P.S. See also «:help 'cinoptions'» if it is a C-like language. > > Best regards, > Tony. > > On Wed, Jan 25, 2017 at 9:23 PM, Tony Mechelynck > wrote: >> On Wed, Jan 25, 2017 at 7:11 PM, Zhe Lee wrote: >>> here is the

Re: vim 8.0 file explorer restrictions

2016-12-27 Thread Charles E Campbell
Musat Eduard wrote: > hy, my question here is about the allowed locations in the new vim 8.0 file > explorer netrw 156. > > i'm running vim 8.0 on a windows 7 system and i'm having this issue whenever > i open gvim (the one that runs in a window as opposed to running in cmd) the > default path

Re: how to delete specified pattern

2016-12-12 Thread Charles E Campbell
Sand Glass wrote: > I want to delete the <*> pattern , how should I do? > > 00:00:00.000 --> 00:00:02.129 align:start position:0% > > hello<00:00:00.900> guys<00:00:01.020> > today<00:00:01.620> is<00:00:01.949> > our<00:00:02.129> first > > 00:00:02.129 --> 00:00:02.310 align:start

Re: how to delete specified pattern

2016-12-12 Thread Charles E Campbell
Sand Glass wrote: > On Sunday, December 11, 2016 at 5:16:07 PM UTC+8, Sand Glass wrote: >> I want to delete the <*> pattern , how should I do? >> >> 00:00:00.000 --> 00:00:02.129 align:start position:0% >> >> hello<00:00:00.900> guys<00:00:01.020> >> today<00:00:01.620> is<00:00:01.949> >>

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

2016-10-01 Thread Charles E Campbell
BPJ wrote: This, and an empty window, is what I'm greeted by when doing `:e .`: ***sorry*** this version of netrw requires vim v7.4 with patch 213 Most confused! $ vim --version VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Sep 26 2016 16:41:05) Inkluderade patchar: 1-13 Kompilerad av

Re: syntax match bug: 'keepend' not officially supported, but required in some cases

2016-09-30 Thread Charles E Campbell
Brett Stahlman wrote: The syntax documentation suggests that the 'keepend' argument applies only to syntax regions, not syntax matches. But if I highlight a buffer containing only the following line... ABCDE ...with the following syntax definitions... syn match A /A/ syn match Inside

Re: No such highlight group name: netrwMarkFile

2016-09-27 Thread Charles E Campbell
Johann Höchtl wrote: > Hi, > > I am using > Vim 8.0.7, netrw v156 > > When I highlight a file in netrw using mf, it is not highlighted, neither on > the console, nor in gvim. > > If I first mark files and later a target mt , I get the error > > Error detected while processing function >

Re: Wrong vim color syntax

2016-09-06 Thread Charles E Campbell
Willem D'Haese wrote: Hello, You can find the text here: https://raw.githubusercontent.com/willemdh/FireMotD/master/FireMotD Problem seems to start at line 211, maybe related to the '<<<'? MemFreeB="$(cat /proc/meminfo | grep MemFree | awk {'print $2'})" MemTotalB="$(cat

Re: Wrong vim color syntax

2016-08-11 Thread Charles E Campbell
Willem D'Haese wrote: > Just noticed (with the latest syntax file) another color issue. > Starting after MemFree the colors are incorrect. See attached screenshot. > This is with the vim.sh version 154 from Jul 07, 2016 > > Why Does it say ASTRO-ONLY by the way? > Please send me the text; I don't

Re: Wrong vim color syntax

2016-07-15 Thread Charles E Campbell
Willem D'Haese wrote: Thanks Chip, updating sh.vim seems to have solved the issue. Just an informative question, is this something that will get fixed in the vim yum package? Or do I have to patch sh.vim myself on my systems? Eventually I will send the file on to Bram for inclusion. I leave

Re: Wrong vim color syntax

2016-07-14 Thread Charles E Campbell
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 seems something wrong with the coloring in this code with VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 10 2014 06:55:55)? cat

Re: :autocmd Filetype netrw echom "Greetings from netrw"

2016-06-22 Thread Charles E Campbell
Tumbler Terrall wrote: >> Following autocmd Filetype does not trigger when I enter a netrw window >> >> :autocmd Filetype netrw echom "Greetings from netrw" > netrw executes all of its autocmd's silently. Therefore any echo commands > will have no effect. If you're simply trying to verify that

Re: Spellcheck after Ellipsis again [vim bug found?]

2016-06-13 Thread Charles E Campbell
David Woodfall wrote: >> David Woodfall wrote: >>> syn sync fromstart >>> syn match Ellipsis /[.][.][.]\s\+\l.*\>/ contains=@NoSpell transparent >>> syn match Ellipsis2 /[.][.][.]\n\s\+\l.*\>/ contains=@NoSpell >>> transparent >>> syn cluster Spell add=Ellipsis >>> syn cluster Spell add=Ellipsis2

Re: Spellcheck after Ellipsis again

2016-06-13 Thread Charles E Campbell
David Woodfall wrote: > syn sync fromstart > syn match Ellipsis /[.][.][.]\s\+\l.*\>/ contains=@NoSpell transparent > syn match Ellipsis2 /[.][.][.]\n\s\+\l.*\>/ contains=@NoSpell > transparent > syn cluster Spell add=Ellipsis > syn cluster Spell add=Ellipsis2 > > syn cluster texDocGroup

Re: subscripts and superscripts

2016-06-02 Thread 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 see O with a subscript 2 to > represent the Oxygen molecule. Without using heavy

Re: vim doesn't read ~/.vim

2016-05-09 Thread Charles E Campbell
Nikolay Aleksandrovich Pavlov wrote: > 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

Re: cursor jumping in netrw with netrw_liststyle=3

2016-05-03 Thread Charles E Campbell
Charles E Campbell wrote: > Ryan Williams wrote: >> Hi Vim users, >> >> I have this >> problem: >> http://vi.stackexchange.com/questions/2744/prevent-cursor-movement-when-clicking-in-netrw >> >> It seems like netrw always moves the cursor to the top

Re: Using gx with text-only browser

2016-04-20 Thread Charles E Campbell
Peter King wrote: > I usually use nvim at the console and would like to set gx to open a URL > under the cursor with /usr/bin/links. I have tried setting these options: > > let netrw_browsex_viewer=``/usr/bin/links'' > let netrw_http_cmd=``links'' > > All that happens, though, is that the

Re: netrw :Explore setting current buffer to hidden

2016-04-18 Thread Charles E Campbell
Nicola wrote: > On 2016-02-29 22:55:13 +, Charles Campbell said: > >> gt.ma...@gmail.com wrote: >>> hello all, >>> >>> On Vim 7.4.1401 (OS X 10.11.3), netrw’s :Explore is acting very >>> weirdly for me. >>> >>> My workflow is to usually open some file, use :Explore to search for >>> related

Re: Using g://w to filter a buffer

2016-03-31 Thread Charles E Campbell
Axel Bender wrote: > Given the following description in the docs > > "The global commands work by first scanning through the [range] lines and > marking each line where a match occurs (for a multi-line pattern, only the > start of the match matters). > In a second scan the [cmd] is executed for

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

2016-03-29 Thread Charles E Campbell
Josef Fortier wrote: >> I can suggest using filewritable() > Thanks! This works well > (FWIW I'm using filereadable() followed by filewriteable() to avoid no file > conditions). > Depending on what you're doing, you also might want to use isdirectory(). Regards, Chip Campbell -- -- You

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

2016-03-04 Thread Charles E Campbell
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' > RunView is designed to do the split buffer window and display output thing. You can

Re: netrw :Explore setting current buffer to hidden

2016-02-29 Thread Charles E Campbell
Justin M. Keyes wrote: > netrw is 11,000 (eleven thousand) lines of code without any automated > tests. That, as it turns out, is not the case. I do have automated tests for it. The tests are based on pchk (http://www.drchip.org/astronaut/vim/index.html#PCHK); however, ever since patch#866,

Re: gF doesn't work with latest vim on Windows

2016-02-19 Thread Charles E Campbell
Ben Fritz wrote: > On Thursday, February 18, 2016 at 11:09:34 AM UTC-6, andalou wrote: >> If I use "set isfname-=:" gF works, but "{visual} gF" doesn't work! >> I get the same error: >> >> E447: Can't find file "main.c:26" in path >> > That's because {visual} gF doesn't pay any attention to line

Re: 'gx' opens firefox instead of chrome

2016-02-15 Thread Charles E Campbell
oren wrote: 'gx' opens firefox instead of chrome. any clues why? ``` cat /etc/lsb-release DISTRIB_DESCRIPTION="Ubuntu 15.10" ``` ``` update-alternatives --get-selections |grep x-www-browser x-www-browser manual /usr/bin/chromium-browser ``` Look into man xdg-open

Re: Configuring vim to use alternate command line ftp client

2016-02-03 Thread Charles E Campbell
Charles Norton wrote: > First, does VIM have its own built-in ftp client, or does it rely on > Windows' ftp.exe? > > Second, is it possible to configure vim -- I am using 7.x -- to use > another ftp command line client, like passive_ftp? > Hello: Vim does not have its own built-in ftp client, nor

Re: Puzzling behavior of AnsiEsc! in an autocommand

2016-02-03 Thread Charles E Campbell
Gary Johnson wrote: > I'm running Vim 7.4.1152 in an xterm on a Red Hat Enterprise Linux > 7.1 system and using Dr. Chip's AnsiEsc plugin (v13i) to make ANSI > color escape sequences in some files readable. > > I noticed some odd behavior and simplified the conditions down to > this (one line). >

Re: detach current tab into a separate window

2016-01-16 Thread Charles E Campbell
You may have an errant swap file hanging around, possibly from an earlier abnormal termination. C Campbell > On Jan 15, 2016, at 11:05 PM, kamaraju kusumanchi > <raju.mailingli...@gmail.com> wrote: > > On Fri, Jan 15, 2016 at 2:13 PM, Charles E Campbell > <drc...@c

Re: detach current tab into a separate window

2016-01-15 Thread Charles E Campbell
kamaraju kusumanchi wrote: > On Fri, Jan 15, 2016 at 12:29 AM, kamaraju kusumanchi > <raju.mailingli...@gmail.com> wrote: >> On Thu, Jan 14, 2016 at 3:29 PM, Charles E Campbell >> <drc...@campbellfamily.biz> wrote: >>> kamaraju kusumanchi wrote: >&g

Re: detach current tab into a separate window

2016-01-14 Thread Charles E Campbell
kamaraju kusumanchi wrote: > 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 > window session? > You could try :Detach, which is

Re: Is there a way to display line numbers and relative line numbers as with two rulers?

2015-12-31 Thread Charles E Campbell
Arun wrote: On Thu, Dec 17, 2015 at 1:05 PM, Christian Brabandt > wrote: On Do, 17 Dez 2015, Arun wrote: > visual indication is a very acceptable trade off for me. I have two > visual mode mappings in that regard: > > >

Re: I have a dream, about pseudocoding support

2015-12-09 Thread Charles E Campbell
Paul wrote: > I have a dream, about pseudocoding support > -- > I'm using vim to write pseudocode. This example must be viewed in > fixed with font: > >For each machine type demanded, starting from the one with the >most costly demand >| >|

Re: Highlight if-else-endif structures in Vim

2015-12-07 Thread Charles E Campbell
Fabian Nick wrote: > Am Donnerstag, 3. Dezember 2015 23:20:01 UTC+1 schrieb DrChip: >> Eric Christopherson wrote: >>> On Wed, Aug 26, 2015, Fabian Nick wrote: Hi all, ss there a way to highlight if-else-endif structures in Vim on demand based on their 'level' in the overall

Re: Highlight if-else-endif structures in Vim

2015-12-04 Thread Charles E Campbell
Gary Johnson wrote: > On 2015-12-03, Charles E Campbell wrote: > >> Try Rainbow.vim from my website: >> http://www.drchip.org/astronaut/vim/index.html#RAINBOW . It currently >> handles c, c++, matlab, Latex, javascript, and vim. > I just did that, following

Re: programmatically determine blockwise visual mode

2015-12-04 Thread 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 >>> selected region, e.g. highlight it. >>&g

Re: programmatically determine blockwise visual mode

2015-12-04 Thread Charles E Campbell
Christian Brabandt wrote: > Hi, > let's say I have script, that wants to work on the last visually > selected region, e.g. highlight it. > > Is there any way, to find out, whether the last block-wise selected > region used '$' for selection (see :h v_$) or not? This matters, since > when using

Re: Highlight if-else-endif structures in Vim

2015-12-03 Thread Charles E Campbell
Eric Christopherson wrote: > On Wed, Aug 26, 2015, Fabian Nick wrote: >> Hi all, >> >> ss there a way to highlight if-else-endif structures in Vim on demand based >> on their 'level' in the overall program hierarchy? I.e. I want something like >> >> if <<< highlight in red >>foo >> else

Re: vim font issue

2015-12-01 Thread Charles E Campbell
Christian Brabandt wrote: > Hi, > can someone enlighten me, how the configure vim to display the attached > text file correctly? > > For me, it does not display correctly under Windows, neither on Unix as > Gvim. For the terminal gnome-terminal (3.14.1) vim seems to display the > font almost

Re: Go to Japanese character

2015-11-23 Thread Charles E Campbell
bob beckett wrote: > On Thursday, November 19, 2015 at 1:38:00 PM UTC-8, bob beckett wrote: >> I have created a Japanese-English vocabulary list for my personal use. >> >> Oftentimes I want to go to the first non-ASCII character in a line. >> >> Can anyone suggest a way to accomplish this? Maybe a

Re: Question about highlighting all matches of a local variable within a C/C++ subroutine

2015-11-22 Thread Charles E Campbell
Richard Mitchell wrote: On Saturday, November 21, 2015 at 6:41:12 PM UTC-5, DrChip wrote: John Fishburn wrote: I know that .set hlsearch will highlight all matches of search patterns. My question is, can this highlighting be done only for occurrences of a local variable within a C/C++

Re: Question about highlighting all matches of a local variable within a C/C++ subroutine

2015-11-21 Thread Charles E Campbell
John Fishburn wrote: I know that .set hlsearch will highlight all matches of search patterns. My question is, can this highlighting be done only for occurrences of a local variable within a C/C++ subroutine? E.g. highlight all occurrences of 'i' that are local to a subroutine but not those

Re: How to pass the word under curor as the para to the command

2015-11-16 Thread Charles E Campbell
imlegend...@gmail.com wrote: command! -nargs=1 -bar Pyhelp :call ShowPydoc() nnoremap K :exe ":Pyhelp expand('')" I define a ShowPydoc func, If you type ":Pyhelp xxx" you will get the help of xxx. Now I want to map the K to the that if I move the curor on the word that I want to get the

Re: cursor jumping in netrw with netrw_liststyle=3

2015-11-09 Thread Charles E Campbell
Ryan Williams wrote: > Hi Vim users, > > I have this > problem: > http://vi.stackexchange.com/questions/2744/prevent-cursor-movement-when-clicking-in-netrw > > It seems like netrw always moves the cursor to the top of the list of > files when not in tree view, and sometimes it still moves it up

Re: Switching syntax highlighting

2015-10-29 Thread Charles E Campbell
sycc wrote: > Hello all! > I'm trying to write a function for switching between the current > buffer syntax highlighting and whitespace, but I'm really new to vim > scripting and such and am having a hard time. > I switch to whitespace syntax highlighting and back quite frequently. > However, it's

Re: Printing bug in gVim?

2015-10-27 Thread Charles E Campbell
Wolf Bogacz wrote: > Windows 2008R2 > > I'm not sure about Feature Level, but here's the output from the Help > menu, assuming its what you want: > > VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 10 2013 14:38:33) > MS-Windows 32-bit GUI version with OLE support Hello: I'm guessing that Ben

Re: Character s is not work on vim maps

2015-10-24 Thread Charles E Campbell
Hello-I suspect you're using vim (as opposed to gvim) - and your terminal is taking the ctrl-s. C Campbell > On Oct 24, 2015, at 7:05 AM, 吴江 wrote: > > Hi, > > When I use noremap :update to map ctrl-s to save file, it's not > work, and I use noremap :update to map

Re: How to extract information from large file based on search pattern

2015-10-23 Thread Charles E Campbell
LCD 47 wrote: > The easy way: > > fgrep -wf small_file.txt big_file.txt > I'd like to expand a bit on what LCD mentioned: fgrep will build a finite state automaton to do the matching as if it was running all the matching in parallel; it will find matches with one pass, no backing up,

Re: How to copy and rename a file with netrw where the target and source directory are the same?

2015-10-05 Thread Charles E Campbell
Shane Dev wrote: > for example, I want to "backup" a file, in bash I type > > cp /etc/foo /etc/foo.0 > > can I achieve the same time with netrw? > Copy a file using the usual netrw method for copying: (assuming cursor is atop the file to be copied, and that the file is a file, not a director) mt

Re: Is there any way to override scripts that load after .vimrc?

2015-06-13 Thread Charles E Campbell
jshock wrote: My .vimrc file sets my textwidth=0, but it is being overridden by a plugin (/root/share/vim/vim72/ftplugin/vim.vim) that loads after my .vimrc and sets textwidht=72. I only have a user account on the server, so I don't have much control over the Vim or the plugins. Is there

Re: make existing subwindow as preview window

2015-06-11 Thread Charles E Campbell
Paul wrote: Is there a way to make the current window into the preview window? In another window running netrw, I would then want to be able to press p on a file and have it show in the window that I designate for preview. You may also find :help g:netrw_chgwin and :help

Re: quickly viewing a directory of files

2015-04-06 Thread Charles E Campbell
Chris Lott wrote: I have a directory of files with names like 'clips-20150101' 'clips-20150102' etc. I need to open a file, jump to a particular string, optionally yank some arbitrary text, and repeat for every file in the directory. What's the quickest way to do this in Vim? See :help

Re: How to indicate multiple window lines that belong to a long line in a file

2015-04-03 Thread Charles E Campbell
Charles Campbell wrote: 'Paul' via vim_use wrote: Currently I use set number for this purpose. But it takes a lot of window space. So I wonder whether there is a better way to do it, such as the way used in Emacs window (showing a little line wrap symbol at the end of a window line if it

Re: What category does the help page for AnsiEsc belong to?

2015-03-30 Thread Charles E Campbell
Peng Yu wrote: Hi, `:help` shows the following categories of help topics. But what does AnsiEsc belong to? WHAT PREPENDEXAMPLE Normal mode command (nothing) :help x Visual mode command

Re: which match-highlighting is in effect (if any) at a point in a file?

2015-03-30 Thread Charles E Campbell
LCD 47 wrote: On 28 March 2015, Charles E Campbell drc...@campbellfamily.biz wrote: Hello! In using :match, :2match, :3match, or matchadd(), one may specify special highlighting. Any easy way for a vimscript to know which, if any, highlighting match is active? Such highlighting overrides

Re: which match-highlighting is in effect (if any) at a point in a file?

2015-03-30 Thread Charles E Campbell
Nikolay Pavlov wrote: 2015-03-30 7:55 GMT+03:00 LCD 47 lcd...@gmail.com: On 28 March 2015, Charles E Campbell drc...@campbellfamily.biz wrote: Hello! In using :match, :2match, :3match, or matchadd(), one may specify special highlighting. Any easy way for a vimscript to know which, if any

which match-highlighting is in effect (if any) at a point in a file?

2015-03-28 Thread Charles E Campbell
Hello! In using :match, :2match, :3match, or matchadd(), one may specify special highlighting. Any easy way for a vimscript to know which, if any, highlighting match is active? Such highlighting overrides the usual syntax highlighting, and I'd like to know what's going on at the current

  1   2   3   >