Re: buffer list count

2006-11-14 Thread Milan Vancura
Hi, When my .vimrc is running, creating the BufAdd autocmds, all of the files (*.c) I think already have buffers assigned to them. I'm not sure, but this could cause the problem. A simple fix would just be a manual buffer count on VimEnter. I'm getting close to the best solution. I think

wrong direction of 'n' -- when #,n are remapped and inside function

2006-11-14 Thread Yakov Lerner
In the script below, where # and n are remapped, n goes the wrong direction after #. To see: vim -u NONE bad.bim :so % gg/bacrnnn#n -- the last n goes forward. we expect it to move backward. But when script is rewritten to the form #2, then n after # works correcty. Plain moving the

Re: (patch), global var that indicates default search direction

2006-11-14 Thread Bram Moolenaar
Yakov Lerner wrote: In addition to @/, this adds global variable that indicates default search direction (1-forward, 0-backward). Doc patch is inluded. The variable name, v:patdir, is not perfect. But I could not think of better name. v:searchdir would be even worse (search directories

Patch 7.0.163

2006-11-14 Thread Bram Moolenaar
Patch 7.0.163 Problem:Can't retrieve the position of a sign after it was set. Solution: Add the netbeans interface getAnno command. (Xavier de Gaye) Files: runtime/doc/netbeans.txt, src/netbeans.c *** ../vim-7.0.162/runtime/doc/netbeans.txt Sun May 7 16:58:43 2006 ---

Patch 7.0.164

2006-11-14 Thread Bram Moolenaar
Patch 7.0.164 Problem::redir @+ doesn't work. Solution: Accept @+ just like @*. (Yegappan Lakshmanan) Files: src/ex_docmd.c *** ../vim-7.0.163/src/ex_docmd.c Tue Nov 7 18:43:10 2006 --- src/ex_docmd.c Tue Nov 14 20:17:42 2006 *** *** 8371,8376 ---

Inserting date/text

2006-11-14 Thread David Woodfall
I would like to make a command that would insert at cursor todays date, and also a command to insert some custom text. In the help file it shows how to make a keybind to do this but I would rather use a command - eg :date Can this be done? Thanks -- I don't care for the Sugar Smacks

Re: Inserting date/text

2006-11-14 Thread David Woodfall
On (10:30 14/11/06), David Woodfall [EMAIL PROTECTED] put forth the proposition: I would like to make a command that would insert at cursor todays date, and also a command to insert some custom text. In the help file it shows how to make a keybind to do this but I would rather use a command

Re: Inserting date/text

2006-11-14 Thread A.J.Mechelynck
David Woodfall wrote: I would like to make a command that would insert at cursor todays date, and also a command to insert some custom text. In the help file it shows how to make a keybind to do this but I would rather use a command - eg :date Can this be done? Thanks (untested; requires

Re: Inserting date/text

2006-11-14 Thread Tim Chase
I would like to make a command that would insert at cursor todays date, and also a command to insert some custom text. In the help file it shows how to make a keybind to do this but I would rather use a command - eg :date I've had mappings in the past for things like inoremap f4

[Fwd: Missing it.ascii.spl]

2006-11-14 Thread Fabio Rotondo
---BeginMessage--- Hi, I am trying to use the spell checker in Vim 7, but when I write: :set spell spelllang=it I get the following error: Warning: Cannot find word list it.latin1.spl or it.ascii.spl Where can I grab those files? Thanks, Fabio ---End Message---

Re: search between two brackets

2006-11-14 Thread Ben K.
I have a long source code consisting of multiple modules wrapped in {}. Sometimes I use * to find the next match. But I'd like to search only within the same module or class that I started from. (which is wrapped inside sub ... {}) Thanks all. It should be sufficient. I am not sure exactly

Re: When {rhs} contains a space

2006-11-14 Thread A.J.Mechelynck
Charles E Campbell Jr wrote: A.J.Mechelynck wrote: Ying Bian wrote: Vimmers, I tried to do nmap s :set spell!CR to use s in normal mode to toggle spell checker. If I run this in the interactive command line, it is ok. But when I put this in my .vimrc, it has a tricky problem: Although it

cindent without statement terminator?

2006-11-14 Thread Dave
Hi all, I'm working with an embedded language (AMX Netlinx) that has (mostly) a C like syntax and conditional keywords. It doesn't have a ; statement terminator, though. Cindent mostly works, but gets tripped up on conditional statements that aren't enclosed in braces due to the lack of the

Re: Inserting date/text

2006-11-14 Thread David Woodfall
On (12:28 14/11/06), A.J.Mechelynck [EMAIL PROTECTED] put forth the proposition: David Woodfall wrote: I would like to make a command that would insert at cursor todays date, and also a command to insert some custom text. In the help file it shows how to make a keybind to do this but I

Re: When {rhs} contains a space

2006-11-14 Thread Charles E Campbell Jr
A.J.Mechelynck wrote: Charles E Campbell Jr wrote: (and :nohls will clear the highlighting). Alternatively, :set list will show ~s at the end of lines containing spaces, too. :set list will replace tabs by ^I (two screen cells) unless 'listchars' has been set to include a tab:

Re: Setting Up Debugging

2006-11-14 Thread Charles E Campbell Jr
Tom Purl wrote: I'm having a problem with netrw, but before I can properly troubleshoot it, I need to fix debugging. What I would basically like to do is use Vim normally (without having a bunch of debug messages pop up) while all of the messages are written to a file. Here's what I have in

Re: Setting Up Debugging

2006-11-14 Thread Tom Purl
I suggest using the Dfunc/Decho/Dret debugging system already part of netrw. Once you have the plugin installed, vim netrw.vim :DechoOn :wq The latest version of netrw uses DechoTabOn, which means that debugging output will go to a separate tab. You can save the resulting output

Re: Setting Up Debugging

2006-11-14 Thread Tom Purl
Thanks for the quick reply Dr. Chip! I tried installing both the latest version of netrw and Decho, but I'm seeing a weird problem. Here's the process that I used to install these plugins: vim plugin.vba.gz so % And here's what the plugins look like on the file system (Linux) after

Re: yank and put 'over' instead of 'insert'

2006-11-14 Thread Troy Piggins
* A.J.Mechelynck [EMAIL PROTECTED] : Troy Piggins wrote: I use 'R' replace mode when doing, for example, ascii art etc because it allows me to change characters without affecting the layout of the rest of the window/page. But if I want to yank a section using visual or visual block, is