Re: Change the size of buffers in vimdiff

2009-05-27 Thread Markus Heidelberg
Ben Fritz, 27.05.2009: On May 22, 12:24 pm, Markus Heidelberg markus.heidelb...@web.de wrote: Ben Fritz, 22.05.2009: Why bypass the .bat wrappers? To make vimdiff work when invoked in a shell. I've never seen any problems with them. I

Re: help w/variable tabstop feature (not working?)

2009-05-27 Thread Markus Heidelberg
Charles Campbell, 20.05.2009: Linda W wrote: I seem to remember using variable tabstops at one point - but it might have been an older (~20-25 years ago), that I used for a while, not sure. I seem to remember being able to something along the lines of : vim:ts=17,34,51,55 or #

Opening vi editor from C application

2009-05-27 Thread mthread
Hi, I am trying to run the vi editor from a C application using 'system' command(ie isystem(vi main.cpp). The issue is, most of the keys are not working as it is supposed to be. For example, the arrow keys and delete key are not working. Event the color scheme associated with file opened(ie

Re: Opening vi editor from C application

2009-05-27 Thread pansz
mthread 写道: Hi, I am trying to run the vi editor from a C application using 'system' command(ie isystem(vi main.cpp). The issue is, most of the keys are not working as it is supposed to be. For example, the arrow keys and delete key are not working. Event the color scheme associated

Re: Highlight Everything But a Specific Pattern

2009-05-27 Thread Andy Wokula
Waters, Bill schrieb: Doing it visually is ok. And this gets me close... /. :match Ignore /{pattern}/ Search highlighting for me is black text on a red background. My normal background is black. The result of the :match Ignore /{pattern}/ is that the pattern text is black

Re: Opening vi editor from C application

2009-05-27 Thread mthread
Hi, Thanks a lot. An alias has been set to vim(ie alias -x vi=/usr/local/ bin/vim). Now everything works fine. I just need to call vim instead of vi from my C application. On May 27, 1:12 pm, pansz panshi...@routon.com wrote: mthread 写道: Hi,     I am trying to run the vi editor from a

Re: Opening vi editor from C application

2009-05-27 Thread Prasad Joshi
Hi, Probably, there is an alias defined in your shell. So when invoke vi from the shell it could be invoking vim. And when you invoke the vi from the system() API it could be invoking vi and not vim. Check out all the aliases defined on your system (alias command). The other thing that might

emacs style search highlighting

2009-05-27 Thread Nick Cripps
Hi, I've been using emacs for a while and recently decided that I'm fed up with it. vim looks like it will suit me much better, but I'm still learning to use it. One thing I don't like so much is the search highlighting behavior. In emacs matches are highlighted while you type the

Re: emacs style search highlighting

2009-05-27 Thread Andy Wokula
Nick Cripps schrieb: Hi, I've been using emacs for a while and recently decided that I'm fed up with it. vim looks like it will suit me much better, but I'm still learning to use it. One thing I don't like so much is the search highlighting behavior. In emacs matches are highlighted

Re: beep when search hit BOTTOM, continuing at TOP

2009-05-27 Thread Andy Wokula
marco restelli schrieb: Dear all, a small question: when searching for a pattern, after reaching the bottom of the file one gets the message search hit BOTTOM, continuing at TOP (same after hitting TOP). Is it possible to get also a beep, together with the message? Thank you, Marco

Open directly through ftp with macro or similar

2009-05-27 Thread alberto
*English: (sorry for my english, is not very nice) * Hi, I'm programmer and I always use Vi-Vim. I work directly with source code in a host. I usually connect by telnet and then open de code with vi. In the host is not installed Vim so if a want to use it I have to access from my local

RE: emacs style search highlighting

2009-05-27 Thread John Beckett
Nick Cripps wrote: What I would like is to have all matches highlighted from when I perform the search and stay highlighted only until I press any key other than n or N (ie emacs highlighting behavior). Frankly it's best to try things the Vim way for quite a long while before customising it

Re: emacs style search highlighting

2009-05-27 Thread Nick Cripps
On 27 May 2009, at 13:22, Andy Wokula wrote: You can map a key to :nohlsearch :h :noh :noremap Leaderh :C-UnohlsearchCR which is the usual approach. That is nice and flexible. Or you can put the following in a script file and :source it (not deeply tested, but works ok for me).

Re: emacs style search highlighting

2009-05-27 Thread Nick Cripps
Hi, On 27 May 2009, at 13:50, John Beckett wrote: Nick Cripps wrote: What I would like is to have all matches highlighted from when I perform the search and stay highlighted only until I press any key other than n or N (ie emacs highlighting behavior). Frankly it's best to try things the

Re: emacs style search highlighting

2009-05-27 Thread Raúl Núñez de Arenas Coronado
Saluton Nick :) On Wed 27 May 2009 14:37 +0200, Nick Cripps n...@gmail.com dixit: I am pretty used to moving clearing the search highlighting like it does in emacs but, when I think about it, I think you are right: being able to scroll around with the highlighting staying is nice. Your

Re: Open directly through ftp with macro or similar

2009-05-27 Thread Charles Campbell
alberto wrote: _English: (sorry for my english, is not very nice) _ Hi, I'm programmer and I always use Vi-Vim. I work directly with source code in a host. I usually connect by telnet and then open de code with vi. In the host is not installed Vim so if a want to use it I have to

Re: Open directly through ftp with macro or similar

2009-05-27 Thread alberto
Thank you Charles, but it is not what I need. That's why what I want is avoid browsing, the code is in a lot of different directories but I have the list of the source code I must modify. I don't know if it's possible to set up a map key that read the current line (where is the path of the source

Re: Reuse search pattern?

2009-05-27 Thread Ben Fritz
On May 26, 9:49 pm, wilson.m@convergys.com wrote: Hi there, When I substitute using :s/{pattern}/{string}/{option}, I prefer to use /{pattern} to check out whether the pattern is satisfactory. After checking, I will run the substitute command. However, if the pattern string is too

Re: Open directly through ftp with macro or similar

2009-05-27 Thread _sc_
On Wednesday 27 May 2009 9:22 am, alberto wrote: Thank you Charles, but it is not what I need. That's why what I want is avoid browsing, the code is in a lot of different directories but I have the list of the source code I must modify. I don't know if it's possible to set up a map key

Re: Change the size of buffers in vimdiff

2009-05-27 Thread Ben Fritz
On May 27, 1:45 am, Markus Heidelberg markus.heidelb...@web.de wrote: I didn't mean the built-in interpreter of cmd.exe when I talked about shell, but sh.exe or bash.exe or something. Sorry, my mistake. Somehow I missed the part where we were talking about cygwin in this thread. I tend to

Re: beep when search hit BOTTOM, continuing at TOP

2009-05-27 Thread Ben Fritz
On May 26, 12:50 pm, marco restelli mreste...@gmail.com wrote: Dear all,    a small question: when searching for a pattern, after reaching the bottom of the file one gets the message search hit BOTTOM, continuing at TOP (same after hitting TOP). Is it possible to get also a beep, together

Re: Open directly through ftp with macro or similar

2009-05-27 Thread Charles Campbell
_sc_ wrote: On Wednesday 27 May 2009 9:22 am, alberto wrote: Thank you Charles, but it is not what I need. That's why what I want is avoid browsing, the code is in a lot of different directories but I have the list of the source code I must modify. I don't know if it's possible to set

Re: Open directly through ftp with macro or similar

2009-05-27 Thread alberto
YES! thank you! 2009/5/27 Charles Campbell charles.e.campb...@nasa.gov _sc_ wrote: On Wednesday 27 May 2009 9:22 am, alberto wrote: Thank you Charles, but it is not what I need. That's why what I want is avoid browsing, the code is in a lot of different directories but I have

Re: Open directly through ftp with macro or similar

2009-05-27 Thread Charles Campbell
alberto wrote: Thank you Charles, but it is not what I need. That's why what I want is avoid browsing, the code is in a lot of different directories but I have the list of the source code I must modify. I don't know if it's possible to set up a map key that read the current line (where

Re: Quickfix window cannot enter window anymore?

2009-05-27 Thread Ben Fritz
On May 26, 10:33 am, David Fishburn dfishburn@gmail.com wrote: Now it C-W C-W, switch back to the original buffer and hit it again C-W C-W. My cursor will not re-enter the quickfix window. Using the mouse also does not work. When I do click on the window, my cursor is actually moved to

RE: Reuse search pattern?

2009-05-27 Thread Gene Kwiecinski
When I substitute using :s/{pattern}/{string}/{option}, I prefer to use /{pattern} to check out... You already got answer by now, but in general, if you just need to modify the pattern if it be *un*satisfactory, just type '/' and then scroll through the earlier search patterns with the up/down

RE: Fast vimdiff command to just quit? [sj]

2009-05-27 Thread Gene Kwiecinski
Does anyone know the proper / quick and dirty way to just quit, darn it? I use this: :qa Or alt-F4. :D --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

Re: beep when search hit BOTTOM, continuing at TOP

2009-05-27 Thread marco restelli
On Wed, May 27, 2009 at 4:51 PM, Ben Fritz fritzophre...@gmail.com wrote: On May 26, 12:50 pm, marco restelli mreste...@gmail.com wrote: Dear all, a small question: when searching for a pattern, after reaching the bottom of the file one gets the message search hit BOTTOM, continuing at

Re: beep when search hit BOTTOM, continuing at TOP

2009-05-27 Thread Tim Chase
:help 'wrapscan' Ben, thank you, this is indeed my problem! I like the wrapping though, I just find it too silent. You can make it easy to toggle this on/off: :nnoremap f4 :set wrapscan!barset wrapscan?cr -tim --~--~-~--~~~---~--~~ You received this

how to write output of il to a file

2009-05-27 Thread Bee
How can I write the output of :il /pattern/ or other such results to a file? -- Bill Muench Santa Cruz, California --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

tab order

2009-05-27 Thread netimen
Now when I use gt command I go to the tab to the right. Can I configure vim to go to the tab last used (like in opera browser)? --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

Re: tab order

2009-05-27 Thread alberto
Hi!, try with gT. Saludos 2009/5/27 netimen neti...@gmail.com Now when I use gt command I go to the tab to the right. Can I configure vim to go to the tab last used (like in opera browser)? --~--~-~--~~~---~--~~ You received this message from the vim_use

Re: how to write output of il to a file

2009-05-27 Thread Simon Ruderich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Wed, May 27, 2009 at 08:31:55AM -0700, Bee wrote: How can I write the output of :il /pattern/ or other such results to a file? :help redir :redir file :silent il /pattern/ :redir END Simon - -- + privacy is necessary + using

Re: tab order

2009-05-27 Thread netimen
thanks, but I mean another thing. I have 5 tabs and I use 2-nd and 4- th. I want gt jumping from 2-nd tab to 4-th, not to 3-d, and then from 4-th back to 2-nd. So the tab order is not left--right, but most recently used -- less recently used On 27 май, 20:03, alberto artel...@gmail.com wrote:

Re: emacs style search highlighting

2009-05-27 Thread Jerry Rocteur
On 27 May 2009, at 11:51, Nick Cripps wrote: Hi, I've been using emacs for a while and recently decided that I'm fed up with it. vim looks like it will suit me much better, but I'm still learning to use it. One thing I don't like so much is the search highlighting behavior. In emacs

map m back to set mark

2009-05-27 Thread Joy
I changed my vimrc config file and now it seems like the new config that i use has reset the mapping to mark points in a file using: m key I want to map m to set marks can someone tell me how to do this? Thanks! --~--~-~--~~~---~--~~ You received this message

Re: map m back to set mark

2009-05-27 Thread Ben Fritz
On May 27, 10:28 am, Joy harshi@gmail.com wrote: I changed my vimrc config file and now it seems like the new config that i use has reset the mapping to mark points in a file using: m key I want to map m to set marks can someone tell me how to do this? If I understand correctly, you

Search Current Buffers?

2009-05-27 Thread Chris Mueller
Hola. Currently, I use... View last search results in their own window (Cur file) nmap leaderw :vimgrep //j %CR:copenCRCR to open up a quickfix window of my last searched term in my quickfix window. I usually have a number of buffers open; is it possible to do the same behavior, but in all

Re: Fast vimdiff command to just quit? [sj]

2009-05-27 Thread vimml
On 11:26 Wed 27 May , Gene Kwiecinski wrote: Or alt-F4. :D Strangely, this doesn't quit vim at all. ;-) Kind regards from my fourth workspace, Kai -- All mail clients suck. This one just sucks less. --~--~-~--~~~---~--~~ You received this

Re: Search Current Buffers?

2009-05-27 Thread Ben Fritz
On May 27, 1:18 pm, Chris Mueller wormina...@gmail.com wrote: Hola. Currently, I use... View last search results in their own window (Cur file) nmap leaderw :vimgrep //j %CR:copenCRCR to open up a quickfix window of my last searched term in my quickfix window.  I usually have a number

Re: Search Current Buffers?

2009-05-27 Thread Chris Mueller
On Wed, May 27, 2009 at 4:09 PM, Ben Fritz fritzophre...@gmail.com wrote: On May 27, 1:18 pm, Chris Mueller wormina...@gmail.com wrote: Hola. Currently, I use... View last search results in their own window (Cur file) nmap leaderw :vimgrep //j %CR:copenCRCR to open up a

Re: Search Current Buffers?

2009-05-27 Thread Erik Falor
On Wed, May 27, 2009 at 02:18:21PM -0400, Chris Mueller wrote: Hola. Currently, I use... View last search results in their own window (Cur file) nmap leaderw :vimgrep //j %CR:copenCRCR to open up a quickfix window of my last searched term in my quickfix window. I usually have a

Re: Printing out the documentations

2009-05-27 Thread Wu, Yue
On Tue, May 26, 2009 at 07:16:54PM -0700, Ben Fritz wrote: Shameful plug: there is also a patch available to enhance the treatment of folds in the TOhtml output: It's actually wonderful, really, but it would be better if it has an option to remove the foldcolumn(I know it has!) and make the

Re: Search Current Buffers?

2009-05-27 Thread David Fishburn
View last search results in their own window (Cur file) nmap leaderw :vimgrep //j %CR:copenCRCR to open up a quickfix window of my last searched term in my quickfix window.  I usually have a number of buffers open; is it possible to do the same behavior, but in all open buffers?  (I'd like

An event listener function in scripts

2009-05-27 Thread spam . spam . spam . spam
Hello, I am writing à Vim script. I put the script into ~/.vim/plugin folder. The script run automatically at the startup of Vim. I would like to know if there is an event listener function. I want to use it in order to know when a Vim user is pushing a key, or change of line, ... Is it

RE: beep when search hit BOTTOM, continuing at TOP

2009-05-27 Thread John Beckett
marco restelli wrote: I like the wrapping though, I just find it too silent. I totally agree, but beeps are worse. What I do is to change the colour of the 'search hit BOTTOM' message to something that stands out. The following works very well in the Elflord colour scheme that I use (black

RE: tab order

2009-05-27 Thread John Beckett
REMINDER TO ALL: Please bottom post on this list. Quote a small (relevant) part of the message you are replying to, and put your text underneath. See http://groups.google.com/group/vim_use/web/vim-information John --~--~-~--~~~---~--~~ You received this

Re: An event listener function in scripts

2009-05-27 Thread John Little
Sounds like you want autocommands. See :h auto Regards, John --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---