Re: syntax highlighting colors bold text

2011-04-28 Thread Ben Schmidt
$COLORFGBG is set for the user, but not for root. $ echo $COLORFGBG default;default;0 Again, thank you! Best regards, mih To some degree, it looks like this is rxvt-specific. From version7.txt: When using an rxvt terminal emulator guess the value of 'background' using the COLORFGBG environm

Re: ":windo g/pattern/q" peculiarity

2011-04-28 Thread Jean-Rene David
* Tim Chase [2011.04.28 14:40]: > Because each of your files have the same number of lines, it doesn't > register a change. For a full example: > > bash$ cd ~/tmp; mkdir moreless; cd moreless > bash$ for i in 10 20 30 40 50; do seq $i > ${i}.txt ; done > bash$ sed -i '5s/$/@/' 30.txt > bash$

How do define a default highlight for none-linked group?

2011-04-28 Thread pansz
hi vimmers, for linked group we can use :hi default link to set a default value, for none-linked group we can't. Suppose my script want to set the default value highlight group CursorIM. i.e. if user color scheme has set the hi CursorIM, let it be, if user color scheme has not set the highlig

RE: Few questions

2011-04-28 Thread Roy Fulbright
> 3. How can I get vi to close out my (..), '..', {..}, and so on (this > might become annoying but I'd like to try something like this anyway). I have a few simple mappings that are specific to Perl IF statements, but they could easily be modified to any structure: " 1-2. Open Perl IF sta

Re: Few questions

2011-04-28 Thread shawn wilson
On Thu, Apr 28, 2011 at 2:39 PM, Taylor Hedberg wrote: > shawn wilson, Thu 2011-04-28 @ 14:08:31-0400: >> yeah, i am going to have to play with :nmap a bit... something like: >> :nmap i_l_r >> (which doesn't do it exactly, maybe a_ ... > > Try the following instead: > >    nnoremap i r > that d

Re: Few questions

2011-04-28 Thread Taylor Hedberg
shawn wilson, Thu 2011-04-28 @ 14:08:31-0400: > yeah, i am going to have to play with :nmap a bit... something like: > :nmap i_l_r > (which doesn't do it exactly, maybe a_ ... Try the following instead: nnoremap i r -- You received this message from the "vim_use" maillist. Do not top-post

Re: ":windo g/pattern/q" peculiarity

2011-04-28 Thread Tim Chase
On 04/28/2011 01:15 PM, Jean-Rene David wrote: * Tim Chase [2011.04.28 14:00]: [...] :windo g/pattern/q which did as I expected, but had the odd side effect of printing misleading messages about additional/fewer lines: 193 more lines E486: Pattern not found: @ 86 fewer lines 16

Re: why does :copy move the cursor?

2011-04-28 Thread Tim Chase
On 04/28/2011 01:16 PM, Ben Schmidt wrote: Fortunately, my previous location is just a control+O away for when I want to be at the source location instead of the destination location. This doesn't work for me. Hmm...I was fairly certain that I used this. It must have just been fortunate-coi

Re: why does :copy move the cursor?

2011-04-28 Thread Ben Schmidt
Fortunately, my previous location is just a control+O away for when I want to be at the source location instead of the destination location. This doesn't work for me. I don't know of any option to change the behavior. Me neither. But how then, can Ctrl-O work for you and not me? Ben. --

Re: ":windo g/pattern/q" peculiarity

2011-04-28 Thread Jean-Rene David
* Tim Chase [2011.04.28 14:00]: [...] > :windo g/pattern/q > > which did as I expected, but had the odd side effect of printing > misleading messages about additional/fewer lines: > > 193 more lines > E486: Pattern not found: @ > 86 fewer lines > 16 fewer lines > E486: Pattern not fou

Re: syntax highlighting colors bold text

2011-04-28 Thread Michael Hauser
On Thu, Apr 28, 2011 at 19:54, Ben Schmidt wrote: > Sorry for so many mails in quick succession! > >> :verbose set background? > > Yep; looking at the source code, it looks like the 'background' and > 't_Co' options are to blame. > > And it looks like 'background' in this case must come from $COLO

Re: why does :copy move the cursor?

2011-04-28 Thread Ben Schmidt
On 29/04/11 3:52 AM, Jean-Rene David wrote: Lately I've been using the Ex commands :d, :t, :m to shuffle text around while editing. Since the syntax of those commands require the source *and* destination lines, e.g.: :100copy150 to copy line 100 below line 150, I wonder why my cursors is *moved

Re: Few questions

2011-04-28 Thread shawn wilson
Taylor, Ben, thanks. On Wed, Apr 27, 2011 at 9:02 PM, Taylor Hedberg wrote: > shawn wilson, Wed 2011-04-27 @ 10:46:20-0400: >> 1. In visual mode how do I select to a line number? I know I can do iB >> or whatever but if I don't want to work with the whole function I just >> have to hold down j. >

Re: why does :copy move the cursor?

2011-04-28 Thread Tim Chase
On 04/28/2011 12:52 PM, Jean-Rene David wrote: Lately I've been using the Ex commands :d, :t, :m to shuffle text around while editing. [snip] I wonder why my cursors is *moved* to line 150 after the command. I was wondering if others had thoughts on this behavior. Is there a use of them where

Re: syntax highlighting colors bold text

2011-04-28 Thread Michael Hauser
On Thu, Apr 28, 2011 at 19:21, Ben Schmidt wrote: >>> I've redircted the output of ':verbose hi' along with the outputs of >>> 'set' for both user and root earlier, and posted them in this thread, >>> and they do differ. >> >> Yes; I glanced at that earlier. I didn't realise :verbose had been >> i

Re: Integrating Vim, Ruby, RVM - advice?

2011-04-28 Thread cootcraig
On Apr 26, 11:41 am, cootcraig wrote: > I am looking for productivity advice for working with Ruby code from a > folder with a project .rvmrc file using a rvm gemset. > > One of my thoughts is to use the gem and library paths set up by rvm > to generate a tags file and learn to navigate with ta

":windo g/pattern/q" peculiarity

2011-04-28 Thread Tim Chase
Not sure if this is an old-version-of-vim thing, or if it's just a peculiar interaction. Scenario: I had a bunch of vim-windows open on various files and wanted to close those that contained a given pattern (in the example below, using "@" as my pattern to close windows with email addresses in

Re: syntax highlighting colors bold text

2011-04-28 Thread Ben Schmidt
Sorry for so many mails in quick succession! :verbose set background? Yep; looking at the source code, it looks like the 'background' and 't_Co' options are to blame. And it looks like 'background' in this case must come from $COLORFGBG (since $TERM/'term' (T_NAME) is already known to be the

why does :copy move the cursor?

2011-04-28 Thread Jean-Rene David
Lately I've been using the Ex commands :d, :t, :m to shuffle text around while editing. Since the syntax of those commands require the source *and* destination lines, e.g.: :100copy150 to copy line 100 below line 150, I wonder why my cursors is *moved* to line 150 after the command. I tend to us

Re: Foldings: why to they unfold below if I type a quote ( ' or ")

2011-04-28 Thread Ben Fritz
On Apr 28, 10:31 am, Paul wrote: > On Wed, Apr 27, 2011 at 04:26:13PM -0500, David Kahn wrote: > >I am curious if there is a way to make foldings not unfold if I type a > >quote. For example, if I am adding to the header or content in an open > > Maybe this will help, in .vimrc: > > " Don't upda

Re: syntax highlighting colors bold text

2011-04-28 Thread Michael Hauser
On Thu, Apr 28, 2011 at 19:12, Ben Schmidt wrote: >>> - Are you using a colour scheme? >> >> Woudn't this be set in '.vimrc'? > > Yes. It would be in some startup file if you were using one. I guess > :verbose hi would also show it up. > >>> - Does >>>  :verbose hi >>>  give any insight? I.e. are

Re: syntax highlighting colors bold text

2011-04-28 Thread Ben Schmidt
- Are you using a colour scheme? Woudn't this be set in '.vimrc'? Yes. It would be in some startup file if you were using one. I guess :verbose hi would also show it up. - Does :verbose hi give any insight? I.e. are the colours being set by different files in the different Vim versions

Re: syntax highlighting colors bold text

2011-04-28 Thread Ben Schmidt
I've redircted the output of ':verbose hi' along with the outputs of 'set' for both user and root earlier, and posted them in this thread, and they do differ. Yes; I glanced at that earlier. I didn't realise :verbose had been included that time. I actually only saw the diff Tony included in hi

Re: syntax highlighting colors bold text

2011-04-28 Thread Ben Schmidt
- Does :verbose hi give any insight? I.e. are the colours being set by different files in the different Vim versions? I've redircted the output of ':verbose hi' along with the outputs of 'set' for both user and root earlier, and posted them in this thread, and they do differ. Yes; I glanced at

Re: Where is defined?

2011-04-28 Thread ZyX
Reply to message «Re: Where is defined?», sent 05:26:34 28 April 2011, Thursday by Steve Litt: > For that reason, starting with the very first version of VO, VO's command > prefix for special VO commands is two commas (,,). Extremely fast, > extremely easy for the touch typist. > > Some time ar

Re: syntax highlighting colors bold text

2011-04-28 Thread Michael Hauser
On Thu, Apr 28, 2011 at 18:12, Ben Schmidt wrote: > It is running the correct vim binary, isn't it? I.e. /usr/local/bin is > in your $PATH before /usr/bin? I think that's where ./configure will put > it without --prefix being given. True. 'which vim' gives '/usr/local/bin' for both user and root.

Vi for any Windows APP using AutoHotkey

2011-04-28 Thread Marc Weber
Is it possible? Well of course not. But with some work we can get close enough to make editing text much more fun. In some cases its not useful to use Vim, eg if you want to use existing "IDE" features of tools such as Delphi 2009. Is anyone interested in helping extending such an implementation?

Re: Where is defined?

2011-04-28 Thread Ben Schmidt
If you later change one or both of hese variables, already defined mappings are unaffected; the value used is always the value at the time the mapping is *defined*. The upshot of which is that you should be able to do something like: :let s:saved_maplocalleader = g:maplocalleader :if exists('g:

Re: syntax highlighting colors bold text

2011-04-28 Thread Ben Schmidt
tar xvjf vim-7.3.tar.bz2 cd vim73 ./configure;make;sudo make install rehash vim ~/.vimrc It is running the correct vim binary, isn't it? I.e. /usr/local/bin is in your $PATH before /usr/bin? I think that's where ./configure will put it without --prefix being given. Also...and sorry if this grou

Re: Foldings: why to they unfold below if I type a quote ( ' or ")

2011-04-28 Thread David Kahn
On Thu, Apr 28, 2011 at 10:31 AM, Paul wrote: > On Wed, Apr 27, 2011 at 04:26:13PM -0500, David Kahn wrote: > >> I am curious if there is a way to make foldings not unfold if I type a >> quote. For example, if I am adding to the header or content in an open >> > > Maybe this will help, in .vimrc:

Re: how to map 2-leftmouse to open file in netw

2011-04-28 Thread Ben Fritz
On Apr 28, 10:09 am, wei gao wrote: > Hi, > > In netw file explorer, the click left mouse on the file/folder will open the > file/folder. Is there any way to use doube click to open the file/folder? > Left mouse is usually used to select the file/folder instead of open > file/folder. > Two step

Re: Plugin for specific file type

2011-04-28 Thread Ben Fritz
On Apr 28, 11:26 am, JuanPabloAJ wrote: > but, if this plugin is for many language, > I cant use the &ft variable ? > Sure you can, but that's not what you asked. You have a few options: 1. Always load the plugin for all file types by placing it in your ~/.vim/plugin directory, but for every f

Re: Few questions

2011-04-28 Thread Ben Fritz
On Apr 27, 9:46 am, shawn wilson wrote: > > 3. How can I get vi to close out my (..), '..', {..}, and so on (this might > become annoying but I'd like to try something like this anyway). > http://vim.wikia.com/wiki/Automatically_append_closing_characters > 4. Can I get the output of :shell or

Re: Foldings: why to they unfold below if I type a quote ( ' or ")

2011-04-28 Thread Paul
On Wed, Apr 27, 2011 at 04:26:13PM -0500, David Kahn wrote: I am curious if there is a way to make foldings not unfold if I type a quote. For example, if I am adding to the header or content in an open Maybe this will help, in .vimrc: " Don't update folds in insert mode. aug NoInsertFolding

Re: Plugin for specific file type

2011-04-28 Thread JuanPabloAJ
but, if this plugin is for many language, I cant use the &ft variable ? -- JuanPabloAJ On jueves 28 de abril de 2011 at 11:15, Christian Brabandt wrote: > On Thu, April 28, 2011 6:00 pm, JuanPabloAJ wrote: > > Hi, > > If I create a plugin, how I can activate this plugin only on certain file >

Re: Plugin for specific file type

2011-04-28 Thread Christian Brabandt
On Thu, April 28, 2011 6:00 pm, JuanPabloAJ wrote: > Hi, > If I create a plugin, how I can activate this plugin only on certain file > types? > example only is activated with a cpp file. > :h add-filetype-plugin regards, Christian -- You received this message from the "vim_use" maillist. Do not

how to map 2-leftmouse to open file in netw

2011-04-28 Thread wei gao
Hi, In netw file explorer, the click left mouse on the file/folder will open the file/folder. Is there any way to use doube click to open the file/folder? Left mouse is usually used to select the file/folder instead of open file/folder. Thanks! Wei -- You received this message from the "vim_use

Plugin for specific file type

2011-04-28 Thread JuanPabloAJ
Hi, If I create a plugin, how I can activate this plugin only on certain file types? example only is activated with a cpp file. Best regards. -- JuanPabloAJ -- 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 in

Re: vim %

2011-04-28 Thread Tim Gray
On Apr 28, 2011 at 06:04 AM -0700, cyboman wrote: what do those %:p:h mean? can anyone recommend a help file i need do read in order to understand the meanings of %:p:h? filename-modifiers is what you want to search the help for. -- You received this message from the "vim_use" maillist. Do not

Re: vim %

2011-04-28 Thread Christian Brabandt
On Thu, April 28, 2011 3:04 pm, cyboman wrote: > i'm trying to learn a bit of vim scripting, specifically i'm trying to > understand how to do something similar to scanf(). > > say we have a command > > map ,cd :cd %:p:h > > what do those %:p:h mean? can anyone recommend a help file i need do > rea

vim %

2011-04-28 Thread cyboman
i'm trying to learn a bit of vim scripting, specifically i'm trying to understand how to do something similar to scanf(). say we have a command map ,cd :cd %:p:h what do those %:p:h mean? can anyone recommend a help file i need do read in order to understand the meanings of %:p:h? any help is a

Re: execute command from vim in windows

2011-04-28 Thread rail shafigulin
thanks for the help On Thu, Apr 28, 2011 at 4:07 AM, Ben Schmidt wrote: > One of the ways to avoid spaces in Windows names of files and >> directories is to replace any "controversial" names by their 8.3 >> equivalents >> > > Of course, this will only work on filesystems that still support 8.3 >

Re: execute command from vim in windows

2011-04-28 Thread rail shafigulin
thanks for the help On Wed, Apr 27, 2011 at 8:53 PM, Ben Schmidt wrote: > On 28/04/11 3:39 AM, cyboman wrote: > >> i need to run an executable from vim. the problem that i'm facing is >> that directory names in the path to this file contain spaces and vim >> doesn't recognize that. >> >> here is

Re: how to fold across file

2011-04-28 Thread Christian Brabandt
On Thu, April 28, 2011 12:24 pm, vicky b wrote: > What foldmethod are you using?: i am poor in folds Please trim your quotes and don't top post. For an introduction about folding, you should read the help, e.g. :h folding :h usr_28.txt Here is an suggestion for how to fold, which should do what

Re: syntax highlighting colors bold text

2011-04-28 Thread Michael Hauser
On Thu, Apr 28, 2011 at 12:40, Michael Hauser wrote: -8<-8<- > I'm gonna build my own 'vim' from source, without any 'gnome' stuff, > and see what happens... tar xvjf vim-7.3.tar.bz2 cd vim73 ./configure;make;sudo make install rehash vim ~/.vimrc nope. Now without GTK: make clean;m

Re: syntax highlighting colors bold text

2011-04-28 Thread Stefan Klein
2011/4/28 Michael Hauser > > [~] ls -l `which vim` > [12:26:30] [0] > lrwxrwxrwx 1 root root 21 Nov 9 02:44 /usr/bin/vim -> > /etc/alternatives/vim > [~] ls -l /etc/alternatives/vim > [ ... snip ...] > I'm gonna build my own 'vim' from source, without any 'gnome' stuff, > and see

Re: syntax highlighting colors bold text

2011-04-28 Thread Michael Hauser
On Thu, Apr 28, 2011 at 06:29, Tony Mechelynck wrote: -8<-8<- > So: are you sure you are using the same version of Vim in both cases? > > what is the output to > >        which vim [~] ls -l `which vim` [12:26:30] [0] lrwxrwxrwx 1 root root 21 Nov 9 02:44 /usr/bin/vim

Re: how to fold across file

2011-04-28 Thread vicky b
What foldmethod are you using?: i am poor in folds I want fold all comments that have this pattern /** * * */ as an example on of the comments /** * The listener interface for receiving "interesting" mouse events * (press, release, click, enter, and exit) on a component. * (To track mouse mo

Re: how to fold across file

2011-04-28 Thread Christian Brabandt
On Thu, April 28, 2011 8:41 am, vicky b wrote: > Thanks all, > I want to re-frame my question I have all java files now I want to create > folds for the comments can anyone help me please. What foldmethod are you using? regards, Christian -- You received this message from the "vim_use" maillis

Re: how to fold across file

2011-04-28 Thread Efraim Yawitz
On Thu, Apr 28, 2011 at 9:41 AM, vicky b wrote: > Thanks all, > I want to re-frame my question I have all java files now I want to create > folds for the comments can anyone help me please. > > * > * I'm not sure about your specific problem, but from a quick look at a .java file in vim and a c

Re: execute command from vim in windows

2011-04-28 Thread Ben Schmidt
One of the ways to avoid spaces in Windows names of files and directories is to replace any "controversial" names by their 8.3 equivalents Of course, this will only work on filesystems that still support 8.3 equivalents and have that functionality turned on, which isn't always the case these day