to prevent comment startting from new line

2009-04-06 Thread Visco Shaun
While programming in python whenever i type '#' to start commenting it goes to the start of the line rather than at the indented position where i like it to be added. Is there any command to prevent this behaviour without changing any other settings? -- Thanks Regards visco

Re: to prevent comment startting from new line

2009-04-06 Thread Maxim Kim
On 6 апр, 10:20, Visco Shaun visc...@gmail.com wrote: While programming in python whenever i type '#' to start commenting it goes to the start of the line rather than at the indented position where i like it to be added. Is there any command to prevent this behaviour without changing any

email address completion

2009-04-06 Thread Marc Chantreux
hello world, I want to complete email adresses from my mutt aliases file, the simplest way i found is: set dict+~/.mutt/aliases isk+=@ but! ... if i do this, ^x^k complete only the local part of the address and ignore what's after @. I imgine that's because isk isn't used. Any way to fix

Re: Can I use Vim and produce text with italics, bold and just a couple of colors?

2009-04-06 Thread Stahlman Family
Paris wrote: On Sun, 2009-04-05 at 19:52 -0500, Stahlman Family wrote: Consider that... WORDSPACEWORD ...in a normal buffer looks identical to... WORDBOLD_ITALIC_TOKENWORD ...in a Txtfmt buffer, except that the second word is bold-italic in the Txtfmt buffer. Maybe I did something

Re: email address completion

2009-04-06 Thread Tim Chase
I want to complete email adresses from my mutt aliases file, the simplest way i found is: set dict+~/.mutt/aliases isk+=@ but! ... if i do this, ^x^k complete only the local part of the address and ignore what's after @. I imgine that's because isk isn't used. Any way to fix that ?

Re: Can I use Vim and produce text with italics, bold and just a couple of colors?

2009-04-06 Thread Paris
On Mon, 2009-04-06 at 06:51 -0500, Stahlman Family wrote: there would be exactly 2 Txtfmt characters before and after the region. Yes you are right, I'm sorry. But there can be only one space between words on a book or article etc --~--~-~--~~~---~--~~ You

Re: email address completion

2009-04-06 Thread Marc Chantreux
hello Luc, On Mon, Apr 06, 2009 at 11:27:16AM +0200, Luc Hermitte wrote: The last published version seems to be there: http://hermitte.free.fr/vim/ressources/lh-mail.tar.gz thanks but i prefer to keep my configuration KISS (even if it doesn't work perfectly) regards mc

GVIM Vista cygwin issue

2009-04-06 Thread WL
Hi, I have installed Cygwin (+ gvim) on my new Vista system. I have copied my .vimrc from another system (Cygwin over XP). On the Vista system gvim fails to load with following error: 71 [main] gvim 1528 child_copy: linked dll data write copy failed, 0x2B8000..0x2B86CC, done 0, windows pid

:set nu - how to copy lines with line numbers?

2009-04-06 Thread krzysztof cierpisz
when I mark in visual mode, only the text itself (what do we need normally) is marked. sometimes I would like to select the interesting lines with the line numbers from the left margin. how to copy them along with the text? thanks, chris --~--~-~--~~~---~--~~

Re: GVIM Vista cygwin issue

2009-04-06 Thread bill lam
On Mon, 06 Apr 2009, WL wrote: Taglist: Exuberant ctags (http://ctags.sf.net) not found in PATH. Not sure about other errors, but you may try either remove the file vimfiles/plugin/taglist.vim or install that ctag program first. -- regards,

Re: highlight whole line, from column 1 to end of screen, EVEN if text is short

2009-04-06 Thread Ben Fritz
On Apr 4, 2:28 pm, Yakov iler...@gmail.com wrote: I am highlighting certain line using :match  IncSearch /\%123l/ (matchadd() actually). The problem is that I want thr whole line highlighted, even if text is short. Highlight to the width of window, not only the width of text. How can I do

Re: :set nu - how to copy lines with line numbers?

2009-04-06 Thread Andreas Bernauer
krzysztof cierpisz wrote: when I mark in visual mode, only the text itself (what do we need normally) is marked. sometimes I would like to select the interesting lines with the line numbers from the left margin. how to copy them along with the text? One possibility: use :print (see

Re: :set nu - how to copy lines with line numbers?

2009-04-06 Thread Christian Brabandt
Hi krzysztof! On Mo, 06 Apr 2009, krzysztof cierpisz wrote: sometimes I would like to select the interesting lines with the line numbers from the left margin. how to copy them along with the text? You have several alternatives. First you could use the TOhtml command to let vim generate a

Re: Can I use Vim and produce text with italics, bold and just a couple of colors?

2009-04-06 Thread Michael Maurer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * Stahlman Family brettstahl...@comcast.net [05.04.2009 22:38]: snip... Sounds good. When you say the default color scheme for Ubuntu Studio 8.04, I assume you're talking about the color scheme of the terminal and not Vim's colorscheme. Ahh

Re: Updating status line of inactive windows

2009-04-06 Thread Tony Mechelynck
On 06/04/09 07:58, François Ingelrest wrote: 2009/4/5 Bram Moolenaarb...@moolenaar.net: In my status line, I display the number of lines in the corresponding buffer. If I split the window, so that I have the same buffer into two visible windows, only the status line of the active window is

Help with re: newlines plus spaces

2009-04-06 Thread Stephen_B
I have lines in a file preceded by whitespace. I'd like to get rid of whitespace when preceded by a newline. This does not seem to work: :%s/$\s/$/g Nor does this: :%s/\n$/\n/g Actually, just trying to replace \n with anything doesn't work either. What am I missing? StephenB

Re: Can I use Vim and produce text with italics, bold and just a couple of colors?

2009-04-06 Thread Brett Stahlman
On Apr 6, 10:44 am, Michael Maurer salogynso...@gmail.com wrote: snip... inside my vimrc and (nearly) everything works as advertised now. I say nearly because every time I switch between screen-windows and back to VIM, the underline-formatting gets lost. Italicize, bold and color seem to

Re: Updating status line of inactive windows

2009-04-06 Thread François Ingelrest
On Mon, Apr 6, 2009 at 18:00, Tony Mechelynck antoine.mechely...@gmail.com wrote: It would be invalid in the case of custom 'statusline's including, for instance, the window number, or maybe the number of visible lines and columns in the window, as part of what is displayed. Also, the cursor's

Re: highlight whole line, from column 1 to end of screen, EVEN if text is short

2009-04-06 Thread Erik Falor
On Sat, Apr 04, 2009 at 12:28:46PM -0700, Yakov wrote: I am highlighting certain line using :match IncSearch /\%123l/ (matchadd() actually). The problem is that I want thr whole line highlighted, even if text is short. Highlight to the width of window, not only the width of text. How can

Maping Ctrl-Shift-s problems

2009-04-06 Thread Pablo Giménez
Hi vims. I am begging to custoimize my vim keyboards settings and I have found a problem trying to map the Ctrl-Shift-s combination , I am using the next line in my .vimrc: noremap C-S-s :browse confirm saveasCR I also have the Ctrl-s map: noremap C-S :updateCR The thing is that the first map

Re: Syntax match/highlight/regexp issue

2009-04-06 Thread Brett Stahlman
On Apr 6, 1:04 pm, Maxim Kim haba...@gmail.com wrote: Hi, I have the following line to highlight: ||*bold*||*bold*||*bold*|| With the next 3 commands I am able to highlight *bold* part: :syn on :hi link wikiBold Title :syn match wikiBold /||\zs\*\([^*`]*\)\*/ Now I want add ||

Re: GVIM Vista cygwin issue

2009-04-06 Thread Matt Wozniski
On Mon, Apr 6, 2009 at 8:55 AM, WL izaq...@gmail.com wrote: Hi, I have installed Cygwin (+ gvim) on my new Vista system. I have copied my .vimrc from another system (Cygwin over XP). On the Vista system gvim fails to load with following error:  71 [main] gvim 1528 child_copy: linked dll

Re: Maping Ctrl-Shift-s problems

2009-04-06 Thread Tony Mechelynck
On 06/04/09 20:03, Pablo Giménez wrote: Hi vims. I am begging to custoimize my vim keyboards settings and I have found a problem trying to map the Ctrl-Shift-s combination , I am using the next line in my .vimrc: noremap C-S-s :browse confirm saveasCR I also have the Ctrl-s map: noremap

Re: :set nu - how to copy lines with line numbers?

2009-04-06 Thread Matt Wozniski
On Mon, Apr 6, 2009 at 10:31 AM, Andreas Bernauer wrote: One possibility: use :print (see :help :print) That's clever... definitely what I'll be doing from now on in gvim. FWIW, in terminal vim, you can just hold down shift while clicking-and-dragging to override set mouse and let the terminal

RE: Help with re: newlines plus spaces

2009-04-06 Thread John Beckett
Stephen_B wrote: I have lines in a file preceded by whitespace. I'd like to get rid of whitespace when preceded by a newline. See this tip for ':left': http://vim.wikia.com/wiki/Remove_unwanted_spaces This does not seem to work: :%s/$\s/$/g The $ means the physical end-of-line

Re: :set nu - how to copy lines with line numbers?

2009-04-06 Thread Matt Wozniski
On Mon, Apr 6, 2009 at 7:32 PM, Ken Bloom wrote: On Mon, 06 Apr 2009 06:13:23 -0700, krzysztof cierpisz wrote: when I mark in visual mode, only the text itself (what do we need normally) is marked. sometimes I would like to select the interesting lines with the line numbers from the left

Re: Change gui background color of only one window?

2009-04-06 Thread Matt Wozniski
On Mon, Apr 6, 2009 at 5:50 PM, Dan Behman wrote: Hi - is there any way to change the color of only one window when say for example, doing a window split? I know of no way to do this... What I really want to do is make use of the cscope functionality, namely the commands that are in the

Re: Why won't @: work?

2009-04-06 Thread fREW Schmidt
On Sun, Apr 5, 2009 at 11:01 PM, Ken Bloom kbl...@gmail.com wrote: On Sun, 05 Apr 2009 22:32:56 -0500, fREW Schmidt wrote: On Sun, Apr 5, 2009 at 4:08 AM, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 05/04/09 03:51, Ken Bloom wrote: On Fri, 03 Apr 2009 16:04:36 -0500,