keyword to upper/lower case

2010-10-17 Thread Jeri Raye
Hi, Is it possible to search for a keyword and change the case of it? I'm using vim for VHDL. VHDL is not case sensitive. I'm using keywords always in lower case, my collegue in upper case. To get to the same style I want to search my text for keywords and change it to upper case. As Vim alre

Re: Problem with netrw

2010-10-17 Thread Tintin72
> Then I suggest making a netrw debugging trace.  Please read  :help > netrw-debug; be sure to elide any passwords that end up in the debugging > trace. I never used Decho before and I'm not pretty sure that the way I'm using it is correct. Anyway, I did what you said and now I get a Decho tab but

Re: keyword to upper/lower case

2010-10-17 Thread ZyX
Reply to message «keyword to upper/lower case», sent 11:36:08 17 October 2010, Sunday by Jeri Raye: > Is it possible to search for a keyword and change the case of it? > I'm using vim for VHDL. > VHDL is not case sensitive. > I'm using keywords always in lower case, my collegue in upper case. >

Re: put filename in string

2010-10-17 Thread rameo
Thank you very much :) I noted that '@%' does an insert of the whole path. Do you know what do I have to use to insert only the filename? Rameo On Oct 16, 12:31 pm, Michael Henry wrote: > On 10/16/2010 05:20 AM, rameo wrote: > > > I created a script to delete the current file > [...] > > I only

Re: put filename in string

2010-10-17 Thread ZyX
Reply to message «Re: put filename in string», sent 13:18:56 17 October 2010, Sunday by rameo: > I noted that '@%' does an insert of the whole path. > Do you know what do I have to use to insert only the filename? Use fnamemodify: replace @% with fnamemodify(@%, ':t'). signature.asc Descriptio

print utf-8 characters

2010-10-17 Thread rameo
I still have problems in Vim to print in utf-8. 1) I created a textfile with characters as ééaaaààà (dos utf-8) The characters aren't printed in Gvim using the print command but are perfectly printed using another editor as notepad++ I tried everything without success. 2) When I print text

Re: Some ideas for c.vim plugins or was it already implemented by someone ?

2010-10-17 Thread Aaron Lewis
Hmm , I tried this one , iabbr mif if () {} /* IF */ I'll have to type in mif , press , and then , i could see it expanded , but as document said iabbrev works for "insert mode" only , am i making some mistakes here ? ( i thought pressing button is not actually required here ) Thanks ! -- B

Re: keyword to upper/lower case

2010-10-17 Thread Christian Brabandt
Hi Jeri! On So, 17 Okt 2010, Jeri Raye wrote: > Hi, > > Is it possible to search for a keyword and change the case of it? > I'm using vim for VHDL. > VHDL is not case sensitive. > I'm using keywords always in lower case, my collegue in upper case. > > To get to the same style I want to search my

Re: keyword to upper/lower case

2010-10-17 Thread Christian Brabandt
Hi vim! On So, 17 Okt 2010, Christian Brabandt wrote: > \synIDattr(synID(line("."),col("."+), 0), "name") Grml, I hate auto wrapping. That should have been \synIDattr(synID(line("."),col("."), 0), "name") regards, Christian -- You received this message from the "vim_use" maillist. Do no

Help with paragraph checks

2010-10-17 Thread parag
I typically write codein verilog language and the begin and end for code in verilog is plain "begin" and "end" Right now is there any way to change the settings for vi to mark them end and beginning of code similar to C style "{" and "}" So that when I can use the % character to go to the end o

Drag and drop support

2010-10-17 Thread esquifit
I'm using gVim 7.3 in Windows. I want to drag a (binary) file and drop it onto gVim and have gVim do something with the file path (for example pass it as argument to a function) rather than loading the file contents into a buffer, which seems to be the default behaviour. Is this possible? I've obs

handling error in function

2010-10-17 Thread tekion
All, I have function TrimTab() %s/^tab//g endfunction map :call TrimTab() It works when their are tabs in my file to remove, but display error when there are no tabs. Is there a way to catch and handle the error so I could display a friendly message? Thanks. -- You received this message

Re: Help with paragraph checks

2010-10-17 Thread Simon Ruderich
On Sun, Oct 17, 2010 at 05:59:03AM -0700, parag wrote: > [snip] > > So that when I can use the % character to go to the end of a code > segment ( ie to the next end ) Try the matchit plugin [1]. It supports "arbitrary" start/end tags. Useful for HTML/Python/etc. as well. Simon [1]: http://www.vi

Re: handling error in function

2010-10-17 Thread ZyX
Reply to message «handling error in function», sent 18:29:25 17 October 2010, Sunday by tekion: > It works when their are tabs in my file to remove, but display error > when there are no tabs. Is there a way to catch and handle the error > so I could display a friendly message? Thanks. Use :try

Re: grep quickfix window question

2010-10-17 Thread Gary Johnson
On 2010-10-16, ZyX wrote: > Reply to message «Re: grep quickfix window question», > sent 23:31:39 16 October 2010, Saturday > by Simon Ruderich: > > > Then please use an editor which makes handling text simple, like > > Vim. d} doesn't take very long. > But copy-pasting from/to vim does. And `mor

Re: handling error in function

2010-10-17 Thread Gary Johnson
On 2010-10-17, tekion wrote: > All, > I have > function TrimTab() >%s/^tab//g > endfunction > > map :call TrimTab() > > It works when their are tabs in my file to remove, but display error > when there are no tabs. Is there a way to catch and handle the error > so I could display a friendl

Re: Clipboard functionality on Unix/Windows

2010-10-17 Thread Christian Brabandt
Hi Sean! On Do, 14 Okt 2010, Sean wrote: > Same error using > vim_on_cygwin_using_win32_clipboard__simple__2008_12_21_001.patch. > Wish I could get help from Anton Sharonov :)) Well, I took a look and could successfully patch Vim 7.3 sources with the simple patch. The patch applied with offsets

Trouble using gvim with X on Windows

2010-10-17 Thread Thomas Daniel
I try to use gvim on Windows 7 64 bit, from cygwin. In other words, this is not Windows-compiled vim, but the one distributed by cygwin: $ gvim --version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 18 2010 23:57:10) When I try to start gvim from the bash command line, I get the following

How to unsubscribe

2010-10-17 Thread Dick Moores
BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; Please Please advise. -- 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 information, visit http://www.vim.org/maillist.php

Re: How to unsubscribe

2010-10-17 Thread Tim Chase
On 10/17/10 13:43, Dick Moores wrote: BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; Please advise. The instructions can be found at the bottom of each message including the one you sent: You received this message from the "vim_use" maillist. For more information, visi

Avoiding indentation of control statements when used in assignment

2010-10-17 Thread Sung Pae
I have a strong suspicion that this topic has been covered in the mailing list before, but I could not find it. So here is my question: Is there a way to nullify the indent level for continuation lines of a control statement when the result of the expression is assigned to a variable? For example

Re: keyword to upper/lower case

2010-10-17 Thread David Fishburn
On Sun, Oct 17, 2010 at 3:36 AM, Jeri Raye wrote: ... > Is it possible to search for a keyword and change the case of it? > I'm using vim for VHDL. > VHDL is not case sensitive. > I'm using keywords always in lower case, my collegue in upper case. > > To get to the same style I want to search my t

Re: print utf-8 characters

2010-10-17 Thread Tony Mechelynck
On 17/10/10 12:04, rameo wrote: I still have problems in Vim to print in utf-8. 1) I created a textfile with characters as ייaaaאאא (dos utf-8) The characters aren't printed in Gvim using the print command but are perfectly printed using another editor as notepad++ I tried everything witho

Re: Help with paragraph checks

2010-10-17 Thread Tony Mechelynck
On 17/10/10 17:47, Simon Ruderich wrote: On Sun, Oct 17, 2010 at 05:59:03AM -0700, parag wrote: [snip] So that when I can use the % character to go to the end of a code segment ( ie to the next end ) Try the matchit plugin [1]. It supports "arbitrary" start/end tags. Useful for HTML/Python/et

RE: Some ideas for c.vim plugins or was it already implemented by someone ?

2010-10-17 Thread John Beckett
Aaron Lewis wrote: > Hmm , I tried this one , > > iabbr mif if () {} /* IF */ > > I'll have to type in mif , press , and then , i > could see it expanded , but as document said iabbrev works > for "insert mode" only , am i making some mistakes here ? ( i > thought pressing button is not actually

Re: Beta release: use of 'fencoding' in TOhtml

2010-10-17 Thread Benjamin Fritz
On Fri, Oct 8, 2010 at 9:13 PM, Benjamin Fritz wrote: > On Thu, Oct 7, 2010 at 12:39 AM, Benjamin Fritz > wrote: >> A while back on vim_dev, there was a suggestion for TOhtml to use the >> 'fencoding' of the source buffer for the HTML encoding of the >> generated file. >> >> This thread discusse

Setting up default gVim

2010-10-17 Thread flebber
Hi I was wondering if there was a way to setup vim so that it opens in Ruby mode. For Ruby Programming. I don't want it to be anything extravagent I just want it to handle Ruby language features syntax etc but also mainly I wanted it to open with 3 windows. One where I can work on my main file, th

Re: Drag and drop support

2010-10-17 Thread Tony Mechelynck
On 17/10/10 15:11, esquifit wrote: I'm using gVim 7.3 in Windows. I want to drag a (binary) file and drop it onto gVim and have gVim do something with the file path (for example pass it as argument to a function) rather than loading the file contents into a buffer, which seems to be the default b

Re: grep quickfix window question

2010-10-17 Thread Jürgen Krämer
Hi, ZyX wrote: > Reply to message «Re: grep quickfix window question», > sent 18:04:40 15 October 2010, Friday > by Jürgen Krämer: > >> I tested this on Windows, and I seem to rembember (now) that the case of >> the file type is not relevant here. > On windows the case of the filename is ignore

Re: grep quickfix window question

2010-10-17 Thread Tom Link
> I don't think so. When case in filenames is ignored, it must not be > relevant in filetypes either. Otherwise you could not create filetype > plugins or syntax files for two filetypes that differ in case only. You can't (reliably do so) when using a file system that has case insensitive filename

Re: put filename in string

2010-10-17 Thread Jürgen Krämer
Hi, Michael Henry schrieb: > On 10/16/2010 05:20 AM, rameo wrote: >> I created a script to delete the current file > [...] >> I only would like to insert the current filename in the question: >> >> Are you sure to delete this file? --> >> Are you sure to delete "filename.ext"? > > You can change

Re: grep quickfix window question

2010-10-17 Thread Jürgen Krämer
Hi, Tom Link wrote: >> I don't think so. When case in filenames is ignored, it must not be >> relevant in filetypes either. Otherwise you could not create filetype >> plugins or syntax files for two filetypes that differ in case only. > > You can't (reliably do so) when using a file system that