Re: Garbled mail on list

2010-01-29 Thread Tony Mechelynck
On 17/12/09 04:38, John Little wrote: Hi | ą cursor in paragraph 1 - delete paragraph 1 | ˛ go to start of paragraph 3 | ł select paragraph 3 and replace by paragraph 1 Those were garbled in google groups in Firefox. ą = latin small a with ogonek, ˛ = ogonek, ł = small l with stroke, al

Re: how to match a "," that IS NOT in comment

2010-01-29 Thread Tony Mechelynck
On 15/12/09 03:15, aj3423 wrote: Thanks for your reply. I'm trying to write a vim plugin that checks trailing comma for .js file, I'm using "match Error" when the buffer saves, but there is another function in the plugin: :vimgrep /the regex/ **/*.js so there should be a regex to fit these 2 fu

Re: search for null

2010-01-29 Thread Chris Jones
On Fri, Jan 29, 2010 at 10:50:51PM EST, Tony Mechelynck wrote: [..] > In addition to all that has already been said in reply to this post, it > helps to understand that the null is handled in a special way in Vim, > because a null byte terminates a C string. Therefore, a null (0x00) is > re

Re: Adjusting line lengths

2010-01-29 Thread Tony Mechelynck
On 13/12/09 12:59, Hattori Hanzo wrote: Hello, and thanks to all of you! The joining issue is solved by :2,$j! and the splitting issue by :s/.\{49}/&\r/g As I'm working with genes, files are not that big and contain about 1 characters. However, when it comes to genomes, sequence length

Re: search for null

2010-01-29 Thread Tony Mechelynck
On 29/01/10 22:24, Ron Olson wrote: Hi all- Is there a particular way I can use to search for instances of null (ascii 0, hex 0x0) in a file? I haven't come up with a way to do so, yet there is clearly a null in my file as moving over it shows ascii 0 and hex 0x0, I just want to find/highlight a

Re: filter output to scratch buffer

2010-01-29 Thread bill lam
ven, 29 Jan 2010, Bob Hiestand skribis: > On Thu, Jan 28, 2010 at 9:50 PM, bill lam wrote: > > I map F5 to search dictionary with > > > > nmap :!dict > > > > The output is quite long and also it may contain some info that I > > would like to copy.  Is it possible to redirect the output to a new

Re: search for null

2010-01-29 Thread Matt Wozniski
2010/1/29 Dominique Pellé : > Ron Olson wrote: > >> Hi all- >> >> Is there a particular way I can use to search for instances of null >> (ascii 0, hex 0x0) in a file? I haven't come up with a way to do so, >> yet there is clearly a null in my file as moving over it shows ascii 0 >> and hex 0x0, I j

Re: Change vim/gvim colorschemes

2010-01-29 Thread Chris Jones
On Fri, Jan 29, 2010 at 10:14:38AM EST, Athunye wrote: > I was wondering about a possibility to get vim change colorschemes > from time to time, Say, every 5 or 10 minutes (automatically). Of > course the 'sleep' command won't help in this case. > The script would read the contents of a directory

Re: search for null

2010-01-29 Thread Bee
On Jan 29, 1:24 pm, Ron Olson wrote: > Is there a particular way I can use to search for instances of null > (ascii 0, hex 0x0) in a file? I haven't come up with a way to do so, > yet there is clearly a null in my file as moving over it shows ascii 0 > and hex 0x0, I just want to find/highlight al

Re: Single-column 'set'?

2010-01-29 Thread Bee
On Jan 29, 10:52 am, "Benjamin R. Haskell" wrote: > On Fri, 29 Jan 2010, Bee wrote: > > On Jan 29, 7:43 am, "Benjamin R. Haskell" wrote: > > > ... > > > :redir @a > > > ... > > How to save directly to a filename? > > [...] > > But this creates a file named savevimrc in $HOME > > > redir > savevim

RE: Change vim/gvim colorschemes

2010-01-29 Thread John Beckett
Athunye wrote: > I was wondering about a possibility to get vim change > colorschemes from time to time, Say, every 5 or 10 minutes > (automatically). Of course the 'sleep' command won't help in > this case. This is one of the things explored at: http://vim.wikia.com/wiki/Switch_color_schemes Joh

Re: search for null

2010-01-29 Thread Dominique Pellé
Ron Olson wrote: > Hi all- > > Is there a particular way I can use to search for instances of null > (ascii 0, hex 0x0) in a file? I haven't come up with a way to do so, > yet there is clearly a null in my file as moving over it shows ascii 0 > and hex 0x0, I just want to find/highlight all the ot

Re: just starting with mingw in windows

2010-01-29 Thread Tony Mechelynck
On 29/01/10 18:32, o1792 wrote: Hi! How can I get my native window Gvim to compile and make programs in MinGW/MSys? I.e. I don't want to edit the code, and then switch to the MSys commandline. I 'd liek to type make and run the program from with the native windows vim environment. I expect I

Re: search for null

2010-01-29 Thread Gary Johnson
On 2010-01-29, Ron Olson wrote: > Hi all- > > Is there a particular way I can use to search for instances of null > (ascii 0, hex 0x0) in a file? I haven't come up with a way to do so, > yet there is clearly a null in my file as moving over it shows ascii 0 > and hex 0x0, I just want to find/highl

search for null

2010-01-29 Thread Ron Olson
Hi all- Is there a particular way I can use to search for instances of null (ascii 0, hex 0x0) in a file? I haven't come up with a way to do so, yet there is clearly a null in my file as moving over it shows ascii 0 and hex 0x0, I just want to find/highlight all the others. Thanks. -- You recei

Re: am i using

2010-01-29 Thread Raúl Núñez de Arenas Coronado
Saluton Ben :) Ben Fritz skribis: > On Jan 29, 2:20 am, Raúl Núñez de Arenas Coronado > wrote: >> >> IMHO, Vim is free software. > > I *MY* opinion, Vim's license is *more* free than the GPL. The GPL > requires that any derivatives also use the GPL for their license. Well, again, I don't have a

Re: Single-column 'set'?

2010-01-29 Thread Gary Johnson
On 2010-01-29, Benjamin R. Haskell wrote: > I just managed to clobber one machine's ~/.vim.local directory (where I > keep machine-specific settings). Luckily I have an instance of 'vim' > still running with the old settings. Armed with my recent ':redir @a' > knowledge (thanks to Brett and wi

Re: Single-column 'set'?

2010-01-29 Thread Benjamin R. Haskell
On Fri, 29 Jan 2010, Bee wrote: > On Jan 29, 7:43 am, "Benjamin R. Haskell" wrote: > > ... > > :redir @a > > ... > > How to save directly to a filename? > > [...] > > But this creates a file named savevimrc in $HOME > > redir > savevimrc > > How to expand savevimrc to the file name? :exe "r

Re: Single-column 'set'?

2010-01-29 Thread Bee
On Jan 29, 7:43 am, "Benjamin R. Haskell" wrote: > ... > :redir @a > ... How to save directly to a filename? This works: redir > savevimrc.txt And the following does what I want: let savevimrc=strftime('~/Desktop/%Y%m%d.%H%M%S-vimrc.txt') echo savevimrc But this creates a file named savevimr

Re: Autoindents lists in C comments

2010-01-29 Thread Gary Johnson
On 2010-01-29, Robbo wrote: > Is it possible to autoindent lists in C comments. > What's the right way? It depends on the type of list you want to have within your C comments. The basic idea is that you need to include the list item leader in 'comments' and tag it with the 'n' flag to tell vim th

Re: how to use string variable for "cs add" command

2010-01-29 Thread Gary Johnson
On 2010-01-28, sc wrote: > On Thursday 28 January 2010 09:31:07 pm Ni, Ruiyu wrote: > > > Thanks pansz! > > It works!! > > > > But I found ctags cannot work as well. > > > > let CodeRoot = "E:/code" > > let TagsDb = CodeRoot . "/tags" > > > > use > > exe "set tags = " . TagsDb > > or > >

just starting with mingw in windows

2010-01-29 Thread o1792
Hi! How can I get my native window Gvim to compile and make programs in MinGW/MSys? I.e. I don't want to edit the code, and then switch to the MSys commandline. I 'd liek to type make and run the program from with the native windows vim environment. I expect I need to tell vim where to look, a

Re: HTML editing: treat tags as a unit

2010-01-29 Thread Tony Mechelynck
On 11/12/09 17:24, Erik Falor wrote: On Fri, Dec 11, 2009 at 10:38:46AM -0500, Dennis German wrote: What are your favorite scripts for editing HTML? Is there a script that treats HTML tags as units? Like maybe mapping gw and gb ? For example with: Starting in the first column, currently th

Re: Single-column 'set'?

2010-01-29 Thread Benjamin R. Haskell
On Fri, 29 Jan 2010, Tim Chase wrote: > Benjamin R. Haskell wrote: > > I just managed to clobber one machine's ~/.vim.local directory > > (where I keep machine-specific settings). Luckily I have an > > instance of 'vim' still running with the old settings. Armed with > > my recent ':redir @a'

Re: Single-column 'set'?

2010-01-29 Thread Tim Chase
Benjamin R. Haskell wrote: I just managed to clobber one machine's ~/.vim.local directory (where I keep machine-specific settings). Luckily I have an instance of 'vim' still running with the old settings. Armed with my recent ':redir @a' knowledge (thanks to Brett and wikia), I've managed to

Re: How to go to command line mode from script

2010-01-29 Thread Aarto Matti
On Fri, Jan 29, 2010 at 3:45 PM, Aarto Matti wrote: > Thanks, I did it! But still, how to send now? This is the function I'm > trying to implement: > > function! RunProject(...) > if !exists("s:project_command") || s:project_command=="" || (a:0==1 && > a:1=="alter") > let s:project_c

Re: filter output to scratch buffer

2010-01-29 Thread Bob Hiestand
On Fri, Jan 29, 2010 at 9:51 AM, Bob Hiestand wrote: > On Thu, Jan 28, 2010 at 9:50 PM, bill lam wrote: >> I map F5 to search dictionary with >> >> nmap :!dict >> >> The output is quite long and also it may contain some info that I >> would like to copy.  Is it possible to redirect the output

Re: filter output to scratch buffer

2010-01-29 Thread Bob Hiestand
On Thu, Jan 28, 2010 at 9:50 PM, bill lam wrote: > I map F5 to search dictionary with > > nmap :!dict > > The output is quite long and also it may contain some info that I > would like to copy.  Is it possible to redirect the output to a new > scratch buffer? You could do something like the fo

Single-column 'set'?

2010-01-29 Thread Benjamin R. Haskell
I just managed to clobber one machine's ~/.vim.local directory (where I keep machine-specific settings). Luckily I have an instance of 'vim' still running with the old settings. Armed with my recent ':redir @a' knowledge (thanks to Brett and wikia), I've managed to save the settings I care ab

Re: am i using

2010-01-29 Thread Ben Fritz
On Jan 29, 2:20 am, Raúl Núñez de Arenas Coronado wrote: > > IMHO, Vim is free software. > I *MY* opinion, Vim's license is *more* free than the GPL. The GPL requires that any derivatives also use the GPL for their license. I'm simplifying (see :help license), but Vim allows you to choose your

Change vim/gvim colorschemes

2010-01-29 Thread Athunye
I was wondering about a possibility to get vim change colorschemes from time to time, Say, every 5 or 10 minutes (automatically). Of course the 'sleep' command won't help in this case. The script would read the contents of a directory with the colorschemes, or the colorscheme names would be placed

Re: Restoring contents

2010-01-29 Thread Jürgen Krämer
Hi, Tim Chase wrote: >> I had typed .wq! instead wq! while saving and closing the file >> in vim.All the contents i had in my file had got lost.Kindly >> let me know how can I retreive the contents of the file.Thanks >> in Advance.Help me in this as the file contained important >> information. >

Re: Restoring contents

2010-01-29 Thread Tim Chase
I had typed .wq! instead wq! while saving and closing the file in vim.All the contents i had in my file had got lost.Kindly let me know how can I retreive the contents of the file.Thanks in Advance.Help me in this as the file contained important information. I'm afraid you don't make much sense

Re: Cscope quickfix -- not jump to first error

2010-01-29 Thread Sergey Khorev
Apologies, I've forgotten to attach the patch >> The solution should probably be to have something else than "find" after >> ":cscope". > > Ok, attached is another try which extends csqf option as suggested by Ben. -- Sergey Khorev http://sites.google.com/site/khorser Can anybody think of a go

Re: Cscope quickfix -- not jump to first error

2010-01-29 Thread Sergey Khorev
> The solution should probably be to have something else than "find" after > ":cscope". Ok, attached is another try which extends csqf option as suggested by Ben. -- Sergey Khorev http://sites.google.com/site/khorser Can anybody think of a good tagline I can steal? -- You received this message

Restoring contents

2010-01-29 Thread charanya
Hi I had typed .wq! instead wq! while saving and closing the file in vim.All the contents i had in my file had got lost.Kindly let me know how can I retreive the contents of the file.Thanks in Advance.Help me in this as the file contained important information. -- View this message in context:

Resteoing contents

2010-01-29 Thread momdad
Hi I had typed .wq! instead wq! while saving and closing the file in vim.All the contents i had in my file had got lost.Kindly let me know how can I retreive the contents of the file.Thanks in Advance.Help me in this as the file contained important information. -- View this message in context:

Re: Cscope quickfix -- not jump to first error

2010-01-29 Thread Aarto Matti
On Fri, Jan 29, 2010 at 7:33 AM, Sergey Khorev wrote: > > Instead of a ! on the command, how about incorporating it into > > 'cscopequickfix'? For example, the following could be made a valid > > setting: > > Agreed, that should make more sense. > > I'm agree as well, extending 'cscopequickfix' is

Re: How to go to command line mode from script

2010-01-29 Thread Aarto Matti
On Fri, Jan 29, 2010 at 12:22 AM, Ben Fritz wrote: > > Try using an expression mapping to call your function, which should > just return the incomplete command line with the leading : but without > the trailing . > > :help map- > > Thanks, I did it! But still, how to send now? This is the functi

Autoindents lists in C comments

2010-01-29 Thread Robbo
Is it possible to autoindent lists in C comments. What's the right way? Thank you -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php

Re: customize my initial window size

2010-01-29 Thread Tony Mechelynck
On 11/12/09 11:29, kenorb wrote: And what was the command to change window position to 0x0? see :help :winpos Best regards, Tony. -- If you stick a stock of liquor in your locker, It is slick to stick a lock upon your stock. Or some joker who is slicker, Will trick you of you

Re: FIXME syntax highlighting.

2010-01-29 Thread Stroller
On 27 Jan 2010, at 00:40, meino.cra...@gmx.de wrote: ...just as an addition not as solution: To switch off the highlightning after a search use :nohlsearch I put this on F5 with map :nohlsearch in my .vimrc. Yes, but /jwefjewjfi is more fun. :P You can find out more about n

Re: Python indention

2010-01-29 Thread Torsten Andre
Torsten Andre wrote: > Hi everyone, > I am having some trouble with my indention in python. I installed the > indention plugin for Python under [1] and according to the > documentation, I think comments starting with a "#" should not moved to > the very left of the page, but the current line indent

Re: FW: Issues with using Vim as Pager

2010-01-29 Thread Mike Sampson
On Fri, Jan 29, 2010 at 8:07 PM, Ajay Jain wrote: > Even after a careful search, I can't find an option to set character > set to utf-8. Could you please help. > It is done in the drop down list in this screenshot[1]. [1] - http://www.softpedia.com/screenshots/PuTTY-Portable_10.png I have neede

Re: FW: Issues with using Vim as Pager

2010-01-29 Thread Ajay Jain
> Try setting the character set to utf-8 on the translation panel in PuTTY. Even after a careful search, I can't find an option to set character set to utf-8. Could you please help. Thanks. -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/

RE: how to use string variable for "cs add" command

2010-01-29 Thread Ni, Ruiyu
Thank you sc & pansz! Both works now!! -Original Message- From: vim_use@googlegroups.com [mailto:vim_...@googlegroups.com] On Behalf Of sc Sent: Friday, January 29, 2010 12:53 PM To: vim_use@googlegroups.com Subject: Re: how to use string variable for "cs add" command On Thursday 28 Janua

Re: Issues with using Vim as Pager

2010-01-29 Thread Mike Sampson
Hi, On Fri, Jan 29, 2010 at 4:52 PM, Ajay Jain wrote: > Hi, > > I am using vim to read man pages. My set up is that I use an ssh > client (putty) over Windows to login to a Linux server. I use > > > However, the man pages are not displayed properly. For instance, a man > ls shows distorted chara

Re: [CURIOUSITY] am i using

2010-01-29 Thread Raúl Núñez de Arenas Coronado
Saluton pansz :) pansz skribis: > open-source software != free-as-in-freedom software. > > Vim is open-source, but it is not free-as-in-freedom software. I don't want to start a flamewar on this issue, I'm just curious: in which way is Vim not free-as-in-freedom software? I've read the license a