Re: ANN: dbext 9.00

2009-01-15 Thread Daniel Fetchinson
What is it? --- dbext.vim : Provides database access to most databases. http://www.vim.org/scripts/script.php?script_id=356 This plugin contains functions/mappings/commands to enable Vim to access several databases. Currently Mysql, PostgreSQL, Ingres, Oracle, Sybase Adaptive

Re: scripting: split into seperate files based on line contents

2009-01-15 Thread Linus Neumann
John Beckett wrote: please confirm procedure: (...) Is that correct? Anything else? This is perfectly correct! 3. f1 is a smallish integer (1, 2, 3, ...). f1 is an integer might range to something like 17 or 20 at most. Thank you very much! Linus

Re: custom search for word under cursor

2009-01-15 Thread Dmitry Teslenko
On Wed, Jan 14, 2009 at 15:40, Tinou tinou...@gmail.com wrote: On Wed, Jan 14, 2009 at 1:13 PM, Dmitry Teslenko dtesle...@gmail.com wrote: Hello! Hi I'm frequently perform searches with vimgrep that looks like :vimgrep /\term\/ file-mask I think that would be nice idea to make a function

Re: custom search for word under cursor

2009-01-15 Thread Tinou
On Thu, Jan 15, 2009 at 9:49 AM, Dmitry Teslenko dtesle...@gmail.com wrote: On Wed, Jan 14, 2009 at 15:40, Tinou tinou...@gmail.com wrote: On Wed, Jan 14, 2009 at 1:13 PM, Dmitry Teslenko dtesle...@gmail.com wrote: Hello! Hi I'm frequently perform searches with vimgrep that looks like

Why does cinoptioins apply to my mail syntax?

2009-01-15 Thread Frans Grotepass
Well, that is my question. Why does the cinoptions apply to the mail syntax? --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

Re: Disable srcoll visual alert in gvim

2009-01-15 Thread Frans Grotepass
Dennis Benzinger wrote: Am 15.01.2009 08:50, Frans Grotepass schrieb: Hi all. My collegue is bothered by gvim when I scroll and it reaches the end of the buffer. When reaching the end, the screen flashes and it distracts him. How can one turn this off? [...] You have :set visualbell

[latex-suite] with :cn the cursor doesn't jump to the error line

2009-01-15 Thread Robbo
Hi, if you use vim for compiling C programs using the command :make and there are some errors, the cursor is automatically took to the error line. In addition, if you execute the command :cn, the cursor jumps to the next error line. this doesn't happen in latex-suite when I compile using the

Re: Why does cinoptioins apply to my mail syntax?

2009-01-15 Thread Cory Echols
On Thu, Jan 15, 2009 at 4:09 AM, Frans Grotepass fmgrotep...@yahoo.co.uk wrote: Well, that is my question. Why does the cinoptions apply to the mail syntax? It doesn't seem to be set to apply to mail sytax by default. You may have some autocommands or plugins specific to your setup that are

Re: Why does cinoptioins apply to my mail syntax?

2009-01-15 Thread Frans Grotepass
Cory Echols wrote: On Thu, Jan 15, 2009 at 4:09 AM, Frans Grotepass fmgrotep...@yahoo.co.uk wrote: Well, that is my question. Why does the cinoptions apply to the mail syntax? It doesn't seem to be set to apply to mail sytax by default. You may have some autocommands or plugins specific

Re: scripting: split into seperate files based on line contents

2009-01-15 Thread Mansour Al Akeel
I tested it on my system with gawk: GNU Awk 3.1.6 I am not sure which awk you are using. Usually you can find out by: awk -W version Try to use a delimeter after the print statment. For example: print $0 out ; instead of: print $0 out If that doesn't work, then just put the awk line in

Re: Why does cinoptioins apply to my mail syntax?

2009-01-15 Thread Cory Echols
On Thu, Jan 15, 2009 at 8:11 AM, Frans Grotepass fmgrotep...@yahoo.co.uk wrote: cindent is on. Switching to nocindent solves the problem. What happens is the following (with tabwidth set to 4. blablabla, bla instead of blablabla, bla the comma and open bracket ( cause problems.

Re: scripting: split into seperate files based on line contents

2009-01-15 Thread Max Waterman
Linus Neumann wrote: I tried it an a tab-delimited .dat file (as I unterstand that it transfers commas to dots - and as Max correctly warned me, the generated .csv are anything but comma-seperated...) This is a problem that perl was made for. I'm sure you can massage the script on this

Re: Why does cinoptioins apply to my mail syntax?

2009-01-15 Thread Frans Grotepass
Cory Echols wrote: On Thu, Jan 15, 2009 at 8:11 AM, Frans Grotepass fmgrotep...@yahoo.co.uk wrote: cindent is on. Switching to nocindent solves the problem. What happens is the following (with tabwidth set to 4. blablabla, bla instead of blablabla, bla the comma and open

Re: Why does cinoptioins apply to my mail syntax?

2009-01-15 Thread Frans Grotepass
Cory Echols wrote: On Thu, Jan 15, 2009 at 8:46 AM, Frans Grotepass fmgrotep...@yahoo.co.uk wrote: Sorry, it is set in ~/.vimrc cinoptions is set to :0,(0. The ( then behaves like follows: blablabla blabla ( blablaA with cinoptions set to and cindent on, it becomes

Re: Why does cinoptioins apply to my mail syntax?

2009-01-15 Thread Cory Echols
On Thu, Jan 15, 2009 at 8:46 AM, Frans Grotepass fmgrotep...@yahoo.co.uk wrote: Sorry, it is set in ~/.vimrc cinoptions is set to :0,(0. The ( then behaves like follows: blablabla blabla ( blablaA with cinoptions set to and cindent on, it becomes blablabla blabla (

Re: Why does cinoptioins apply to my mail syntax?

2009-01-15 Thread Teemu Likonen
Cory Echols (2009-01-15 09:04 -0500) wrote: If you just have a plain line in your .vimrc for 'set cinoptions', then that will apply across all filetypes. The standard way in vim to set options for a specific filetype is to create a filetype plugin. Also, we should pretty much always use

Re: latex-suite - executing script after plugin loading

2009-01-15 Thread Ted Pavlic
I need a way to execute a vim script only after latex-suite plugin is loaded. How could I do? This is not a vim-latex-specific question. See :help after and :help 43.2 (Adding a filetype) Commands placed in ~/.vim/after/tex.vim will be executed when a file of

Re: custom search for word under cursor

2009-01-15 Thread Matt Wozniski
On Thu, Jan 15, 2009 at 3:55 AM, Tinou wrote: On Thu, Jan 15, 2009 at 9:49 AM, Dmitry Teslenko wrote: 2) Never used leader-s before. Is it global or plugin-specific? I think leader is global. Yep. As opposed to maplocalleader, which is meant to be ftplugin-specific. You can remap it to

National characters to word characters. How?

2009-01-15 Thread Axel Palm
Vim newbie question: how can i make my national characters to become characters in vim's sense? I have issues with öäüõžš. I have in my _gvim (what I think is relevant) : set enc=Latin1 set isk=@,48-57,_,128-167,196,213,214,220,224-235,245,246,252 Any help is very appreciated. Axel

Re: Strange result of reading from shell

2009-01-15 Thread yosi izaq
Hi, I'm using gvim launched from an linux xterm. I want to work with all the files in the current directory so I do :r! ls the result is full of strange characters that get in the way of editing the file. I get something like (ignore the line numbers): 2 ^[[00mtotal 184 3

delete between patterns

2009-01-15 Thread Ben Kim
Vimmers, I couldn't find a way to do this and would like a help. I'm editing a svn dump, but would like to know how to delete blocks between /Node-path: .*LCK/ to the Next /Node-path:/-1 Node-path: edit-1.gif ... Node-path: edit.gif.LCK | I want to delete

Re: delete between patterns

2009-01-15 Thread Ben Kim
Well right after posting I hit something that worked. Node-path: edit-1.gif ... Node-path: edit.gif.LCK | I want to delete this block. | | Node-path: edit.gif

Re: delete between patterns

2009-01-15 Thread Tim Chase
I couldn't find a way to do this and would like a help. I'm editing a svn dump, but would like to know how to delete blocks between /Node-path: .*LCK/ to the Next /Node-path:/-1 Node-path: edit-1.gif ... Node-path: edit.gif.LCK | I want to

Re: Strange result of reading from shell

2009-01-15 Thread Mr. Shawn H. Corey
On Thu, 2009-01-15 at 07:53 -0800, WL wrote: Hi, I'm using gvim launched from an linux xterm. I want to work with all the files in the current directory so I do :r! ls the result is full of strange characters that get in the way of editing the file. I get something like (ignore the

Re: Strange result of reading from shell

2009-01-15 Thread bill lam
On Thu, 15 Jan 2009, WL wrote: Any idea why this happens?- More importantly how to make this go away? I suspect they are escape sequence for color codes. Does it help if you pipe the output. eg, ls | cat -- regards, GPG key 1024D/4434BAB3

Re: ANN: dbext 9.00

2009-01-15 Thread David Fishburn
... Hi, dbext looks like a very useful extension, do you have plans to support sqlite? It is already supported. See the home page: http://www.vim.org/scripts/script.php?script_id=356 Dave --~--~-~--~~~---~--~~ You received this message from the vim_use

Re: ANN: dbext 9.00

2009-01-15 Thread Daniel Fetchinson
Hi, dbext looks like a very useful extension, do you have plans to support sqlite? It is already supported. See the home page: http://www.vim.org/scripts/script.php?script_id=356 In the announcement email sqlite was missing, this is what confused me. In any case, thanks for this great vim

Re: ANN: dbext 9.00

2009-01-15 Thread David Fishburn
Hi, dbext looks like a very useful extension, do you have plans to support sqlite? It is already supported. See the home page: http://www.vim.org/scripts/script.php?script_id=356 In the announcement email sqlite was missing, this is what confused me. Thanks, I will update my usual blurb

saving shell between sessions

2009-01-15 Thread Happy Vims
Using gVim (whether on Windows, Mac or Linux) when I issue :shell I am taken to the OS shell. I can execute various commands and then exit. However, my commands are not saved between sessions so if I want to call up the shell again I have to retype all my commands. On a mac, after

Re: scripting: split into seperate files based on line contents

2009-01-15 Thread Tony Mechelynck
On 14/01/09 18:45, Linus Neumann wrote: Dear all, to continue with my diploma thesis, I have a particular problem to solve and I believe that VIM-scripting might be the most convenient way to do so - please correct me, if I am wrong. I have no more than very basic programming or scripting

Re: fuzzyfinder plugin displays very lengthy absolute paths to matching files

2009-01-15 Thread Nate
notice while I'm at it that the latest version of fuzzyfind has a comment to the effect that it introduced *exactly* this feature. Ding! Ding! I wanted to make sure that you'd seen the update. This is sort of the Murphy's Law, where if you fix something, then the original author will fix it

Re: How to put the number of lines in the vim buffer (e.g. wc -l) into a variable?

2009-01-15 Thread Tony Mechelynck
On 15/01/09 08:42, John Beckett wrote: Stephanus Schoonees wrote: Could someone please assist me on how to put the amount of lines in the vim buffer into a vim variable? :let numlines = line('$') My aim is to repeat a macro/script a times in vim. If you are operating on the lines in the

Re: How to put the number of lines in the vim buffer (e.g. wc -l) into a variable?

2009-01-15 Thread Tim Chase
3):1,$g/^.*$/command [snip] 4) to execute some ex-command only on lines containing something other than whitespace :1,$v/^\s*$/command As I use variants of these quite frequently, these can be shortened to just :g/^/command :v/^/command because (1) the :g/:v commands

Re: Why does cinoptioins apply to my mail syntax?

2009-01-15 Thread Tony Mechelynck
On 15/01/09 15:04, Cory Echols wrote: On Thu, Jan 15, 2009 at 8:46 AM, Frans Grotepass fmgrotep...@yahoo.co.uk wrote: Sorry, it is set in ~/.vimrc cinoptions is set to :0,(0. The ( then behaves like follows: blablabla blabla ( blablaA with cinoptions set to and

Trying gVim-7.2 on Windows: problems with locale and messages

2009-01-15 Thread Dominique Pelle
Hi I always use vim on Linux and almost never use it on Windows. But I just installed Vim-7.2 on Windows Vista (gVim, self intaller for Windows) in order to verify the portability of my .vimrc among other things. I'm seeing several things that misbehave and I'm not sure yet whether they are

Re: How to put the number of lines in the vim buffer (e.g. wc -l) into a variable?

2009-01-15 Thread Tony Mechelynck
On 15/01/09 22:04, Tim Chase wrote: 3) :1,$g/^.*$/command [snip] 4) to execute some ex-command only on lines containing something other than whitespace :1,$v/^\s*$/command As I use variants of these quite frequently, these can be shortened to just :g/^/command

Re: delete between patterns

2009-01-15 Thread Ben Kim
With the :g command, each Ex command that follows it has the cursor already on the line in question, so the implict-made-explicit becomes :g/^Node-path:.*LCK/.,/^Node-path:/-1d Ah, Thanks. Ben Kim --~--~-~--~~~---~--~~ You received this message from the

Re: National characters to word characters. How?

2009-01-15 Thread Tony Mechelynck
On 15/01/09 12:16, Axel Palm wrote: Vim newbie question: how can i make my national characters to become characters in vim's sense? I have issues with öäüõžš. I have in my _gvim (what I think is relevant) : set enc=Latin1 set isk=@,48-57,_,128-167,196,213,214,220,224-235,245,246,252 Any

Re: scripting: split into seperate files based on line contents

2009-01-15 Thread Agathoklis D. Hatzimanikas
On Fri, Jan 16, at 12:47 Agathoklis D. Hatzimanikas wrote: Thats the problem when you try to find a meaningful name for a script in the last second. let parser = {} let linus = {} let parser['delim'] = { let linus['delim'] = { \ 'dat' : '' \, 'csv' : ';' \ } let

Re: Strange result of reading from shell

2009-01-15 Thread Tony Mechelynck
On 15/01/09 17:50, yosi izaq wrote: I suspect they are escape sequence for color codes. Does it help if you pipe the output. eg, ls | cat r! /bin/ls works well r! ls | cat doesn't Thank you guys! What about :r !ls --color=no ? Best regards, Tony. -- GUEST:He's killed

Re: Strange result of reading from shell

2009-01-15 Thread Gary Johnson
On 2009-01-15, Mr. Shawn H. Corey shawnhco...@magma.ca wrote: On Thu, 2009-01-15 at 07:53 -0800, WL wrote: Hi, I'm using gvim launched from an linux xterm. I want to work with all the files in the current directory so I do :r! ls the result is full of strange characters that get

Re: Strange result of reading from shell

2009-01-15 Thread Mr. Shawn H. Corey
On Thu, 2009-01-15 at 15:39 -0800, Gary Johnson wrote: To verify that you are using an alias, you can execute (at a shell prompt): alias ls I think you'll see something like this: ls='ls --color=always' If you can find where that alias is defined--probably in your ~/.bashrc

Re: saving shell between sessions

2009-01-15 Thread Gary Johnson
On 2009-01-15, Happy Vims vim4...@gmail.com wrote: Using gVim (whether on Windows, Mac or Linux) when I issue :shell I am taken to the OS shell. I can execute various commands and then exit. However, my commands are not saved between sessions so if I want to call up the shell again I

Re: Trying gVim-7.2 on Windows: problems with locale and messages

2009-01-15 Thread bill lam
On Thu, 15 Jan 2009, Dominique Pelle wrote: Command :message gives: Langue courante pour : LC_COLLATE=French_France.1252;LC_CTYPE=C;LC_MONETARY=French_France.1252;LC_NUMERIC=C;LC_TIME=French_France.1252 Ah, why 1252 code page and how can I change it? Why doesn't it use Unicode by

Re: Trying gVim-7.2 on Windows: problems with locale and messages

2009-01-15 Thread Yongwei Wu
2009/1/16 Dominique Pelle dominique.pe...@gmail.com: Hi I always use vim on Linux and almost never use it on Windows. But I just installed Vim-7.2 on Windows Vista (gVim, self intaller for Windows) in order to verify the portability of my .vimrc among other things. I'm seeing several

Re: Trying gVim-7.2 on Windows: problems with locale and messages

2009-01-15 Thread Dominique Pelle
Yongwei Wu wrote: 2009/1/16 Dominique Pelle dominique.pe...@gmail.com: Hi I always use vim on Linux and almost never use it on Windows. But I just installed Vim-7.2 on Windows Vista (gVim, self intaller for Windows) in order to verify the portability of my .vimrc among other things.

Re: Trying gVim-7.2 on Windows: problems with locale and messages

2009-01-15 Thread Dominique Pelle
2009/1/16 bill lam cbill@gmail.com: On Thu, 15 Jan 2009, Dominique Pelle wrote: Command :message gives: Langue courante pour : LC_COLLATE=French_France.1252;LC_CTYPE=C;LC_MONETARY=French_France.1252;LC_NUMERIC=C;LC_TIME=French_France.1252 Ah, why 1252 code page and how can I change it?

Re: Trying gVim-7.2 on Windows: problems with locale and messages

2009-01-15 Thread Patrick Texier
Le Thu, 15 Jan 2009 22:20:20 +0100, Dominique Pelle a écrit dans le message d2e1eef20901151320n44abcb96y90c762b6c56a4...@mail.gmail.com : Hopefully I'm missing something obvious. You have to build an UTF-8 message file. Gettext doesn't use iconv. -- Patrick Texier