Re: Supplying common word endings

2010-09-15 Thread BC
On Sep 15, 4:23 pm, Andre Majorel wrote: > On 2010-09-15 08:33 -0700, Gary Johnson wrote: > > > > > On 2010-09-15, BC wrote: > > > On Sep 14, 2:21 pm, Andre Majorel wrote: > > > > Has anyone ever written a macro to enter common word endings ? > > > > > For example, if "spe" is an abbreviation f

Re: nerdtree/command-t - and split windows?

2010-09-15 Thread Wincent Colaiuta
On 15 sep, 17:30, Rick R wrote: > > Being new to vim I 'think' it seems related to when I have a file that I've > edited but not saved. So for example: > > I split a window. > Make some changed in the original window but don't save them. > Now work in the other window and eventually close it. > Wh

Re: can't highlight background of entire region, only where text is

2010-09-15 Thread Christian Brabandt
On Thu, September 16, 2010 12:10 am, hsitz wrote: > I have Vim documents that have codeblock areas that use 'syntax > include' regions to have different syntax highlighting from the main > document. For example, I have a syntax region named 'pyregion' defined > that I use when I input Python code.

Re: Execute commands in new window

2010-09-15 Thread Christian Brabandt
On Wed, September 15, 2010 11:14 pm, Ven Tadipatri wrote: > This behavior is useful because I want to compare the output before > and after the sort, in 2 separate buffers, so I don't want it to be in > the same window. You could give my NrrwRgn Plugin a try. regards, Christian -- You received

Re: Can anybody please explain me about Map

2010-09-15 Thread Vivek Bhat
http://how-to.wikia.com/wiki/How_to_map_keys_in_vim http://vim.wikia.com/wiki/Category:Map http://vim.wikia.com/wiki/Mapping_keys_in_Vim_-_Tutorial_%28Part_1%29 A few of them, hope they help you. Just google and you will find thousands of pages on VIM how to do's. On Thu, Sep 16, 2010 at 8:46 AM

Re: Can anybody please explain me about Map

2010-09-15 Thread vicky b
thanks it was very helpful the problem is that i did read it through vim help and did figure that u can map your key with something like the example given in vim help where we associate F2 with date but i could not understand properly so just posted to know if anybody can explain me in detail. Re

Re: problems with 'syntax include' for nested Perl and R code regions

2010-09-15 Thread hsitz
On Sep 15, 7:16 pm, hsitz wrote: > > 1.  The code in my Python region highlights perfectly. > 2.  The code in my Perl region highlights properly, but text in the > main document after the Perl region has some Perl highlighting applied > (mostly pink or magena, I think, I forget which syntax elemen

problems with 'syntax include' for nested Perl and R code regions

2010-09-15 Thread hsitz
I'm using the code below to highlight different languages within the same document, using the syntax files shipped with vim 7.2. 1. The code in my Python region highlights perfectly. 2. The code in my Perl region highlights properly, but text in the main document after the Perl region has some P

Re: Execute commands in new window

2010-09-15 Thread Simon Ruderich
On Wed, Sep 15, 2010 at 05:14:13PM -0400, Ven Tadipatri wrote: > Yeah the \r in the replace part worked. That's really weird, because > though it does the right behavior, after the replace, if I search for > \r it says it can't find it, so somehow it translates \r in the > replace clause to \n in

can't highlight background of entire region, only where text is

2010-09-15 Thread hsitz
I have Vim documents that have codeblock areas that use 'syntax include' regions to have different syntax highlighting from the main document. For example, I have a syntax region named 'pyregion' defined that I use when I input Python code. The pyregion areas of the document are then highlighted us

Re: Execute commands in new window

2010-09-15 Thread Benjamin R. Haskell
On Wed, 15 Sep 2010, Ven Tadipatri wrote: On Wed, Sep 15, 2010 at 2:21 PM, Christian Brabandt wrote: On Mi, 15 Sep 2010, Ven Tadipatri wrote: [...]   Then I would like to sort it (removing duplicates) and send the output to a new window. I tried the following but with no luck :new +!sort

Re: Execute commands in new window

2010-09-15 Thread Ven Tadipatri
On Wed, Sep 15, 2010 at 2:21 PM, Christian Brabandt wrote: > Hi Ven! > > On Mi, 15 Sep 2010, Ven Tadipatri wrote: > >> Hi, >>    I have a text file that I would like to sort and there's 2 things I >> would like to do. First of all I would like to eliminate all duplicate >> lines (this is on a linu

how do I set the cdpath in winXP

2010-09-15 Thread yirgster
In _vimrc I first did: :set cd c:\vim-text However, it complained that it couldn't find this in cdpath: E344: Can't find directory "c:\vim-text" in cdpath. So, I tried, in several ways, to set cdpath in _vimrc, prior to the above ":set cd ...". There were no complaints about that statement, but

Re: Supplying common word endings

2010-09-15 Thread Andre Majorel
On 2010-09-15 08:33 -0700, Gary Johnson wrote: > On 2010-09-15, BC wrote: > > On Sep 14, 2:21 pm, Andre Majorel wrote: > > > Has anyone ever written a macro to enter common word endings ? > > > > > > For example, if "spe" is an abbreviation for "special" and "spec" > > > for "specify", > > >   "sp

Myspell -> Hunspell plan?

2010-09-15 Thread Dominique Pellé
Hi Vim-7.3 currently creates spelling dictionaries from Myspell dictionaries. I am wondering whether there is any plan to support Hunspell dictionaries. The French dictionary at http://www.dicollecte.org/download.php?prj=fr states: === [ fr] === Ces dictionnaires pour Myspell ne seront plus mis

Re: PHP filetype::sql syntax highlighting in strings

2010-09-15 Thread Tim Johnson
* Tim Johnson [100915 09:51]: <..> > > vim -N -c scriptnames > Yes. I found about 'scriptnames' > > > >> Yeah, and my slight rant is that despite > >> setlocal foldlevel=99 > >> in my /after/php.vim I'm still getting folding. Again, not a problem > >> but just an annoyance. > > > > Do you me

Re: Execute commands in new window

2010-09-15 Thread Christian Brabandt
Hi Ven! On Mi, 15 Sep 2010, Ven Tadipatri wrote: > Hi, >I have a text file that I would like to sort and there's 2 things I > would like to do. First of all I would like to eliminate all duplicate > lines (this is on a linux machine). I tried :%s/\n\n/\n but though it > found the duplicate li

Re: Finding Text In Specific Columns

2010-09-15 Thread Christian Brabandt
Hi Stephen! [Please don't top poste] On Mi, 15 Sep 2010, Stephen Rasku wrote: > OK, I got something working. I used the following: > > :let m = matchadd('ErrorMsg','^\%(\%([^\t]\{7}\)\zs[^0]\)\{1}') > ... > :let m = matchadd('ErrorMsg','^\%(\%([^\t]\{7}\)\zs[^0]\)\{32}') > > This

Execute commands in new window

2010-09-15 Thread Ven Tadipatri
Hi, I have a text file that I would like to sort and there's 2 things I would like to do. First of all I would like to eliminate all duplicate lines (this is on a linux machine). I tried :%s/\n\n/\n but though it found the duplicate lines, it replaced it with a weird @ symbol. Then I would lik

Re: PHP filetype::sql syntax highlighting in strings

2010-09-15 Thread Tim Johnson
* Benjamin R. Haskell [100915 09:06]: >> --help'. > > Not sure what switch there'd be. Can run: > > :scriptnames > > from within Vim. I s'pose you could specify that on the commandline > via: > > vim -N -c scriptnames Yes. I found about 'scriptnames' > >> Yeah, and my slight rant is that d

RE: Space symbols and indent guides in VIM

2010-09-15 Thread Benjamin R. Haskell
On Wed, 15 Sep 2010, Steve Hall wrote: From: Oliver Adams, Wed, September 15, 2010 10:34 am On 16 September 2010 00:02, Alex A. wrote: Does anybody know if it is possible to setup VIM to show space symbols (at least) and indent guides (would be great) permanently? I mean, that I want to cle

Re: PHP filetype::sql syntax highlighting in strings

2010-09-15 Thread Benjamin R. Haskell
On Wed, 15 Sep 2010, Tim Johnson wrote: * Benjamin R. Haskell [100914 18:59]: How may I turn the feature off? syntax/php.vim has: if exists( "php_sql_query") syn cluster phpAddStrings contai...@sqltop endif So, if you don't want the keywords highlighted, you shouldn't 'let' php_sql_quer

Re: Finding Text In Specific Columns

2010-09-15 Thread C K Kashyap
Does this work for you? :v/pattern/d It deletes all those lines in the buffer that does not match the pattern? And as far as adding the line 32 times is concerned, you could consider adding that in your .vimrc file. That way, you'll do it only once. On Wed, Sep 15, 2010 at 9:08 PM, Stephen Rasku

Re: PHP filetype::sql syntax highlighting in strings

2010-09-15 Thread Tim Johnson
* Benjamin R. Haskell [100914 18:59]: >> >> How may I turn the feature off? > > syntax/php.vim has: > > if exists( "php_sql_query") > syn cluster phpAddStrings contai...@sqltop > endif > > So, if you don't want the keywords highlighted, you shouldn't 'let' > php_sql_query to anything. They sh

Re: Finding Text In Specific Columns

2010-09-15 Thread Stephen Rasku
I installed 7.3 and tried your matchadd but it didn't seem to work. I tried both with [^0] and 0. If one doesn't match the other one should but I don't see anything highlighted in red. Running :hi I can see that ErrorMsg is white text on a red background so it should show up. What am I missing?

Re: Finding Text In Specific Columns

2010-09-15 Thread Stephen Rasku
OK, I got something working. I used the following: :let m = matchadd('ErrorMsg','^\%(\%([^\t]\{7}\)\zs[^0]\)\{1}') ... :let m = matchadd('ErrorMsg','^\%(\%([^\t]\{7}\)\zs[^0]\)\{32}') This requires entering a similar pattern 32 times which is error prone. If I forget to add just a s

Re: Supplying common word endings

2010-09-15 Thread Gary Johnson
On 2010-09-15, BC wrote: > On Sep 14, 2:21 pm, Andre Majorel wrote: > > Has anyone ever written a macro to enter common word endings ? > > > > For example, if "spe" is an abbreviation for "special" and "spec" > > for "specify", > >   "spe" expands to specialising, > >   "spe" expands to specialisa

Re: nerdtree/command-t - and split windows?

2010-09-15 Thread Rick R
On Wed, Sep 15, 2010 at 6:35 AM, Wincent Colaiuta wrote: > On 14 sep, 22:50, Rick R wrote: > > > > How do I close a split window and force any new windows to use the > existing > > window that is remaining (not counting the left hand window with NerdTree > in > > it.) I've been reading over the

RE: Space symbols and indent guides in VIM

2010-09-15 Thread Steve Hall
From: Oliver Adams, Wed, September 15, 2010 10:34 am > On 16 September 2010 00:02, Alex A. wrote: > > > > Does anybody know if it is possible to setup VIM to show space > > symbols (at least) and indent guides (would be great) permanently? > > I mean, that I want to clearly see space symbols all th

Re: Space symbols and indent guides in VIM

2010-09-15 Thread Oliver Adams
in your .vimrc i think you go "set list" to enable, and "set listchars" which has a few different arguments depending on what you want displayed. On 16 September 2010 00:02, Alex A. wrote: > Hello, > > Does anybody know if it is possible to setup VIM to show space symbols > (at least) and indent

Space symbols and indent guides in VIM

2010-09-15 Thread Alex A.
Hello, Does anybody know if it is possible to setup VIM to show space symbols (at least) and indent guides (would be great) permanently? I mean, that I want to clearly see space symbols all the time I am editing a file. Sorry if it is already mentioned in docs, I haven't had any luck finding this

Re: How to maximize help window automatically ?

2010-09-15 Thread caruso_g
>     au FileType help wincmd _ Absolutely helpful! Thanks a lot. -- 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: Finding Text In Specific Columns

2010-09-15 Thread C K Kashyap
Perhaps matchadd can help - the original poster seems to want to highlight multiple items at once :call matchadd('ErrorMsg','\_^\%([^\t]*\t\)\{4}\zs[^0]') The above line marks every 4th col that's NOT 0 in error color - red You can run the above command for all the columns where you want this to

Re: Can anybody please explain me about Map

2010-09-15 Thread Benjamin R. Haskell
On Wed, 15 Sep 2010, vicky b wrote: On Wed, Sep 15, 2010 at 3:14 PM, Joan Miquel Torres Rigo wrote: 2010/9/15 vicky b: [no text] (subject: Can anybody please explain me about Map) Maybe. thank you so much Ask a silly question, get a silly answer. Start by typing within Vim: :help m

Re: Can anybody please explain me about Map

2010-09-15 Thread vicky b
thank you so much On Wed, Sep 15, 2010 at 3:14 PM, Joan Miquel Torres Rigo < joanmiq...@mallorcaweb.net> wrote: > 2010/9/15 vicky b : > > > > Maybe. > > -- > Joan Miquel Torres__ > Linux Registered User #164872 > http://www.mallorcaweb.net/joanmiquel > BULMA: http:

Re: Supplying common word endings

2010-09-15 Thread BC
On Sep 14, 2:21 pm, Andre Majorel wrote: > Has anyone ever written a macro to enter common word endings ? > > For example, if "spe" is an abbreviation for "special" and "spec" > for "specify", >   "spe" expands to specialising, >   "spe" expands to specialisation, >   "spec" expands to specifyin

Re: Explore and netrw

2010-09-15 Thread Asis Hallab
Dear all, dear Charles, thanx very much for the help. Currently I just echo the Explore-results :echo w:netrw_explore_list Anyone has a quick hint of how to open a new window in netrw, making it display the above Explore-Results and enabling selecting them in order to open the files etc.? Maybe

Re: nerdtree/command-t - and split windows?

2010-09-15 Thread Wincent Colaiuta
On 14 sep, 22:50, Rick R wrote: > > How do I close a split window and force any new windows to use the existing > window that is remaining (not counting the left hand window with NerdTree in > it.) I've been reading over the vim windows docs but am not having much luck > figuring out what's going

Re: Can anybody please explain me about Map

2010-09-15 Thread Joan Miquel Torres Rigo
2010/9/15 vicky b : > Maybe. -- Joan Miquel Torres__ Linux Registered User #164872 http://www.mallorcaweb.net/joanmiquel BULMA: http://bulma.net http://breu.bulma.net/?l2301 -- You received this message from the "vim_use" maillist. Do not top-post! Type your rep

Re: Error When Opening an Perl Script

2010-09-15 Thread bill lam
Втр, 14 Сен 2010, Gareth Oakes писал(а): > > > Hi VIMers: > > > Pls help me with this problem. > > > > > ### > > > OS Env: Windows XP Pro, SP3 (English Version) > > > > > Problem Details: > > > Errors occur when a perl script is opened. Th