transform word1...wordn to Word1...Wordn

2006-08-25 Thread Richard Emberson
I have a bunch of expressions of the form: word1 word2 ... wordn lower case words with spaces between them enclosed in angle brackets. (the ... means 0 or more). I would like a macro (place cursor within s and execute macro) that converts the above to: Word1Word2...Wordn Is the

escaping special characters in visual search

2006-07-14 Thread Richard Emberson
I've got the following visual maps which I use to do visual base searches: vmap F y?C-RCR vmap f y/C-RCR They work great, select some characters in visual mode and then enter 'f' (or 'F'). The one caveat is if there are characters that have special meaning in searched such as the '[' ']' pair

Re: Bug in chaining dictionary function calls

2006-06-22 Thread Richard Emberson
I reported this as bug number 1492165, https://sourceforge.net/tracker/?atid=391887group_id=27891func=browse Hari Krishna Dara wrote: I found a problem with chaining function calls through the new dictionary functions. Here is some code demonstrate the problem, if you execute this code, the

Re: Bug in chaining dictionary function calls

2006-06-22 Thread Richard Emberson
Bram Moolenaar wrote: Hari Krishna Dara wrote: I found a problem with chaining function calls through the new dictionary functions. Here is some code demonstrate the problem, if you execute this code, the last line generates an E488 error, where as the previous lines combines (they are

Re: vim patch: fixing resetting dictionary function

2006-06-15 Thread Richard Emberson
, it is then referenced by its number, but the function definition code expects a function name. Richard Bram Moolenaar wrote: Richard Emberson wrote: In the following I am creating a dictionary, associating a function with the dictionary and then reassociating a new function with the name

vim patch: fixing resetting dictionary function

2006-05-18 Thread Richard Emberson
In the following I am creating a dictionary, associating a function with the dictionary and then reassociating a new function with the name of the original function. Try this without the fix and you get: ADD n=9 Error detected while processing /home/emberson/vim/foo.vim: line 14: E475: Invalid

Set color block of text

2006-05-12 Thread Richard Emberson
Is there a way in a vim script to set the color (fg/bg) to a block of text? say from line 12 to line 15 and from column 4 to column 9. The text in this block can be anything, not syntax. RME -- This email message is for the sole use of the intended recipient(s) and may contain confidential

Re: fast file opening / find file as you type

2006-05-09 Thread Richard Emberson
Up at the vim site theres a script called javae.vim: http://www.vim.org/scripts/script.php?script_id=1164 This lets one create a list of directory paths to Java source code. Then, if one places the cursor over a class name, you can jump to the associated source file. RME Benjamin Reitzammer

vim7 spell none file

2006-05-08 Thread Richard Emberson
with a file with no extension when leaderss is executed regardless of whats in the file I get: Spell check done: 1 possible spell errors in 1 words. For a *.java file I get spelling errors highlighted in comments so spell is working - at least for java comments. How do I get spell to work on