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: 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: 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: 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: 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: 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: Substitute within a highlight group.

2010-12-30 Thread Charles E Campbell Jr
sergio wrote: On 12/30/2010 05:13 AM, Charles E Campbell Jr wrote: See if David Fishburn's SrchRplcHiGrp plugin does what you want: http://www.vim.org/script.php?script_id=848 Yes, it does. But it's buggy and old. Can vim do this without plugins? No. If you find a bug, send

Re: Substitute within a highlight group.

2010-12-29 Thread Charles E Campbell Jr
sergio wrote: Hello. Is there a way to substitute within a highlight group? I have file, with detected filetype and applied syntax. Syntax gives the group. And I want to make a substitution, for that text, that matches this group. (Really this is a bindzone file, and I want to adjust serial

Re: substitute a floating point number with it's double (or multiple)

2010-12-22 Thread Charles E Campbell Jr
Uday K2 wrote: I have a file which has lines like this. area : 37.24; power : 1.28, 2.73, 3.84; I need to substitute each number with it's double (number*2). Is there anyway I can do this in VIM? I don't have perldo command in my version of VIM. %s/[0-9.]\+/\=2.0*str2float(submatch(0))/g

Re: substitute a floating point number with it's double (or multiple)

2010-12-22 Thread Charles E Campbell Jr
Uday K2 wrote: Hi, I have a file which has lines like this. area : 37.24; power : 1.28, 2.73, 3.84; I need to substitute each number with it's double (number*2). Is there anyway I can do this in VIM? I don't have perldo command in my version of VIM. %s/[0-9.]\+/\=2.0*str2float(submatch(0)

Re: Opening files in new buffers

2010-12-01 Thread Charles E Campbell Jr
Ven Tadipatri wrote: I like the way vim allows you to view the files in a directory, then directly go to them. But then to go back after editing the file I chose, I repeatedly hit ctrl-O until I get back to the file listing. It would be nice if I can maybe open the file in a new buffer, and when

Re: Strange looking of underscores

2010-11-13 Thread Charles E Campbell Jr
Matthias Guenther wrote: Hello guys, after a couple of months I really enjoy working with I got a very ugly highlighting of underscores. The backgroundcolor of an underscore gets a red color (see here what I mean http://picfront.de/d/7Vnm). How can I turn turn of this highlighting? The diffic

Re: netrw and 'autochdir'

2010-11-11 Thread Charles E Campbell Jr
Ben Fritz wrote: :help netrw-incompatible: NETRW BROWSING AND OPTION INCOMPATIBILITIES *netrw-incompatible* {{{2 Netrw has been designed to handle user options by saving them, setting the options to something that's compatible with netrw's needs, and then restoring them. However, the autoc

Re: vim - save password while editing remote files using scp

2010-10-30 Thread Charles E Campbell Jr
Aman Jain wrote: I'm trying to edit remote files using gvim in this manner: $ gvim scp://usern...@server.edu//home/username/new.txt But everytime I do a save, I have to enter password. I looked up on the internet to see if there's a way by which vim remembers remote passwords. So I found that c

Re: netrw v125: Texplore does not start browsing from current file's directory

2010-10-26 Thread Charles E Campbell Jr
Gianluca Ciccarelli wrote: Hi everyone, I've been using the netrw plugin for a while with great satisfaction. Recently, however, when I type ":Texplore" I get a new tab opened with the list of files, but instead of starting from the directory of the file opened at the moment of the command being

Re: Problem with netrw

2010-10-11 Thread Charles E Campbell Jr
Tintin72 wrote: Hi, I want to edit a file on a remote server so I tried to use netrw but I misunderstand how does it work. First I type: Nread ftp://lo...@server.com/index.html Vim ask me for the password then open the file in a cache as "no file name". But when I want to save modifications I

Re: Help installing vimballs

2010-10-07 Thread Charles E Campbell Jr
Charles E Campbell Jr wrote: Eran Borovik wrote: Hi all, I am trying to install the vim plugin camelcasemotion (which is a vimball) and I received the following errors: Vimball Archive extracted : 173 lines Error detected while processing function vimball#Vimball: line 131: E474: Invalid

Re: Help installing vimballs

2010-10-07 Thread Charles E Campbell Jr
Eran Borovik wrote: Hi all, I am trying to install the vim plugin camelcasemotion (which is a vimball) and I received the following errors: Vimball Archive extracted : 173 lines Error detected while processing function vimball#Vimball: line 131: E474: Invalid argument: silent w! ++enc=3 /home

Re: netrw and symbolic links

2010-10-06 Thread Charles E Campbell Jr
ThomasD wrote: Hi I'm just discovering Vim's ability to edit files that reside on a remote machine. I wish to run gVim on my Wndows machine, and the files that are locted on a linux machine are accesible by ftp. Everything was working fine, and I was browsing away on the remote machine, when I

Re: VIM and TCL

2010-10-06 Thread Charles E Campbell Jr
ppp wrote: Hi, I just started using TCL on a Windows platform. Currently, I use VIM to modify tcl files, then I have to go inside a tcl console (ActiveState) to source the file and then execute a function. Is there a way to launch TCL script within VIM? Ideally, I want to split VIM into two

Re: Renumber all buffers

2010-10-04 Thread Charles E Campbell Jr
Oivvio Polite wrote: I use minibufexpl.vim all the time which gives me a listing of all buffers and their respective numbers on screen all the time. This makes it very convenient to switch to other buffers by their number. But since I'm usually in the same vim session for days on end my buffer n

Re: Why Vimball archives are evil?

2010-09-25 Thread Charles E Campbell Jr
panshi...@routon.com wrote: vim_use@googlegroups.com 写于 2010-09-26 09:51:37: The more steps required, the more likely he is to move on to something else without trying the plugin. Agree, so why not simply provide .vim files, which does not need to be decompressed at all? I usually dis

Re: simple 16-bit random number generator

2010-09-18 Thread Charles E Campbell Jr
Bee wrote: simple 16-bit random number generator Do you have a favorite? I need small numbers randomized each iteration within a function. The following seems to work well for application. Rndm.vim, available at http://mysite.verizon.net/astronaut/vim/index.html#RNDM, passes Knuth's tes

Re: netrw copy from local to network is failing

2010-08-30 Thread Charles E Campbell Jr
epanda wrote: DechoRemOn That will put the debugging trace into a separate vim instance. Outch, I am always searching for the new instance of gvim. It has terminated all. Please try the following: 1. vim :DechoRemOn :Decho "Test" This should bring up a "remote" vim that will

Re: Netrw and new file through ftp connection

2010-08-28 Thread Charles E Campbell Jr
epanda wrote: now I am using a .netrc encrypted and I have done a func to decrypt it before using your script. Just last bugs, I see 2 blank lines with v141a (little bug). In my experience this was due to hiding ./ and ../ from the listing; I put a command to remove any and all blank lines

Re: Netrw and new file through ftp connection

2010-08-28 Thread Charles E Campbell Jr
epanda wrote: let g:netrw_ftp_cmd= "ftp -s:".$home.".netrc" When you use it, try :eftp://ftpperso.free.fr/whatever/path Regards, Chip Campbell Ok it works but there is a confusion due to the help that is not updated yet. if the user is under windows, the netrc's content should be l

Re: Netrw and new file through ftp connection

2010-08-28 Thread Charles E Campbell Jr
epanda wrote: Anyway, if g:netrw_ftp_cmd has -s: in it (or -S:), it will assume that its got login information like a .netrc. I was able to avoid manual entry of the userid+password that way. Hum, I have tested v141a with this line in my _vimrc let g:netrw_ftp_cmd= "ftp -s:" . $home .

Re: Netrw and new file through ftp connection

2010-08-27 Thread Charles E Campbell Jr
Hello, epanda: I got a Windows version of vim73, installed it (as my attempts at compiling vim now fail due to the lack of -mno-cygwin with gcc and my not having installed mingw), opened a cmd window, and was finally able to duplicate the problem you've been having. I also got a pair of unwa

Re: Netrw and new file through ftp connection

2010-08-27 Thread Charles E Campbell Jr
epanda wrote: Please read :help netrw-debug and make a debugging trace. That way we can find out exactly what's happening. Without any own setting, DEcho trace that : and it works but I have to type my password. -- With this line in my vimrc it fails. let g:netrw

Re: Netrw and new file through ftp connection

2010-08-26 Thread Charles E Campbell Jr
epanda wrote: show -- I'm used to using $HOME rather than $home, but perhaps that doesn't make any difference under Windows. Does $home have a trailing slash, or is it a backslash? You may have to change the backslash(es) to slashes. c:/Windows/System32/ftp -s:C:\Users\Admin/ftpconnect.

Re: Netrw and new file through ftp connection

2010-08-25 Thread Charles E Campbell Jr
epanda wrote: let g:netrw_ftp_cmd= "ftp -s:c:/ftpconnect.ftp" in your <.vimrc>. You may need full paths to ftp and ftpconnectt.ftp in the string, too. Now, to create a new, empty file using netrw and ftp: see :help netrw-% Regards, Chip Campbell I have added this line : let g:netrw_f

Re: Netrw and new file through ftp connection

2010-08-25 Thread Charles E Campbell Jr
epanda wrote: Through ftp command from windows. But I have post a recent thread to make autologin possible from netrw too. Charles told me to see how is it working under Windows and it works like that : ftp -s:c:/ftpconnect.ftp hostname ftpconnect.ftp contains : mylogin mypassword Can we se

Re: how to read long shell output

2010-08-22 Thread Charles E Campbell Jr
yosi izaq wrote: Aaron Lewis: " should work with standard unix command `less` and pipe , did you try with it ? ! cd %:h && nm `find .. -name *.so ` | less " Doesn't work. See: Error detected while processing /users/yizaq/.vimrc: line 534: E492: Not an editor command: less Christian Braband

Re: Conceal Greek letters in TeX

2010-07-11 Thread Charles E Campbell Jr
björn wrote: On Jul 10, 6:05 pm, "Benjamin R. Haskell" wrote: On Sat, 10 Jul 2010, björn wrote: ...but what's with the syntax highligting? Greek letters are highlighted with a medium dark grey background and light grey foreground making the letters almost impossible to see. I tried d

Re: Search for several words in each line with vim?

2010-07-07 Thread Charles E Campbell Jr
rewar wrote: Hi, I have looked around for a way to do this but just cant seem to find it. Basically, I have very large documents where I want to often search for a few words in a line, but they wont be all together. For example, I want to be able to find the line below in a large text document

Re: Broken URLs in Vim help files

2010-05-25 Thread Charles E Campbell Jr
Benjamin R. Haskell wrote: On Wed, 26 May 2010, Dominique Pellé wrote: Hi I noticed that the following URLs in Vim help files are broken. Does anyone know replacements for some of them? It would be nice to update help files if possible. Here are three... pi_netrw.txt: http://ww

Re: (g)vim changing directory on invocation

2010-05-19 Thread Charles E Campbell Jr
James Kanze wrote: I'm encountering a somewhat strange behavior when using gvim on Windows. Basically, if I'm in the directory C:\dev\svn\cal\ifg-record-2\Source, and invoke: /c/Program\ Files/Vim/vim72/gvim 'C:\dev\svn\cal\ifg- record-2\Source\Model\Vasicek.h' (from the Cygwin bash shell,

Re: Hwo to jump to specified position?

2010-05-17 Thread Charles E Campbell Jr
robert song wrote: Hi, everyone. In vim, CTRL+o and CTRL+i can be used to jump to previous and next position. But with cscope, how to jump to the specified position ? For example: [mm/memory.c] free_pmd_range -> [include/asm-generic/pgtable-nopmd.h] pmd_offset -> [fs/proc/task_mmu.c] pmd_walke

Re: New file opened when clicking on a file in netrw column list (v138b)

2010-05-16 Thread Charles E Campbell Jr
Jean Johner wrote: Hello, Windows with default _vimrc. Consider a diectory containing 2 files file1, file2 gvim file1 :e . i twice (to get column list) Click on file2 Result: open a new file named "ile2" Errors in netrw v138b addressed in my latest posts are possibly linked. Hello, The "def

Re: escape sequence in output

2010-05-03 Thread Charles E Campbell Jr
Mathieu Zhang wrote: Hi, I am working in a project in which someone else wrote a makefile with a lot of fancy coloring. When I type :!make, the output is scrolled through with a lot of escape sequence like "^]0;30;" for color, making it completely unreadable. Can I have vim either (1) interpr

Re: Strange problem with netrw in vim 7.2 windows

2010-04-30 Thread Charles E Campbell Jr
Jack Donohue wrote: I use the x (execute) command a lot " Netrw Directory Listing (netrw v132) " Sorted by time " Quick Help: :help -:go up dir D:delete R:rename s:sort-by x:exec "

Re: Unexpected behaviour of File browser in multi-windows environment

2010-04-16 Thread Charles E Campbell Jr
Tony Mechelynck wrote: On 04/03/10 16:24, Matt Wozniski wrote: On Thu, Mar 4, 2010 at 10:17 AM, Patrick Texier wrote: On Thu, 04 Mar 2010 09:54:01 -0500, Charles Campbell wrote: Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable let lastline   =3D line('

Re: Unexpected behaviour of File browser in multi-windows environment

2010-03-06 Thread Charles E Campbell Jr
Jean Johner wrote: Charles Campbell wrote: I've now tried this with a Windows (vista) o/s: I seem to need to double-click the leftmouse on file1's status bar, but otherwise it (v137e) seems to work ok. Hi Chip, You are right, it works when double-clicking, but note that return to the n

Re: Netrw: File modified by just changing the listing style

2010-03-06 Thread Charles E Campbell Jr
sc wrote: On Friday 05 March 2010 08:10:41 am Jean Johner wrote: Hello, This concerns netrw v137e with Linux operating system. Please do the following: gvim . (to browse the current directory) Type i 8 times (to change the listing style 8 times) :q (to quit) You get E37: No write since las

Re: Unexpected behaviour of File browser in multi-windows environment

2010-03-04 Thread Charles E Campbell Jr
Jean Johner wrote: Charles Campbell said: I did this with gvim -u NONE file1 :set nocp :so ~/.vim/plugin/netrwPlugin.vim :sp . [click on status line of file1] which avoids any interference from my .vimrc or other plugins. >From your syntax, it seems that you did it under Linux. There

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

2010-03-03 Thread Charles E Campbell Jr
Wu, Yue wrote: On Thu, Jan 21, 2010 at 09:25:47PM -0500, Charles E Campbell Jr wrote: 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 c

Re: netrw troubles

2010-03-03 Thread Charles E Campbell Jr
rameo wrote: I have found an error in netrw plugin why I can't go inside some directories. I always receive this message in these directories (using "t"): Not a regular file^M After testing and trying I found the reason: every ftp directory without an ending "trailing slash" gives this error.

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: 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: 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: 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: 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: 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

(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: 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

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: 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: 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: 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: '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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

<    1   2   3   4   >