Re: bash script using vim commands?

2011-05-20 Thread shawn wilson
On May 21, 2011 12:30 AM, "Antonio Recio" wrote: > > The two commands to delete the comments of C++ files are: > :%s!\s*//.*\|/\*\_.\{-}\*/ > :g/^\s*$/d > > How I can add this commands to my bash script? > The right tool for the job I think: sed, awk, perl, lisp, etc. I don't think vim is the rig

Re: I would like to open 3 vim windows if possible

2011-05-20 Thread shawn wilson
On May 20, 2011 7:22 PM, "Tony Mechelynck" wrote: > > On 19/05/11 21:02, woodygar wrote: >> > If you want to open several Vim instances side-by-side (or maybe partly overlapping), you can: just launch Vim a second time. Of course, they won't share buffers or registers (other than the clipboard if

Re: break line that is too line in QuickFix list

2011-05-20 Thread Ben Schmidt
does anybody know if there is a way to break a line of text that is too long in QuickFix list. say if the line is longer than 60 characters move the word to the next line. i'm sure there is a way to do this globally but i need it to be done only in QuickFix list window. any help is appreciated

Re: Vim dsitribution for C++?

2011-05-20 Thread Marc Weber
Excerpts from Antonio Recio's message of Fri May 20 21:25:24 +0200 2011: > Do you know some distribution of vim for C++ development with the > recommended plugins? Something like http://spf13.com/project/spf13-vim or > Ex-Vim http://code.google.com/p/exvim/ Not yet - but using VAM such a "plugin

Re: List of hotkeys?

2011-05-20 Thread Xell Liu
Hi. You can try :verbose , e.g. :verbose nmap . On Sat, May 21, 2011 at 9:48 AM, Antonio Recio wrote: > Is there any script to find hotkeys used and the available ones (including > the configuration of the plugins, vimrc, gvimrc, etc)? > > -- > You received this message from the "vim_use" mailli

bash script using vim commands?

2011-05-20 Thread Antonio Recio
I would like to execute a bash script from the terminal with two vim commands. This script is useful to delete the comments of C++ files recursively (subfolders too) The two commands to delete the comments of C++ files are: :%s!\s*//.*\|/\*\_.\{-}\*/ :g/^\s*$/d How I can add this commands to my

Re: break line that is too line in QuickFix list

2011-05-20 Thread cyboman
On May 20, 7:04 pm, Ben Schmidt wrote: > On 21/05/11 7:06 AM, cyboman wrote: > > > does anybody know if there is a way to break a line of text that is > > too long in QuickFix list. say if the line is longer than 60 > > characters move the word to the next line. i'm sure there is a way to > > do

List of hotkeys?

2011-05-20 Thread Antonio Recio
Is there any script to find hotkeys used and the available ones (including the configuration of the plugins, vimrc, gvimrc, etc)? -- 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.

zip.vim: jumplist/filetype issue

2011-05-20 Thread Motoya Kurotsu
Hi, Thank you for providing zip.vim. I met some problems when I used zip.vim. This is the report of the problems and the proposed patch. 1) When I move around files in a zip by CTRL-O/CTRL-I, I am sometimes led to the end of file, on which I have never put the cursor. 2) Likewise, the column

Re: break line that is too line in QuickFix list

2011-05-20 Thread Gary Johnson
On 2011-05-20, Gary Johnson wrote: > On 2011-05-20, cyboman wrote: > > does anybody know if there is a way to break a line of text that is > > too long in QuickFix list. say if the line is longer than 60 > > characters move the word to the next line. i'm sure there is a way to > > do this globally

Re: I would like to open 3 vim windows if possible

2011-05-20 Thread Tony Mechelynck
On 19/05/11 21:02, woodygar wrote: Hi thanks for helping me last time - and i hope im explaining this ok. I have pydiction and it works fine now but Is there any way to automatically open gvim and have a left column window for the current directory list, the large main window for editing the file

Re: break line that is too line in QuickFix list

2011-05-20 Thread Ben Schmidt
On 21/05/11 7:06 AM, cyboman wrote: does anybody know if there is a way to break a line of text that is too long in QuickFix list. say if the line is longer than 60 characters move the word to the next line. i'm sure there is a way to do this globally but i need it to be done only in QuickFix lis

Re: source file with no errors

2011-05-20 Thread Tony Mechelynck
On 19/05/11 15:46, Ben Schmidt wrote: On 19/05/11 11:36 PM, cyboman wrote: i'm continuously making additions to my _vimrc file and sometimes need to re-source the file. i have a lot of mappings in the file so every time i re-source it i get errors saying that the given mapping already exists. do

Re: how to make shift, ctrl keys sticky

2011-05-20 Thread Tony Mechelynck
On 19/05/11 06:17, Benjamin R. Haskell wrote: [...] With the exception of games and applications that hide their keyboard shortcuts or menus until you hold , most programs (under most OS'es) don't listen for so-called "modifier keys" on their own. Yeah, once upon a time I had a chess program f

Re: do not expand ~/

2011-05-20 Thread Gary Johnson
On 2011-05-20, cyboman wrote: > is there an option telling vim not to expand ~/ ? Do you mean '~' as the equivalent of $HOME in some shells or '~' as matching the last given substitute string? In the latter case, just precede '~' with '\'. Gary -- You received this message from the "vim_use" m

Re: break line that is too line in QuickFix list

2011-05-20 Thread Gary Johnson
On 2011-05-20, cyboman wrote: > does anybody know if there is a way to break a line of text that is > too long in QuickFix list. say if the line is longer than 60 > characters move the word to the next line. i'm sure there is a way to > do this globally but i need it to be done only in QuickFix lis

do not expand ~/

2011-05-20 Thread cyboman
is there an option telling vim not to expand ~/ ? thanks -- 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

break line that is too line in QuickFix list

2011-05-20 Thread cyboman
does anybody know if there is a way to break a line of text that is too long in QuickFix list. say if the line is longer than 60 characters move the word to the next line. i'm sure there is a way to do this globally but i need it to be done only in QuickFix list window. any help is appreciated --

Re: regular expressions in errorformat

2011-05-20 Thread cyboman
On May 20, 4:13 pm, Gary Johnson wrote: > On 2011-05-20, cyboman wrote: > > does anybody know if it is possible to use regular expressions in > > errorformat option? and if yes then how can i do it? > > Yes it is.  There is not a help tag for that particular entry, but > if you execute > >     :

Re: regular expressions in errorformat

2011-05-20 Thread Gary Johnson
On 2011-05-20, cyboman wrote: > does anybody know if it is possible to use regular expressions in > errorformat option? and if yes then how can i do it? Yes it is. There is not a help tag for that particular entry, but if you execute :help errorformat and search for /^Pattern matching

Vim dsitribution for C++?

2011-05-20 Thread Antonio Recio
Do you know some distribution of vim for C++ development with the recommended plugins? Something like http://spf13.com/project/spf13-vim or Ex-Vim http://code.google.com/p/exvim/ -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are re

regular expressions in errorformat

2011-05-20 Thread cyboman
does anybody know if it is possible to use regular expressions in errorformat option? and if yes then how can i do it? thanks. -- 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

error using :Exp

2011-05-20 Thread Bee
Today I used :Exp and got these errors, previously (not sure when it changed) it worked fine. osX 10.4.11 terminal vim compiled from MacPorts VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar 31 2011 19:47:34) MacOS X (unix) version Included patches: 1-20, 22-146 " ---1-2-3

Re: swapping mark behaviors

2011-05-20 Thread ZyX
Reply to message «Re: swapping mark behaviors», sent 10:51:11 20 May 2011, Friday by Jeroen Budts: > One simple solution I can think of is to remap most mark-related > > commands, such as: > :map ma mA > :map mb mB > :map 'a 'A > > "etc.. For m* you should use `nnoremap ma mA' because mark comm