add items to a syntax file as a vertical list?

2011-05-19 Thread AMDx64BT
I would like to edit the file syntax cpp.vim and include some new extensions to highlight. I would like to add these news extension as a vertical list, and not in the same line. The normal way: *syn keyword ITK a b c d e* The way that I would like to get, using a vertical list *syn keyword ITK

It is possible to have enabled 2 o more different syntax in the same file?

2011-05-16 Thread AMDx64BT
I would like to highlight 2 o more different syntax in the same file. For example, I have a file with notes with different languages cpp, matlab, python, bash and I would like to be able to highlight each syntax with colors. Any ideas? -- You received this message from the vim_use maillist.

Re: How to process 1000 files xml to 1 file?

2011-03-08 Thread AMDx64BT
@ BenSchmidt So...Is using a scripting language an option? What platform are you on? What do you have available/installed? Are you willing to investigate installing something different to perform this task? *Scriptiling language is an option (python, php), although I have only experience with

How to process 1000 files xml to 1 file?

2011-03-07 Thread AMDx64BT
-- DESCRIPTION --- I would like to write a script with awk or vim to process Lab Blood Tests in xml format to import with SPSS. Each blood test is an xml file. If I have (for example): 1000 Lab Blood Tests (1000 xml files) 250 patients 4 blood tests/patient Each Blood

Re: How to change GTK theme in windows?

2010-12-21 Thread AMDx64BT
the gtkrc should be put, there is a gtk theme selector on Windows after gtk installed. Hong Xu 2010/12/21 On 12/21/10, AMDx64BT amdx6...@gmail.com wrote: Do you know where is the path to copy the gtkrc in windows? -- You received this message from the vim_use maillist. Do

Using match in modeline?

2010-12-21 Thread AMDx64BT
I have this command to highlight columns in my vimrc, and I would like to transform it to modeline: :au BufWinEnter *.colorize let w:m1=matchadd('ErrorMsg', '\%39v.\%20v', -1) I have tried this, but it doesn't work: vim:match ErrorMsg '\%39v.\%20v' -- You received this message from the

How to change GTK theme in windows?

2010-12-20 Thread AMDx64BT
Do you know where is the path to copy the gtkrc in windows? -- 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

Re: How to sort folding titles alphabetically?

2010-12-05 Thread AMDx64BT
Thanks John Little, good method. On Dec 3, 9:24 pm, John Little john.b.lit...@gmail.com wrote: Further to my method above, it can work far faster if you do a :syntax off while you're doing it.  The syntax highlighting does not perform well with the very long lines it uses. Regards, John

How to sort folding titles alphabetically?

2010-12-02 Thread AMDx64BT
I want to order alphabetically folded blocks of text according their title, but without changing the order of the lines inside the folded blocks. I want to order the blocks, but not the lines inside. I am using a vim help file with the following syntax: vim:ft=help:fdm=expr

How to delete sentences starting with a lower case letter?

2010-11-14 Thread AMDx64BT
Do you know some way to delete all the sentences starting with a lower case letter? -- 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

Re: How to delete sentences starting with a lower case letter?

2010-11-14 Thread AMDx64BT
It is possible using this: :v/^\u/d But it deletes sentences beginning with capital letters with accents (french, german). Do you know a way without deleting capital strange letters? -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are

Re: delete only the short sentences

2010-11-08 Thread AMDx64BT
:%s/\_^\(.\{,40}\n\)\{4,}// works very well. I would like to do another question. Could be possible to delete all the sentences 40 characters only when they are more than 3 times consecutives but now keeping the last one undeleted of each group. I want to say this: Begining with this:

Re: delete only the short sentences

2010-11-07 Thread AMDx64BT
Thanks for the solution. It works. I would like to know how I can delete sentences 40 characters only when they are more than 3 times consecutives. For example, with this text: xx xx xx

delete only the short sentences

2010-10-31 Thread AMDx64BT
I want to delete all the lines with long 40 characters (including white-spaces) and keep the others. Is there any command to do that? -- 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

Re: delete only the short sentences

2010-10-31 Thread AMDx64BT
And to keep only the sentences in the range 40-60 characters long and delete the rest? On Nov 1, 4:32 am, AMDx64BT amdx6...@gmail.com wrote: I want to delete all the lines with long 40 characters (including white-spaces) and keep the others. Is there any command to do that? -- You received

Translate sentences inside vim using google translator?

2010-08-07 Thread AMDx64BT
I want to translate phrases inside vim using google translator. I have installed the script PA_translator: http://www.vim.org/scripts/script.php?script_id=2609 But I get this error: Wait while translating is performing... Error detected while processing function PA_translate_sentence: line3:

Re: Translate sentences inside vim using google translator?

2010-08-07 Thread AMDx64BT
Solved, I have installed other script: TranslateEnToCn http://www.vim.org/scripts/script.php?script_id=2996 And works perfect On Aug 7, 9:55 pm, AMDx64BT amdx6...@gmail.com wrote: I want to translate phrases inside vim using google translator. I have installed the script PA_translator:http

Change filetype sl to renderman shader language instead of slang

2010-07-23 Thread AMDx64BT
Vim detects the extension .sl as slang filetype. I want that vim detects the extension .sl as renderman shader lang filetype by default and not as slang filetype. I have add to my .vimrc: au BufRead,BufNewFile *.sl setf sl But it doesn't work. Do you know any solution? --