Re: How to format (gq) multiple selected blocks of text?

2011-02-18 Thread Tim Chase
On 02/18/2011 06:35 PM, howardb21 wrote: I want to execute the format command, gq, on multiple blocks of text that I select. The best way would be if I could execute gq in ex mode, that is: :g/pattern1/,/pattern2/gq But gq doesnt work in ex mode. This could be written something like :g/pat

How to format (gq) multiple selected blocks of text?

2011-02-18 Thread howardb21
I want to execute the format command, gq, on multiple blocks of text that I select. The best way would be if I could execute gq in ex mode, that is: :g/pattern1/,/pattern2/gq But gq doesnt work in ex mode. I cant use an external program like fmt, because vim, in windows, would launch a separate

Re: Vim Scripting Mode/Plugin

2011-02-18 Thread Luc Hermitte
Hello, "Nathan Neff" wrote: > I know there's some C, Java, Perl and Bash vim plugins. > > Are there any plugins that help with writing Vim scripts? Over the years, I have developed a few things in that area: - some smart-snippets (that won't expand within comments/string) and other surroundin

Re: GVim .vimrc Help

2011-02-18 Thread Marc Weber
Excerpts from nickatron's message of Fri Feb 18 22:00:35 +0100 2011: > > I have no idea what that does. All it did for me is open a window called > watch and listed items in my home folder. I'm very new to linux and gvim > btw. Yes. You got it. You asked for running an application in an external

Re: How to open files in splitted tabs

2011-02-18 Thread Tim Chase
On 02/18/2011 01:02 PM, Tianshuo Deng wrote: There are 3 files in buffers, How can I display each of them in each tab? I noticed there is a "sball" command, which will display each of files in each window. Is there a similiar command for tabs?? As mentioned at :help :sball just prefix it wi

Re: Vim count selection and put in statusline

2011-02-18 Thread carlosp
Christian Brabandt wrote: > > On Fri, February 18, 2011 2:10 am, carlosp wrote: >> >> Dear all, I would like to know if there is some non-baroque way of, when >> doing a selection of some text, set in the status line just the number of >> characters in the selection (and of course, when one modi

Re: OT: Vim Humans are...

2011-02-18 Thread Väinö Leppänen
I actually started out as a windows guy and I've been with linux only for a couple of years but for me, vim is about doing things with keyboard. No mouse, never. Some things could benefit from mouse but the keyboard, vim and all the commands at my user gives me a very powerful UI. I actually took

How to open files in splitted tabs

2011-02-18 Thread Tianshuo Deng
hi, guys. I just switched from intellij to vim. Here is the question: There are 3 files in buffers, How can I display each of them in each tab? I noticed there is a "sball" command, which will display each of files in each window. Is there a similiar command for tabs?? Any help is appreciated!!

Re: Vim Scripting Mode/Plugin

2011-02-18 Thread ZyX
Reply to message «Vim Scripting Mode/Plugin», sent 23:26:54 18 February 2011, Friday by Nathan Neff: I have written vimpluginloader plugin that is actually some kind of framework, the main point was to write plugin that will be able to reload itself and other plugins so that I do not need to re

Re: GVim .vimrc Help

2011-02-18 Thread nickatron
I have no idea what that does. All it did for me is open a window called watch and listed items in my home folder. I'm very new to linux and gvim btw. -- View this message in context: http://vim.1045645.n5.nabble.com/GVim-vimrc-Help-tp3391470p3391781.html Sent from the Vim - General mailing list

Re: Vim Scripting Mode/Plugin

2011-02-18 Thread Marc Weber
Excerpts from Nathan Neff's message of Fri Feb 18 21:26:54 +0100 2011: > I know there's some C, Java, Perl and Bash vim plugins. > > Are there any plugins that help with writing Vim scripts? - vim-dev (see readme) completion and goto auto load function - reload (reloads files on buf write) > I

Vim Scripting Mode/Plugin

2011-02-18 Thread Nathan Neff
I know there's some C, Java, Perl and Bash vim plugins. Are there any plugins that help with writing Vim scripts? I've found it a bit difficult to search the vim.org site, because searches for "vim scripting plugin" or "vim development" turns up quite a few results. I guess in particular, I'm lo

Re: OT: Vim Humans are...

2011-02-18 Thread meino . cramer
Hi all of outside in the wonderful word of vim ! :) Oh what interesting answers you all posted : GREAT ! :) *** THANK YOU ALL! *** My perception of text and I mean mainly config files, source code or more generally "technical used text" has become more as being built "from parts"

Re: GVim .vimrc Help

2011-02-18 Thread Marc Weber
Excerpts from nickatron's message of Fri Feb 18 18:56:11 +0100 2011: > Is there a way to make my program run in a new terminal window instead of > inside GVim? Have a look at the documentation of your console. Eg for xterm: xterm -e watch ls -l You may want to background it.. Marc Weber -- You

GVim .vimrc Help

2011-02-18 Thread nickatron
This is my .vimrc so far: set nu filetype indent on set autoindent map :call CompileRunGpp() func! CompileRunGpp() exec "w" exec "!g++ % -o %<.exe" exec "!./%<.exe" endfunc Is there a way to make my program run in a new terminal window instead of inside GVim? -- View th

Re: OT: Vim Humans are...

2011-02-18 Thread Tim Chase
On 02/18/2011 01:18 AM, Christian Brabandt wrote: And working with tiny vi enlightens me, what is so useful and comfortable with a full featured vim. It's still fun, to try to get around, like it used to be in the 70s. Heh, I still use ed on occasion with the same nostalgia. :) -tim -- You r

Re: How do I click select a command from a list in buffer (a), and execute the chosen command in buffer (b) ?

2011-02-18 Thread Tim Chase
On 02/17/2011 10:44 PM, Rostyslaw Lewyckyj wrote: I have a reasonably extensive repertory of edit commands from which, I'd like to pick and chose individual commands and execute them against my current buffer. I'd like to open the file to be edited in buffer (a), and the repertory of commands in

Re: OT: Vim Humans are...

2011-02-18 Thread Erik Christiansen
On Thu, Feb 17, 2011 at 07:43:42PM +0100, meino.cra...@gmx.de wrote: > > Is there a certain perception of text and text handling by vim people > which may be distintive different from people who definetly dont like > vim? After about 15 years of using vim, the most relevant observation which pen

Re: OT: Vim Humans are...

2011-02-18 Thread Anthony Campbell
On 18 Feb 2011, lessthanideal wrote: > [snip] > I also use it for miscellaneous text tasks like taking notes > or writing emails like this for Google Groups, but not for > writing documents - I use Word for that. I was using Word > before I came to vim, but it's never really occurred to me > to

Re: OT: Vim Humans are...

2011-02-18 Thread lessthanideal
On Feb 17, 7:31 pm, meino.cra...@gmx.de wrote: > AK [11-02-17 20:08]: > > > > > > > On 02/17/2011 01:43 PM, meino.cra...@gmx.de wrote: > > >Hi, > > > >first of all: My interest and/or question, which let me post here, is > > >neither intended as the initial spark for a flame war nor as anything >

Re: highlight with transparent background

2011-02-18 Thread Jeroen Budts
On 02/17/2011 11:32 PM, Ben Schmidt wrote: Thanks for the suggestion! I tried your solution with a few different configurations but i couldn't get it to work. Maybe it has something to do with the Molokai colorscheme i'm currently using. One strange thing about that (or maybe i simply don't under

Re: OT: Vim Humans are...

2011-02-18 Thread John Little
On Feb 18, 7:43 am, meino.cra...@gmx.de wrote: ... > Is there a kind of vim psychology? I've often wondered this, but I'd expect it not directly related to whatever techniques or commands or use cases people use vim for, because there's a wide diversity in the ways vim is used. This group often r

Re: How to add a margin at the left/right side of the text area?

2011-02-18 Thread Christian Brabandt
On Fri, February 18, 2011 9:29 am, Yue Wu wrote: > As the title. My eyes feel tired with too tight between the left side of > the xterm window and vim text area, it would be better if there can be a > margin between them. Well for the left side, you can simply abuse the FoldColumn for that. Someth

How to add a margin at the left/right side of the text area?

2011-02-18 Thread Yue Wu
Hello, list, As the title. My eyes feel tired with too tight between the left side of the xterm window and vim text area, it would be better if there can be a margin between them. -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Phar