Re: [VIM] Re: [VIM] Re: I have got one "ml_get" error

2006-08-31 Thread Akria Sheng
Walter Cazzola wrote: > > On Thu, 31 Aug 2006, Akria Sheng wrote: > >> Yes, I am using latin1 encoding. The linux which I use don't install any >> function about chinese. >> So the environment is english only. But I am not sure there is other >> strange >> configuration to make this mistake. I

Re: I have got one "ml_get" error

2006-08-31 Thread Akria Sheng
A.J.Mechelynck wrote: > > Akria Sheng wrote: >> >> >> A.J.Mechelynck wrote: >>> Akria Sheng wrote: A.J.Mechelynck wrote: > Akria Sheng wrote: >> I have got one error to crash vim. >> It happened when meet the following condition: >>A. must in Linux(solaris and winxp is

ANN: lookupfile 1.4

2006-08-31 Thread Hari Krishna Dara
A new version of lookupfile plugin is available for download at the below location: http://www.vim.org/scripts/script.php?script_id=1581 This is a bugfix release. Please send me any feedback you have. -- Thanks, Hari __ Do You Yahoo!? Tired of s

bug with vimdiff and 'modifiable' check

2006-08-31 Thread Hari Krishna Dara
I just found out that Vim checks the wrong buffer for 'modifiable' flag while doing a :diffput. I have two buffers being diffed, with the left one set to 'nomodifiable', and the right one set to 'modifiable', and when I try to :diffput from left to right, it complains that it can't be done. When I

Re: vim is too smart for its own good

2006-08-31 Thread Gary Johnson
On 2006-08-31, Bruce Korb <[EMAIL PROTECTED]> wrote: > Diwaker Gupta wrote: > > And 'vim -u NONE' doesn't work for you? > > alias vi='vim -u NONE' > > OK. That works. Can't that be done with something a little more > obvious in ~/.vimrc ?? So, I'll burn that in my brain and not be > bothered a

Re[2]: vim is too smart for its own good

2006-08-31 Thread Alan G Isaac
On Thu, 31 Aug 2006, Tim Chase apparently wrote: > There's always "ed"... > -more ubiquitous in its presence > -consistent in its behavior > -powerful > -tools like "diff" interoperate with it > -it can be used on a slow TTY > -can be used on with a one-line display > -smaller executable s

Re: vim is too smart for its own good

2006-08-31 Thread A.J.Mechelynck
Bruce Korb wrote: Diwaker Gupta wrote: And 'vim -u NONE' doesn't work for you? alias vi='vim -u NONE' OK. That works. Can't that be done with something a little more obvious in ~/.vimrc ?? So, I'll burn that in my brain and not be bothered anymore. Thank you all. Bruce "Something a li

RE: Copy/paste to another console

2006-08-31 Thread Gene Kwiecinski
>If both programs can access a common clipboard, use it. Vim knows it as >the + register. So, for instance, to yank three lines to the clipboard: > "+3yy >and to paste the clipboard before the cursor: > "+P >etc. Kewl, I'll have to remember that, too.

Re: vim is too smart for its own good

2006-08-31 Thread Tim Chase
If distributions were to normally install it, that would be fine. Installing my own vi is way over the top for what my needs ought to require. Surely getting vim to act like a plain text editor cannot be _that_ hard!!! [tongue in cheek] There's always "ed"... -more ubiquitous in its presence

RE: Copy/paste to another console

2006-08-31 Thread Gene Kwiecinski
>I've a little problem, I do remote box A with console A using putty >(under MS) then using vim open file A, I do copy a line with yy in >file A, so I do remote to box B with console B using putty (under MS), >then open file B, the question how to do paste to file B in console B >without mouse (I d

Re: vim is too smart for its own good

2006-08-31 Thread Bruce Korb
Diwaker Gupta wrote: And 'vim -u NONE' doesn't work for you? alias vi='vim -u NONE' OK. That works. Can't that be done with something a little more obvious in ~/.vimrc ?? So, I'll burn that in my brain and not be bothered anymore. Thank you all. Bruce

Re: vim is too smart for its own good

2006-08-31 Thread A.J.Mechelynck
Bruce Korb wrote: Hi, I'd like to use a plain text editor. I don't want any surprises. I don't want it to think it understands language syntax. I don't want it to colorize things. I don't want it to do anything at all for me, unless I explicitly say it is okay for it to do so. In short, I want

Re: vim is too smart for its own good

2006-08-31 Thread Bruce Korb
Michael Hernandez wrote: you might try nvi? http://www.bostic.com/vi/ Mike $ type nvi ksh: type: nvi: not found Hi Mike, If distributions were to normally install it, that would be fine. Installing my own vi is way over the top for what my needs ought to require. Surely getting vim to act

Re: vim is too smart for its own good

2006-08-31 Thread Diwaker Gupta
alone, please. I want it all turned off. I have been unable to find a simple way to do that. Or even any way to do that, because I have not found any way at all to turn off the ``you must want this line prefixed with a double slash'' feature. Help! Suggestions, please? Thank you! - Bruce A

Re: vim is too smart for its own good

2006-08-31 Thread Michael Hernandez
On Aug 31, 2006, at 3:19 PM, Bruce Korb wrote: Hi, I'd like to use a plain text editor. I don't want any surprises. I don't want it to think it understands language syntax. I don't want it to colorize things. I don't want it to do anything at all for me, unless I explicitly say it is okay for

vim is too smart for its own good

2006-08-31 Thread Bruce Korb
Hi, I'd like to use a plain text editor. I don't want any surprises. I don't want it to think it understands language syntax. I don't want it to colorize things. I don't want it to do anything at all for me, unless I explicitly say it is okay for it to do so. In short, I want vi. Except Linux d

Re: Problem with :normal?

2006-08-31 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: Hey Vimmers, after reading through a thread earlier on sourcing commands from a file i did a little experimentation with :normal. If given the line: test this line ^ with the cursor at the carat and you do :normal vf'df'D nothing is deleted and you are left in norma

RE: Problem with :normal?

2006-08-31 Thread Chuck Mason
Sorry for the added reply, but this is indeed very interesting. I get the same results from recording: qqvf'df'Dq -- does what you expect executing all commands @q -- behaves like :normal vf'df'D and stops executing after f' :normal f' is another example where the are ne

RE: Problem with :normal?

2006-08-31 Thread Chuck Mason
If you do :normal vfld then what happens is what you expect. So, my guess is that the "script" is simply stopped when f' doesn't do anything. I.e. there is no ' so f' errs and the rest of the command is terminated. That's just my *guess*, though. Chuck -Original Message- From: [EMAIL

Problem with :normal?

2006-08-31 Thread dcuaron
Hey Vimmers, after reading through a thread earlier on sourcing commands from a file i did a little experimentation with :normal. If given the line: test this line ^ with the cursor at the carat and you do :normal vf'df'D nothing is deleted and you are left in normal mode. If on the other ha

Re: Font problems on Linux after upgrade

2006-08-31 Thread Yakov Lerner
On 8/31/06, Boris Dinkevich <[EMAIL PROTECTED]> wrote: Hello Yakov I have tried to configure manualy, but to not avail. (By the way, I have KDE) You are probably missing gtk2 development libraries. On fedora, package name is gtk2-devel. On your Linux, I don't know Yakov Tried compiling

silent make

2006-08-31 Thread Luis A. Florit
Hi, I use Vim and Quickfix to compile C++ programs. I have set let &makeprg='g++ -o %< %' as the compiler. My problem is that while compiling, vim goes to the console, distracting me. I don't need the console, if I use Quickfix! I would like it to stay in the buffer window. I m

Re: Font problems on Linux after upgrade

2006-08-31 Thread A.J.Mechelynck
Boris Dinkevich wrote: Hello everyone, I am using Mandrake 9.2 and have recently upgraded from Vim6 to 7. Unfortunately after the update, the look&feel changed, I was able to restore most of the settings but am unable to restore the font configuration. My font was similar (or the same) to "Mo

Re: Running a Set of Commands from a File

2006-08-31 Thread striker
I have a set of quotes that I download as a .html file and then manipulate. I use a file called data.vim to do everything I need. I run the file in Vim with the command :so data.vim Here is an example from the file: :e ~/Desktop/sf.html :v/String('/d :execute "norm vf'df'D" :%s/|/\r/g :%!so

Re: utf8 vs string handling vs virtcol

2006-08-31 Thread Mikolaj Machowski
Dnia czwartek, 31 sierpnia 2006 13:09, Thomas napisał: > > This is wrong. You need: > > let col = col(".") > > let line = strpart(getline("."), col - 1) > > Unfortunately, IIRC this doesn't work with wrapped lines which is why I > chose virtcol() ... But, well can't reprodu

Re: Font problems on Linux after upgrade

2006-08-31 Thread A.J.Mechelynck
Boris Dinkevich wrote: Hello, I have used the AAP utility for installation. Is there a way to reconfigure & recompile for GTK2 (a howto/help perhaps) Thanks alot for your help Boris [...] Configure will select the GTK2 GUI by default, provided that: a) it is installed, including "development"

Re: Font problems on Linux after upgrade

2006-08-31 Thread Boris Dinkevich
Hello Yakov I have tried to configure manualy, but to not avail. (By the way, I have KDE) Tried compiling with: --enable-gui=gtk2 but when I try to start gvim I get the following error: E25: GUI cannot be used: Not enabled at compile time PS. I am not sure how I can start the old gvim (if its

How does Vim bundle the actions done by a BufWritePre autocmd?

2006-08-31 Thread Elliot Shank
I've got a situation similar to the following: augroup A autocmd BufWritePre [stuff that changes the buffer before writing] augroup END augroup B autocmd BufWritePre [stuff that changes the buffer before writing] autocmd BufWritePost undo augroup END Obviously, in group A I'm try

Re: Running a Set of Commands from a File

2006-08-31 Thread Charles E Campbell Jr
Mike Blonder wrote: I have saved a file called 'commands.' This file has all of the commands (g /foobar/,/goobar/ d, etc) I need to edit some very large files. I want to 'run' this commands file from within each of the large files that I need to edit. 1) do I have to chmod 'commands' as an

Running a Set of Commands from a File

2006-08-31 Thread Mike Blonder
Hi. I have saved a file called 'commands.' This file has all of the commands (g /foobar/,/goobar/ d, etc) I need to edit some very large files. I want to 'run' this commands file from within each of the large files that I need to edit. 1) do I have to chmod 'commands' as an executable? 2) can

Re: utf8 vs string handling vs virtcol

2006-08-31 Thread A.J.Mechelynck
Thomas wrote: Hi, In a plugin on mine, I have the following lines: let col = virtcol(".") let line = strpart(getline("."), col - 1) The idea is to get the line right of the cursor including the character under the cursor. This works fine for latin1 encoding but yields

Using openssl bf encryption

2006-08-31 Thread Brian McKee
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All I'd like to be able to edit an encrypted plain text file using vim. It's blowfish encoded with openssl. I noticed right away that the contents could end up in .viminfo, so I started doing some research. I looked at these pages htt

Re: Font problems on Linux after upgrade

2006-08-31 Thread Yakov Lerner
On 8/31/06, Boris Dinkevich <[EMAIL PROTECTED]> wrote: Hello, I have used the AAP utility for installation. Is there a way to reconfigure & recompile for GTK2 (a howto/help perhaps) aap downloaded all sources whcih contain, among other things, configure script. Go to the directory of sources a

Re: [VIM] Re: [VIM] Re: I have got one "ml_get" error

2006-08-31 Thread Walter Cazzola
On Thu, 31 Aug 2006, Akria Sheng wrote: Yes, I am using latin1 encoding. The linux which I use don't install any function about chinese. So the environment is english only. But I am not sure there is other strange configuration to make this mistake. I have tried to change some options include gu

Re: Font problems on Linux after upgrade

2006-08-31 Thread Boris Dinkevich
Hello, I have used the AAP utility for installation. Is there a way to reconfigure & recompile for GTK2 (a howto/help perhaps) Thanks alot for your help Boris On 8/31/06, Robert Cussons <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 8/31/06, Boris Dinkevich <[EMAIL PROTECTED]> wrote: > >>

Re: utf-8 encoding without BOM

2006-08-31 Thread Stefan Walk
the interpreter executes code between , and doesn't output it's content, but outputs everything else in the file. The BOM marks are located *before* the Also, if you are using multiple PHP files that include each other, a BOM will be sent for every PHP file you are including, which will return i

Re: Netrw closes on execute

2006-08-31 Thread Josh D
Great. Thanks! josh On 8/31/06, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: Josh D wrote: > > when I have multiple tabs opened and I run some shell command (eg: > !ls), then all tabs where only netrw is running are closed. How can I > prevent that? > > Versions: > vim: 7.0-035+0bpo1 (back

Re: Font problems on Linux after upgrade

2006-08-31 Thread Yakov Lerner
On 8/31/06, Boris Dinkevich <[EMAIL PROTECTED]> wrote: Hello everyone, I am using Mandrake 9.2 and have recently upgraded from Vim6 to 7. Unfortunately after the update, the look&feel changed, I was able to restore most of the settings but am unable to restore the font configuration. My font wa

Font problems on Linux after upgrade

2006-08-31 Thread Boris Dinkevich
Hello everyone, I am using Mandrake 9.2 and have recently upgraded from Vim6 to 7. Unfortunately after the update, the look&feel changed, I was able to restore most of the settings but am unable to restore the font configuration. My font was similar (or the same) to "Monospace" font as appears i

Re: utf8 vs string handling vs virtcol

2006-08-31 Thread Thomas
Yes it does. Take simple example, Create line with 1 high utf-8 char entering Ctrl-Vu1234 then a. Ok, you're right as far as col() is concerned. I'm having here some problems though with enc=utf8 & soft-wrapped lines & showbreak=¦, which I mistook as being a issue related to col(). The cursor

Re: vim 7 on win xp console slow

2006-08-31 Thread Yakov Lerner
On 8/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello, When i press , it takes about one second to finish, i.e. switching from insert into normal mode, or placing the cursor in the buffer window when escaping from the commandline. All other things don't seem to create delays. This do

Re: utf8 vs string handling vs virtcol

2006-08-31 Thread Yakov Lerner
Try :echo col('a') Ooops my mistake. I meant to write: Try :echo col('.') Yakov

vim 7 on win xp console slow

2006-08-31 Thread J.Hofmann
Hello, When i press , it takes about one second to finish, i.e. switching from insert into normal mode, or placing the cursor in the buffer window when escaping from the commandline. All other things don't seem to create delays. This does not happen in vim 6.2. Is there something I can try to

Re: utf8 vs string handling vs virtcol

2006-08-31 Thread Yakov Lerner
On 8/31/06, Thomas <[EMAIL PROTECTED]> wrote: > This is wrong. You need: > let col = col(".") > let line = strpart(getline("."), col - 1) Unfortunately, IIRC this doesn't work with wrapped lines which is why I chose virtcol() ... But, well can't reproduce what I did (or

Re: utf-8 encoding without BOM

2006-08-31 Thread Péter Zsoldos
A.J.Mechelynck wrote: it may be that the "headers" you talk about must be in 7-bit US-ASCII: in that case it might be simplest to edit the headers as a separate file with These headers I talk about are HTTP headers, and according to protocol, they should be sent out to the client *before* any c

Netrw closes on execute

2006-08-31 Thread Josh D
Hello, when I have multiple tabs opened and I run some shell command (eg: !ls), then all tabs where only netrw is running are closed. How can I prevent that? Versions: vim: 7.0-035+0bpo1 (backport on debian-sarge) netrw: v98 and also 102 Thank you josh

Re: utf-8 encoding without BOM

2006-08-31 Thread Péter Zsoldos
Yakov Lerner wrote: :e ++enc=utf-8 file Thanks, it seems to work. Peter

Re: utf8 vs string handling vs virtcol

2006-08-31 Thread Thomas
This is wrong. You need: let col = col(".") let line = strpart(getline("."), col - 1) Unfortunately, IIRC this doesn't work with wrapped lines which is why I chose virtcol() ... But, well can't reproduce what I did (or thought that I did) 10 minutes ago. Anyway, it doe

Re: [VIM] Re: I have got one "ml_get" error

2006-08-31 Thread Akria Sheng
Walter Cazzola wrote: > > On Thu, 31 Aug 2006, Akria Sheng wrote: > >> Dear Tony, >> I have update the netrw to version 102, but it still happened. >> The two line are changed to be 4424 & 4426. >> When I comment the two line again, vim open the fileexplorer success. > > just my 2¢, are you u

Re: utf8 vs string handling vs virtcol

2006-08-31 Thread Yakov Lerner
On 8/31/06, Thomas <[EMAIL PROTECTED]> wrote: Hi, In a plugin on mine, I have the following lines: let col = virtcol(".") let line = strpart(getline("."), col - 1) This is wrong. You need: let col = col(".") let line = strpart(getline("."),

utf8 vs string handling vs virtcol

2006-08-31 Thread Thomas
Hi, In a plugin on mine, I have the following lines: let col = virtcol(".") let line = strpart(getline("."), col - 1) The idea is to get the line right of the cursor including the character under the cursor. This works fine for latin1 encoding but yields wrong results

Re: utf-8 encoding without BOM

2006-08-31 Thread A.J.Mechelynck
Péter Zsoldos wrote: Greetings, I'm using gVim 6.3 on Windows Xp Sp2 and I ran into a problem that I need to edit files with UTF-8 encoding, but I just can't get VIM to do so. If I create utf-8 encoded files in notepad, VIM accepts this, but places the BOM into the file. This BOM causes me a

Re: utf-8 encoding without BOM

2006-08-31 Thread Yakov Lerner
On 8/31/06, Péter Zsoldos <[EMAIL PROTECTED]> wrote: Greetings, I'm using gVim 6.3 on Windows Xp Sp2 and I ran into a problem that I need to edit files with UTF-8 encoding, but I just can't get VIM to do so. If I create utf-8 encoded files in notepad, VIM accepts this, but places the BOM into th

Re: [VIM] Re: I have got one "ml_get" error

2006-08-31 Thread Walter Cazzola
On Thu, 31 Aug 2006, Akria Sheng wrote: Dear Tony, I have update the netrw to version 102, but it still happened. The two line are changed to be 4424 & 4426. When I comment the two line again, vim open the fileexplorer success. just my 2¢, are you using a latin encode? I have noted your addres

Re: I have got one "ml_get" error

2006-08-31 Thread A.J.Mechelynck
Akria Sheng wrote: A.J.Mechelynck wrote: Akria Sheng wrote: A.J.Mechelynck wrote: Akria Sheng wrote: I have got one error to crash vim. It happened when meet the following condition: A. must in Linux(solaris and winxp is OK) B. vim7.0(6.4 is ok) C. open one huge file(exceed 368710

utf-8 encoding without BOM

2006-08-31 Thread Péter Zsoldos
Greetings, I'm using gVim 6.3 on Windows Xp Sp2 and I ran into a problem that I need to edit files with UTF-8 encoding, but I just can't get VIM to do so. If I create utf-8 encoded files in notepad, VIM accepts this, but places the BOM into the file. This BOM causes me a lot of problems, sinc

Re: I have got one "ml_get" error

2006-08-31 Thread Akria Sheng
A.J.Mechelynck wrote: > > Akria Sheng wrote: >> >> A.J.Mechelynck wrote: >>> Akria Sheng wrote: I have got one error to crash vim. It happened when meet the following condition: A. must in Linux(solaris and winxp is OK) B. vim7.0(6.4 is ok) C. open one huge fi

Re: I have got one "ml_get" error

2006-08-31 Thread A.J.Mechelynck
Akria Sheng wrote: A.J.Mechelynck wrote: Akria Sheng wrote: I have got one error to crash vim. It happened when meet the following condition: A. must in Linux(solaris and winxp is OK) B. vim7.0(6.4 is ok) C. open one huge file(exceed 368710 bytes) then type ":sp ./" In general, it

Re: Can I make my sesion forget it's a session

2006-08-31 Thread Marius Roets
On 8/30/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: A session is not only a number of settings, it's also one or more editfiles etc. To make a session forget all that makes it a session, use :qa followed by vim or gvim (the latter may be entered in an Alt-F2 popu

Re: I have got one "ml_get" error

2006-08-31 Thread Akria Sheng
A.J.Mechelynck wrote: > > Akria Sheng wrote: >> I have got one error to crash vim. >> It happened when meet the following condition: >>A. must in Linux(solaris and winxp is OK) >>B. vim7.0(6.4 is ok) >>C. open one huge file(exceed 368710 bytes) then type ":sp ./" >> >>In general