Re: Temporarily edit a vim document without actually changing file

2021-09-09 Thread jr
a global search and replace function, but by default the edit has > not actually been written to file, and that requires a specific command to > actually save the previewed changed? > > Thank you, > Julius -- regards, jr. You have the right to free speech, as long as you're n

Re: Manual join function and encoding

2021-10-04 Thread jr
hi, On Mon, 4 Oct 2021 at 10:10, Julius Hamilton wrote: > ... the end of line character “$”? ... there is no "real" character, its conceptual, the end of line "anchor". try 'cat file.txt' vs 'cat -A file.txt' for illustration. -- regards, jr. Yo

Re: Dry run for 'make install`?

2022-07-25 Thread jr
hi, On Mon, 25 Jul 2022 at 12:25, 'Suresh Govindachar' via vim_use wrote: > Is it possible to do a dry-run of `make install`? If so, how exactly? If > not, are there other ways to find out what would happen on executing > `make install`? 'make -n', 'make -n ins

Re: Dry run for 'make install`?

2022-07-25 Thread jr
just want to see where files are going to be > copied. personally, I like to wrap './configure's and or 'make's with a 'script -c make build-log' or similar, it gives me more time/opportunity to "process" the details. to then "see where files are goi

Re: Gvim taking a minute or more to start

2022-09-09 Thread jr
inal and it took a long time to >> start. I reset HOME to /home/al and it still took a long time to start! >> Opening a new cygwin terminal resulted in a quick start again. This is >> really weird! (shot in the dark, have no MS Windows) what happens if you set a HOME variab

Re: Gvim taking a minute or more to start

2022-09-12 Thread jr
On Mon, 12 Sept 2022 at 14:26, A. S. Budden wrote: > ... > Oooh, that was a good shot! Setting the HOME environment variable seems to > work (again, I've only tested this on one machine so far; I'll try the other > tomorrow). It doesn't seem to matter what it's set to: I tried > c:\cygwin\home\

Re: Gvim taking a minute or more to start

2022-09-12 Thread jr
On Mon, 12 Sept 2022 at 15:32, Andrew Bernard wrote: > ... > static const char *required_env_vars[] = { > #ifdef WIN32 >"HOMEDRIVE", >"HOMEPATH", > ... nice. > But if you are running in cygwin I would have thought that shell only > uses a UNIX environment, so $HOME would be all that is n

Re: how to get more efficient writing code

2023-01-03 Thread jr
g > it efficient enought if you're ok with a book instead of .. television :-), I can recommend "Practical Vim" by Neil Drew. -- regards, jr. You have the right to free speech, as long as you're not dumb enough to actually try it. (The Clash 'Know Your Rights'

Re: Yanking doesn't yank

2023-01-12 Thread jr
rently :-). I do not use visual mode in that situation, just note the line number of the first, then move to the last line, and, eg, ':123,.y'. -- regards, jr. You have the right to free speech, as long as you're not dumb enough to actually try it. (The Clash 'Know Your

Re: Can I copy/yank into and out of vim?

2023-03-05 Thread jr
ing some text selected?) might be. :-) man 1 xterm. man 1 xclipboard too is useful. -- regards, jr. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/mailli

Re: alternating lines ?

2023-03-26 Thread jr
and line after this, to be again, ... "ledger" style. did a little googling but didn't get (any) useful results. -- regards, jr. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For mo

Re: alternating lines ?

2023-03-27 Thread jr
hi, On Mon, 27 Mar 2023 at 07:33, Christian Brabandt wrote: > > "ledger" style. > Like this https://vi.stackexchange.com/a/10162/71 ? like that :-) great, thanks. -- regards, jr. -- -- You received this message from the "vim_use" maillist. Do not top-post! T

Re: alternating lines ?

2023-03-27 Thread jr
On Mon, 27 Mar 2023 at 13:00, Igor Lerinc wrote: > ... when it is further down, and also text is intended a lot ... if using GNU/Linux and depending on your file's contents, of course, you could perhaps use 'indent' or such to reformat the text beforehand. -- regards, jr.

Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-16 Thread jr
e in ALL of the windows terminal programs. The same > solution worked for all of them. genuine question, am puzzled. [*] not a .. rumour I had heard of. -- regards, jr. You have the right to free speech, as long as you're not dumb enough to actually try it. (The Clash 'Know

Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-16 Thread jr
ame", ... I've used Vim on Linux (Linuces ?) for .. several years, but, I've never used ':vi "somefile.txt"', only ':e somefile.txt' , which works for me. hth. -- regards, jr. You have the right to free speech, as long as you're not dumb enough to

Re: Improving vim startuptime

2023-07-17 Thread jr
e '-fPIC' flag ? (may, of course, be just an artefact of the machine's configuration) -- regards, jr. You have the right to free speech, as long as you're not dumb enough to actually try it. (The Clash 'Know Your Rights') this email is intended only for the address

Re: DirDiffVim for folders, but files are missed?

2024-01-04 Thread jr
t1.1.1/test1.1.1file2.JPG the command you're looking for is 'cut(1)', eg '$ cat sum2.md5 | cut -d' ' -f1'. -- regards, jr. You have the right to free speech, as long as you're not dumb enough to actually try it. (The Clash 'Know Your Rights') th

Re: DirDiffVim for folders, but files are missed?

2024-01-06 Thread jr
$1] = arr[$1] ", " $2 else arr[$1] = $2 } END { for (m in arr) if (arr[m] ~ ".*,.*") print m " " arr[m] } -- -- regards, jr. You have the right to free speech, as long as you're not dumb enough to actually try it. (The Clash 'Know Your R

Re: DirDiffVim for folders, but files are missed?

2024-01-06 Thread jr
s (fileName.jpg?) in the original > (TakeoutAlbumYears?) file. > > Here's where I'm at: > ... -- regards, jr. You have the right to free speech, as long as you're not dumb enough to actually try it. (The Clash 'Know Your Rights') this email is intended onl

Re: How to make gvim/vim-gtk3 behave exactly like vim

2024-01-19 Thread jr
understand exactly, but you can create a '~/.gvimrc' to complement your '~/.vimrc'. -- regards, jr. You have the right to free speech, as long as you're not dumb enough to actually try it. (The Clash 'Know Your Rights') this email is intended only for the add

Re: Separating multiple user-defined commands with | (bar)

2013-09-18 Thread Sam Fourman Jr.
On Wed, Sep 18, 2013 at 4:47 PM, Paul wrote: > On Wednesday, September 18, 2013, Ben Fritz wrote: > > :he :command-bar > > That certainly helped. Thanks, Ben. > > so what is the correct way to say | is it actually bar? I have always called it pipe.... -- Sam Fourman Jr.

Re: Separating multiple user-defined commands with | (bar)

2013-09-19 Thread Sam Fourman Jr.
On Wed, Sep 18, 2013 at 6:48 PM, Gary Johnson wrote: > On 2013-09-18, Sam Fourman Jr. wrote: > > > > On Wed, Sep 18, 2013 at 4:47 PM, Paul wrote: > > > > On Wednesday, September 18, 2013, Ben Fritz wrote: > > > :he :command-bar > > > >

Re: netrw problem

2008-10-12 Thread Charles E. Campbell, Jr.
Mr.SpOOn wrote: > On Sat, Oct 11, 2008 at 11:54 AM, Mr. SpOOn <[EMAIL PROTECTED]> wrote: > >> I suggest you try making your own Vim again; see >> >>> http://users.skynet.be/antoine.mechelynck/vim/compunix.htm to see, >>> step-by-step, how I compile Vim with no problems on Linux (openSUSE

Re: netrw problem

2008-10-13 Thread Charles E. Campbell, Jr.
Mr.SpOOn wrote: > On Sun, Oct 12, 2008 at 11:11 PM, Charles E. Campbell, Jr. > <[EMAIL PROTECTED]> wrote: > >> I'm using v134e of netrw, available from my website: >> http://mysite.verizon.net/astronaut/vim/index.html#NETRW . >> I see no problem with the

Re: About window position

2008-10-13 Thread Charles E. Campbell, Jr.
andyСÓê wrote: > Hi all: >I am going to develop a plugin for vim, but I got some problems > right now. I want to open a buffer at specific window and lock the > window's position and size that no one can change them. What can I do > to make this possible? thanks You can't. At the most yo

Re: netrw problem

2008-10-13 Thread Charles E. Campbell, Jr.
Mr.SpOOn wrote: > On Mon, Oct 13, 2008 at 4:19 PM, Charles E. Campbell, Jr. > <[EMAIL PROTECTED]> wrote: > >> Please try v134f of netrw (see above for where to get it). The "t" >> mapping is working for me. >> >> simple.vimrc: >> se

Re: how to make vim treat '_' differently in a .tex file depending one whether '_' is in a file name or not?

2008-10-18 Thread Charles E. Campbell, Jr.
Peng Yu wrote: > Hi, > > Suppose I have the following line in a .tex file. > > \input{one_another} > > 'one_another' is a file name. Therefore, if I press 'b' when the > cursor is on the letter 'o' of 'one', I would like it move to the end > of another. However, the default setting would make it m

Re: How to don't match a regular expression

2008-10-27 Thread Charles E. Campbell, Jr.
Rafael Antognolli wrote: > Hi, > > I'm trying to use the matchadd() command, but I want to highlight some > lines that match my regular expression only when they don't match > another regular expression. > > Is there a way to do that? > > I suggest looking into LogiPat; you can get the latest L

Re: highlighting and folding, 2 windows always? (I come from emacs)

2008-11-09 Thread Charles E. Campbell, Jr.
Britton Kerin wrote: > I just decided to make the switch from emacs after 10+ years and > quite a pile of elisp. Its already starting to seem worth it. > vim's detailed easy control of keys and excellent documentation > are big wins. Kudos to the vim community. > > I have a few little questions

Re: highlighting and folding, 2 windows always? (I come from emacs)

2008-11-09 Thread Charles E. Campbell, Jr.
StarWing wrote: > > On 11ÔÂ10ÈÕ, ÉÏÎç10ʱ51·Ö, "Charles E. Campbell, Jr." > <[EMAIL PROTECTED]> wrote: > >> Britton Kerin wrote: >> :help guioptions >> >> (in particular, you probably want :set guioptions+=r) >> >> >

Re: How do I define a function in an autocmd?

2008-11-11 Thread Charles E. Campbell, Jr.
David Liang wrote: > I'm not trying to change any mappings when I switch filetypes. > Instead, I want to define a set of alternate mappings unique to the > filetype which I can later switch to by calling SetAltMaps(). > > > On Nov 11, 2:53 am, StarWing <[EMAIL PROTECTED]> wrote: > >> just defin

Re: How do I define a function in an autocmd?

2008-11-11 Thread Charles E. Campbell, Jr.
Ben Schmidt wrote: >> a) in the file .vim/ftplugin/FILETYPE.vim, >> b) defining the function >> fun! SetAltMaps() >> ... >>endfun >> >> That way each filetype has its own definition of the SetAltMaps() >> function. More readable, too. >> > > The problem with this approach is tha

Re: netrw cuts off first letter(s) of file

2008-12-03 Thread Charles E. Campbell, Jr.
Charles Campbell wrote: > Kevin Dillman wrote: > >> I am using Gvim version 7.2 on windows and have an occasional problem >> with Netrw. When I >> do :e . the output is sometimes missing the first letter of the file. Any >> ideas why or what to check? >> Kevin >> >> > It'd help to giv

Re: Simple repetition question

2008-12-05 Thread Charles E. Campbell, Jr.
Zachary Turner wrote: > Thanks, this works from the beginning of the file. Is there a similar > method I can use if I know the character offset from a given > position? Like I know it's the 750th character from the first > occurence of some string which I can search for. So I search for it > us

Re: Embedded languages in Vimscript highlighted as error?

2008-12-06 Thread Charles E. Campbell, Jr.
If for some reason you can't get your vim to be perl-enabled, you can shut down error highlighting: let g:vimsyn_noerror = 1 As Tony pointed out, the documentation for vimL (vim-Language) syntax highlighting is available under :help vim.vim Its also available under :help ft-vim-syntax

Re: strange directory listing using netrw v134

2008-12-06 Thread Charles E. Campbell, Jr.
Yukihiro Nakadaira wrote: > Charles Campbell wrote: > >> * as a related issue, multibyte encodings cause strlen() problems -- as >> in, strlen() reports the wrong >> string length. With netrw v135f, netrw always calls s:Strlen() where >> it may have called strlen() >> before; by default

Re: mlterm blocking Alt+I in vim-latex-suite

2009-01-02 Thread Charles E. Campbell, Jr.
zhengquan wrote: > > On Jan 2, 4:32 pm, Tony Mechelynck > wrote: > >> On 02/01/09 23:05, zhengquan wrote: >> >> >>> Thanks Tony, >>> the output of the two verbose commands shows no mappings. >>> >> You did issue them with your latex file current didn't you? >> >> What are you hopin

Re: How can I verbatim use # character in command line?

2009-01-04 Thread Charles E. Campbell, Jr.
pansz wrote: > Charles Campbell 写道: > >>> You can use the escape() function to escape certain characters in a >>> string. Your mapping would then become >>> >>>map 0y$:!=escape(@0,'#') >>> >>> See >>> >>>:help escape() >>> >>> >> The shellescape() function was designed for

Re: Close all buffers except the one you're in ?

2009-01-19 Thread Charles E. Campbell, Jr.
Tintin72 wrote: > Hi, > > Well I think my question is include in the title. > I know the ':only' command wich close all windows exept the current > one. > Is there a similar command with the buffers ? > Just as an alternative -- you might want to try ZoomWin; you can get ZoomWin from: htt

Re: Technique used in vim help documents

2009-01-24 Thread Charles E. Campbell, Jr.
Kevin wrote: > I'm wondering how to make documents that have internal links/tags like > the vim help documents? Are there any tips online? > There are two things: *target* and |link| . Its just straight text. You'll want to see :help helptags to make a tags file for a specific directory

Re: Vim 7.2 questions & comments/(gripes)

2009-01-25 Thread Charles E. Campbell, Jr.
Paul McFerrin wrote: > As one of those users using "vi" for the past 30 years, I have some > questions pertaining mainly to Vim 7.2. > > I don't like changes in "default" behavior of certain programs. Vim7.2 > is one. How can I turn off "autoindent". In my .vimrc file, I have > "set noautoin

Re: 7.2.001-100.gz

2009-02-08 Thread Charles E. Campbell, Jr.
Tony Mechelynck wrote: > On 09/02/09 02:01, pansz wrote: > >> Martin Kopta 写道: >> >>> What the hell did you do?! Argh!! My scripts now does not work and >>> I have to do some hacks like when the bad patch occured in 7.1 >>> patches. Damn you who did this! >>> >>> >> All patches

Re: show buffer in split window

2009-02-10 Thread Charles E. Campbell, Jr.
bill lam wrote: > Suppose I got some files a b c in 3 buffers, While I edit file a, how > to split the window and put b or c in the split window? > > :split (or :vsplit) :b b :split (or :vsplit) :b c Regards, Chip Campbell --~--~-~--~~~---~--~~ You received

Re: in gVim, can the cursor be fixed and no moving?

2009-02-21 Thread Charles E. Campbell, Jr.
eliweiqiang wrote: > Sometimes I will use the mouse to control page scroll, but the cursor > will scroll with the page, then I can not find its original location. > So, how can I fix the cursor? like other editors, their cursors won't > move while scrolling. > One interpretation: you want the

Re: in gVim, can the cursor be fixed and no moving?

2009-02-22 Thread Charles E. Campbell, Jr.
bill lam wrote: > On Sat, 21 Feb 2009, Charles E. Campbell, Jr. wrote: > >> eliweiqiang wrote: >> >>> Sometimes I will use the mouse to control page scroll, but the cursor >>> will scroll with the page, then I can not find its original location. &g

Re: Vim Tips Wiki - Remove author?

2009-02-22 Thread Charles E. Campbell, Jr.
John Beckett wrote: > Each tip on the wiki has a header. We've pruned some of the information > that was originally imported from vim.org, and now we're wondering > whether to also remove the author field. > > The wiki way of dealing with authorship is to use "History", which > records the edit su

Re: Making Vim as Default Editor for Unix's INFO

2009-02-22 Thread Charles E. Campbell, Jr.
Andreas Bernauer wrote: > Gundala Viswanath wrote: > >> Is there a way to do it? >> Because now it is set to Emacs. >> >> I tried set path to EDITOR =/usr/bin/vim, >> however without any effect. >> > > Try 'info --vi-keys' > > info does not use emacs to show the info, just something that

Re: Extend a filetype

2009-02-22 Thread Charles E. Campbell, Jr.
sakki wrote: > Hi, > > I often edit files which are almost C but not quite. I'd like VIM to > recognize them as "my_type", apply everything that is done when > running "set ft c", and then be able to add my own extensions in > ~/.vim/after/*/my_type.vim. > > How do i do that? > Put your extens

Re: Highlight whole line if keyword is not there

2009-02-22 Thread Charles E. Campbell, Jr.
krabu wrote: > Hi, > > I need to highlight lines in grey text color, if there is not the keyword > "column" OR if there is the keyword "noshow". I want the whole line to be > affected, but the keywords are not at the beginning of the line. > > After reading the manual and trying out a lot of thing

Re: how to map and independently

2009-02-22 Thread Charles E. Campbell, Jr.
Tony Mechelynck wrote: > On 14/02/09 14:28, Spencer Collyer wrote: > >> On Thu, 12 Feb 2009 11:35:10 +0100, Tony Mechelynck wrote: >> >>> (I don't know how Vim does it on VAX/VMS, which use EBCDIC >>> rather than ASCII -- EBCDIC originally went together with Hollerith >>> cards). >>>

Re: In plain sight: Name of current function/procedure in status line

2009-02-22 Thread Charles E. Campbell, Jr.
Thomas Michael Engelke wrote: > Hello, > > is there a solution to keep the information about the procedure or > function I am currently in (cursor position) somewhere in the status > line of gvim that hopefully does not employ ctags? I am in the > unfortunate situation of having to code in a langu

Re: Is there some interest in a threadsafe vim ?

2009-02-22 Thread Charles E. Campbell, Jr.
Marc Weber wrote: > See my posts at vim-dev. > vim is not yet thread safe. I think that i could be made thread safe > with only some effort. > After adding some locks you could run python threads in the background > and run vim.command(..) without worrying.. Maybe this would also result > in vim.s

Re: Align doesn 't work

2009-03-01 Thread Charles E. Campbell, Jr.
andalou wrote: > I want to align the following text having the blank as a separator: > > m n p > a $1 $2 > bc €3 €4 > def €5 €6 > gh €7 €8 > > but it aligns from the third row downwards. > You'll want to read :help g:align-option for how to align with multibyte characters, and you'll want to

Re: Align doesn 't work

2009-03-01 Thread Charles E. Campbell, Jr.
andalou wrote: > On Mar 1, 8:30 am, "Charles E. Campbell, Jr." > wrote: > >> andalou wrote: >> >>> I want to align the following text having the blank as a separator: >>> >>> m n p >>> a $1 $2 >>> bc €

Re: How to find an annoying beep

2009-03-04 Thread Charles E. Campbell, Jr.
David Fishburn wrote: > > On May 29 2008, 10:41 am, Andy Wokula wrote: > >> Charles E Campbell Jr schrieb: >> >> >>> Hello! >>> >>> I'm working on some plugins, and recently one has started issuing >>>

Re: how to automagically run a "syn off" the moment I start "editing" a file.

2009-03-09 Thread Charles E. Campbell, Jr.
Rahul wrote: > I made a custom syntax highlighting file for one of our chemistry > coordinate file formats. > > I wanted it to be on by default but issue a "syn off" whenever I start > editing the file (otherwise it is hard to keep the syntax highlighting > in a consistent, meaningful state during

Re: Tooltips for signs: Mouse-over effect for signs?

2009-03-14 Thread Charles E. Campbell, Jr.
Tom Link wrote: > Hi, > > I'd like to mark locations from the quickfix list with a sign. Well, > this wasn't so difficult to achieve. But I would also like to see a > small tooltip/balloon with the entry in the qf list when I hover with > the mouse over the sign. Is this possible somehow? > Sin

Re: Tooltips for signs: Mouse-over effect for signs?

2009-03-15 Thread Charles E. Campbell, Jr.
Tom wrote: > >> I see no way to know that the left mouse click occurred while on the status >> line bar in order to avoid the file opening action >> > > I find it slightly odd that a click on the the status line bar > triggers a map in the window but there certainly is a reason for that. > A

Re: running shell command in the directory of the file

2009-03-15 Thread Charles E. Campbell, Jr.
adam99 wrote: > I tried bang(!) but it runs in the place that I started the gvim, not in the > directory of the file... > > adam99 wrote: > >> I am working with several files at the same time. I would like to compile >> files in the directory of the file I make a change. >> >> Is there way to r

Re: Window splits when using ftp

2009-03-16 Thread Charles E. Campbell, Jr.
b4d wrote: > Hi, how could I prevent vim from opening this upper split window with > connection info at every ftp transaction? > http://www.shrani.si/f/40/HT/4DzeYI3Z/vim.png > It appears that somehow the ftp commands window isn't closing for you. That's the first I've heard of that problem;

Re: Syntax highlight: keywords and columns in PDB

2009-03-18 Thread Charles E. Campbell, Jr.
Stefano Forli wrote: > Charles, > > thank you for your quick answer! > I tested your files but I wasn't able to figure out how to make them work, > even following > your advices. > > I'm using Vim 7.0.305 on a Debian system, and I tried all the options I was > aware of: > - copying all $HOME/.v

Re: Syntax file: color definitions

2009-03-19 Thread Charles E. Campbell, Jr.
merk wrote: > In a recent post, the response to a question included > > >> hi def link pdbCol1 Red >> hi def link pdbCol2 Yellow >> hi def link pdbCol3 Green >> hi def link pdbCol4 Magenta >> hi def link pdbCol5 Cyan >> hi def link pdbCol6 White >> hi

Re: bin2hex, hex2bin availble in VIM?

2009-06-11 Thread Charles E Campbell Jr
Jeri Raye wrote: > Hi, > > Are there character based hex2bin and bin2hex functions in vim? > Or are there scripts known that perform that functions? > Are you aware of xxd which comes with vim? vim -b somebinaryfile :%!xxd :set ft=xxd This'll handle reading binary files. To write them, use

Re: Why does formatoptions flag "l" keep getting set with .conf files?

2009-07-02 Thread Charles E Campbell Jr
Ben Fritz wrote: > On Jul 2, 3:34 pm, risingjoker wrote: > >> create a directory ~/.vim/after/ftdetect >> create a file in that directory named conf.vim >> put you set command inside >> > > A better place would be in the after/ftplugin directory. I'm pretty > certain the formatoptions are

Re: Temp files with netrw

2009-07-06 Thread Charles E Campbell Jr
Mr.SpOOn wrote: > Hi, > sometimes I edit files on a server using Vim with netrw. This works > fine, but at some point I find myself editing a temp file in a local > /tmp directory instead of the same file on the server. This happens > often when I use the ftp protocol. Usin ssh, via scp:// things

Re: How to set >

2009-07-09 Thread Charles E Campbell Jr
Simson Liu wrote: > Hello everyone! > > I can set , such as > :set =^[a > > but how to set >, such as > :set >=^[> > Please start a new thread, rather than burying your question in an unrelated thread. Typically you may do so by leftmouse clicking on the "To:" label rather than using the "Re

Re: Directory listing in (g)vim

2009-07-22 Thread Charles E Campbell Jr
googler wrote: > Hi, > I am using the directory listing features of gvim (for example using > the Explore command). I am wondering if there is a way to display the > directory contents in a tree structure, like in Windows Explorer for > example. Currently when I click on a directory name, it will

Re: Directory listing in (g)vim

2009-07-28 Thread Charles E Campbell Jr
googler wrote: > > I have been using gvim in certain cases as you had suggested. I have a > gvim session up. The left window is a directory listing and the right > window is an open file (opened by pressing 'enter' on one of the file > names on the left window). I pressed the key i a few times for

Re: Function and Visual Block Mode

2009-08-06 Thread Charles E Campbell Jr
Thiago wrote: > Hi, > > I have a function that replaces some text in a range of lines > (through the use of the range keyword). What I want is to be able to > apply this function in an area selected with the Visual Block Mode, > how can I do it? > I've written a plugin, vis.vim, that provid

Re: How to install plugins in MacVim

2009-08-09 Thread Charles E Campbell Jr
caruso_g wrote: > Hi, > I am trying to install some plugins into MacVim, I created the folder > ~/.vim and I put the plugin into it. > But they do not load. > I confess -- I'm not a Mac user. However, does your .vimrc happen to have the following two lines in it: set nocp filetype plugin on

Re: netrw

2009-10-06 Thread Charles E Campbell Jr
Dominique Pellé wrote: > meino cramer wrote: > > >> Hi, >> >> inspired by a prvious post I did the following: >> >> vim ftp://ftp.kernel.org >> >> and got back the following: [snip] >> I tried vim ftp://ftp.kernel.org/ with netrw v136n and vim 7.2.266 and got no errors. Please note t

Re: 'mm' command in netrw

2009-10-06 Thread Charles E Campbell Jr
sc wrote: > On Monday 05 October 2009, Nathan Neff wrote: > > >> I'm using Vim 7.2, both terminal and gvim, and cannot move >> files in netrw. >> >> Let's say I have a directory with >> subdir/ >> foo.txt >> >> If I mark the 'subdir/' target with 'mt', then >> mark foo.txt with 'mf', I can pres

Re: Manage Vim scripts

2009-10-07 Thread Charles E Campbell Jr
Peter l Jakobi wrote: > [snip] > isn't there also some script on vim.org to watch for updates to one's > installed scripts? maybe clone or interface with it / talk to it's > author. [snip] > Perhaps you're talking about GetLatestVimScripts? http://vim.sourceforge.net/scripts/script.php?

Re: Manage Vim scripts

2009-10-07 Thread Charles E Campbell Jr
Richard Pöttler wrote: > Am Mittwoch, den 07.10.2009, 11:21 -0400 schrieb Charles E Campbell Jr: > >> Peter l Jakobi wrote: >> >>> [snip] >>> isn't there also some script on vim.org to watch for updates to one's >>> installed scri

Re: Is there a way to open an URL transparently in the read only mode?

2009-10-09 Thread Charles E Campbell Jr
Peng Yu wrote: > Hi, > > Suppose that there is a file available online (http://website.com/ > path.txt), I could download the file and open it by vim locally. But > I'm wondering if it is possible to let vim download the file > automatically, so that when I type something like 'vim > http://websi

Re: a question about "map" command

2009-10-09 Thread Charles E Campbell Jr
winterTTr wrote: > I map a vim key like this > nnoremap :call foo() > > and , foo() is a function written by myself. > > Is there a way to enter the insert-mode after this map is executed , > without modifying the map-command itself. > > i mean , if i can just add some function call in the foo()

Re: E16:Incalid

2009-10-27 Thread Charles E Campbell Jr
anna wrote: > Hi, > > I found error "E16:Invalid range". This is how to reproduce it. > > :function! Foo() > :echo "foo" > :endfunction > :nmap x :call Foo() > > If I input "x" or "2x" in normal mode, it behaves as expected, > echoing "foo". However, if input "3x" or greater range, then it throws

(changed subject) Rainbow.vim

2009-11-01 Thread Charles E Campbell Jr
meino.cra...@gmx.de wrote: > another little thing: > I downloaded the rainbow vimball, which gives me colored ({}) in c > and c++ according the description. > It contains and installs a file named rainbow.vvim. > The whole stuff works, if one renames rainbow.vvim to rainbow.vim > and it work

Re: vim72 for redhat enterprise 4

2009-11-11 Thread Charles E Campbell Jr
thgr wrote: > Hi vim users, > > I want to use all the great features of vim version 7 for redhat > enterprise linux 4 (comes with vim 6.3) - so i downloaded the sources > and compiled. > > But now I am missing some great features - can anybody tell me how > they can be invoked (or tell me where I

Re: Weird behaviour with the manpage view plugin

2009-11-25 Thread Charles E Campbell Jr
P.L. Francisco wrote: > Hi, > > I've been using the Man page view plugin for a while now, and it's really > good, > but there's a little issue who keeps me annoying. Right now I'm programming > mostly > on php, and since I'm not really a pro, I use the man plugin a lot, what I've > seen >

Re: Align plugin - white space separators

2009-12-26 Thread Charles E Campbell Jr
Chris Jones wrote: > Prettifying a color scheme, which looks like so: > > > 15 hi ErrorMsg ctermfg=9 cterm=none ctermfg=redetc... > 16 hi Visual ctermbg=61 cterm=none ctermfg=bg > 17 hi Visu

Re: netrw: how to remap keys?

2010-01-16 Thread Charles E Campbell Jr
dmw wrote: I've remapped some basic keys like cursor movement keys and :, but every time I accidentally type a path instead of a filename, I'm dumped into netrw, where none of my remapped keys work. So I fumble around a bit until I remember where the : key is so I can get out. Can anyone tell m

Re: Netrw plugin and problem to copy file on distant directory

2010-01-16 Thread Charles E Campbell Jr
epanda wrote: Hi Charles, I am under XP and I fail to copy local file to my distant directory. 1/ exec 'Nread ftp://lo...@ftphost.com/path' norm mt This command seems to work well cause netrw tells me " Copy/Move Tgt: ftp://lo...@ftphost.com/path/ (remote) 2/

Re: netrw can't expand '~' correctly when do gx in windows

2010-01-21 Thread Charles E Campbell Jr
Wu, Yue wrote: As title, I've set $HOME in my .vimrc, but when I try to open the file under cursor on the line such as '~/doc/foo.pdf', vim can't run the app with the file with correct path, apps on windows usually don't support the '~' in path name, so I guess vim on windows doesn't expand '~' c

Re: vim syntax bug

2011-01-17 Thread Charles E Campbell Jr
sergio wrote: Hello. autocmd BufNewFile *.zsh call append( 0, [ \ '#!/bin/zsh', \ '' ] ) vim highlights last ')' with red background as an error, but there is no error. This occurs due to the continuation. There's a tradeoff involved; fixing this sort of thing would require a lot of ne

Re: Writing to filename in variable

2011-01-25 Thread Charles E Campbell Jr
Colin Beighley wrote: Hello, I'd like to be able to write to a file in a variable name, or alternatively change the current filename (the % register) or the alternate filename. Is there any way to do any of these? :help exe :help expand() Regards, Chip -- You received this message from the

Re: latex file and backlash

2011-01-25 Thread Charles E Campbell Jr
Cesar Romani wrote: After a further analysis, I found out that the problem is with AutoAlign. If I remove ~/vimfiles/ftplugin/tex/AutoAlign.vim I don't get that bad behavior. Needless to say, I use AutoAlign, with latex files, and have no such difficulties. Do you have any settings that you u

Re: vimscript syntax problem

2011-02-01 Thread Charles E Campbell Jr
H Xu wrote: On 2011/2/1 15:50, Christian Brabandt wrote: On Mon, January 31, 2011 6:20 pm, H Xu wrote: Hello everybody, In a vimscript file, parentheses across multi lines is highlighted as errors, which is shown in the attachment. Is there any way to fix this? Thanks. This was recently dis

Re: vimball: vulunerable to empty file

2011-02-11 Thread Charles E Campbell Jr
motz wrote: Vimball Archiver by Charles E. Campbell, Jr., Ph.D. UseVimball finish doc/something.txt [[[1 0 Interesting -- I suppose nobody's tried making a vimball with an empty file before. Anyway, I've uploaded v33a onto my website that appears to avoid any unpleasantness

Re: Eroor : E484 can't open colours.vim file

2011-02-16 Thread Charles E Campbell Jr
Ahmed Magdy wrote: hello guys, this is my first day in vim and i think it's great so iam using gvim and linux(ubuntu) and i get this error every type i tried to write some thing like next :so!colours.vim :so!filetype.vim every time i want to open a file it gives me this : Eroor : E484 can't

Re: (Endless!) Make Problems on SunOS

2011-02-16 Thread Charles E Campbell Jr
howard Schwartz wrote: Hi all, Well I am trying to compile vim from source on a large Sun OS machine hosted by a university. I am a meager user without root privleges. Whenever I try this kind of thing on a large machine maintained by somebody other than me, I'm treated to an endless sequence

Re: C syntax, and spurious semicolons

2011-02-22 Thread Charles E Campbell Jr
Ben Schmidt wrote: [snip]... syn clearcConditional syn keywordcConditionalelse switch syn regioncIfmatchgroup=cConditional start=+if\_s*(+ end=+)\_s*\ze[^;)]+ contains=ALLBUT,@cParenGroup,cCppParen,cCppString,@Spell skipwhite skipnl skipempty nextgroup=cSemiError syn m

Re: Multiple Substitutes for 'includeexpr'

2011-02-25 Thread Charles E Campbell Jr
ZyX wrote: Reply to message «Multiple Substitutes for 'includeexpr'», sent 02:11:23 20 February 2011, Sunday by Roy Fulbright: I tried adding a second substitute to the assignment, separated by the vertical bar (|), but this generates an error message while processing .vimrc. What d

Re: Open several files in file explorer

2011-03-17 Thread Charles E Campbell Jr
Marco wrote: Is it possible to open several files in the file explorer? Say I open the file explorer with :e. and then I want to open 3 files in this directory and 4 in another. Is there a possibility to select these files and to open them all at once? Marco who admits that he has not read

Re: Hey, trying to write the vimrc example to my vimrc, get message saying cant

2011-03-17 Thread Charles E Campbell Jr
Ben Farquhar wrote: Hi, Im doing vimtutor. In particular, this: 1. Start editing the "vimrc" file. This depends on your system: :e ~/.vimrc for Unix :e $VIM/_vimrc for MS-Windows 2. Now read the example "vimrc" file contents: :r $VIMRUNTIME/v

Re: Edit same in two windows same Vim session

2011-03-22 Thread Charles E Campbell Jr
Colin Beighley wrote: Actually I didn't test this before I sent the message (sorry) and it appears that Vim automatically does this when you edit the same file in two windows in the same session. On Mar 1, 8:48 pm, "Benjamin R. Haskell" wrote: On Tue, 1 Mar 2011, Colin Beighley wrote:

Re: how to open file from netrw in current window

2011-03-26 Thread Charles E Campbell Jr
wei gao wrote: Hi, I find that if I open (vs) two windows and one of them is netrw file explore, when I try to open a file in netrw window (enter key), the file will be opened in another window. How could I make the file is opened in current netrw file exploer window? Since the behavior you'

Re: Inserting output of Ex command into buffer

2011-04-12 Thread Charles E Campbell Jr
Spiros Bousbouras wrote: [snip] I would prefer a vsystem() function (vim system) or whatever you want to call it so that for example you could do ^R=vsystem("swapname") [snip] Why not try your hand at writing a function to do that? Admittedly, it would have to begin with a capital letter

Re: netrw emtpies my tagfiles()

2011-05-14 Thread Charles E Campbell Jr
koffee wrote: So I have a tag file under current dir. Now gvim, echo tagfiles() will show that tag file. Now if I :e . to invoke netrw, if I do :echo tagfiles() again, I'll see the tag files list is emptied. This only happens on my Ubuntu Natty box, not repro on my Win7 machine. Any idea what

Re: Apply spell check only for en_us

2011-06-09 Thread Charles E Campbell Jr
Bill Sun wrote: Hi, I often deal with text which contains both Chinese and English characters, and: (1)I want to apply spell check only for English characters. I searched web, and found a workable solution: syntax match English /[!-~]/ contains=@Spell Unfortunately, this command breaks all syn

  1   2   >