Re: How to set USERNAME in RHS of set command

2012-07-03 Thread John Little
On Tuesday, July 3, 2012 7:34:55 AM UTC+12, Bee wrote: Is it possible to make it a one liner? Perhaps I should have given all the details, the way Tony M does. My 'statusline' is set to %%f%1*%{ff=~'u'?'':ff}%* %h%m%r%=%-16.(%l,%2c %L%) %P so I've got the usual stuff, with the dos or mac

Re: synIDattr used with matchadd

2012-07-03 Thread Tony Mechelynck
On 03/07/12 01:21, richard emberson wrote: If I use the matchadd function to highlight a region given a pattern which is based upon a region, can I use the id returned by matchadd with the function synIDattr get get the fg and bg colors associated with the highlight group used? Or, can synIDattr

Re: vim termcap problem on HP-UX , Vim takes long time to open file or tag

2012-07-03 Thread Phil Quinton
Hi, Did you manage to get to the bottom of this. I've had these issues on all HP-UX 11i v3 servers I put Vim73 on and it's driving me mad? Thanks, Phil. -- 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

Strange behavior when switch back to netrw

2012-07-03 Thread Bart Baker
Hello, I'm having an issue when I've split (or vsplit) between any screen and a netrw window. When I switch from other window to the netrw (C-W [hjkl], depending on direction), netrw doubles each entry. Every time I return to the window, another entry for each entry is added. Hitting C-L after

Re: Strange behavior when switch back to netrw

2012-07-03 Thread Charles Campbell
Bart Baker wrote: Hello, I'm having an issue when I've split (or vsplit) between any screen and a netrw window. When I switch from other window to the netrw (C-W [hjkl], depending on direction), netrw doubles each entry. Every time I return to the window, another entry for each entry is added.

file type detection : complete order

2012-07-03 Thread ping
guys/experts: sorry If I'm asking an idiot question... I'm learning about auto detection of file type and apply my own syntax highlight+folding based on it. so overall we have following machnism: 1) ex: set ft= 2) modeline: vim:ft= .. 3) $VIMRUNTIME/filetype.vim 4)

Re: VIM scrollbar

2012-07-03 Thread Christian Brabandt
Hi Dotan! On Di, 03 Jul 2012, Dotan Cohen wrote: I find it difficult to keep track of my location in a file with information like 351/2343 15%, and would really like a visual indication such as Code Overview but in the terminal: http://www.vim.org/scripts/script.php?script_id=2888 I'm

Fold all blocks without TODO in vim notes file

2012-07-03 Thread Sepp Tannhuber
Dear all, I have the following vim notes file: ~  notes ~ ~  #2012-04-12 ~     ◦ DONE beer ~  ~  #2012-04-13 ~     ◦ DONE beer ~     ◦ DONE another beer ~ ~  #2012-06-30 ~     ◦ DONE beer ~ ◦ TODO another beer ~  ~  #2012-07-02 ~     ◦ TODO beer If I start vim with ~ vi notes -c 'set

Re: Fold all blocks without TODO in vim notes file

2012-07-03 Thread Salman Halim
On Tue, Jul 3, 2012 at 2:27 PM, Sepp Tannhuber sepp.tannhu...@yahoo.de wrote: Dear all, I have the following vim notes file: ~ notes ~ ~ #2012-04-12 ~ ◦ DONE beer ~ ~ #2012-04-13 ~ ◦ DONE beer ~ ◦ DONE another beer ~ ~ #2012-06-30 ~ ◦ DONE beer ~ ◦ TODO

Re: VIM scrollbar

2012-07-03 Thread ping
I used to have this one in my .vimrc (it's based on a tip by A.Politz): https://groups.google.com/group/vim_use/msg/e7c193ad5dc9c136 regards, Christian I did a quick test but that give me nothing, do I miss anything? put following in .vimrc: A statusbar function, that provides a visual

Re: VIM scrollbar

2012-07-03 Thread Christian Brabandt
Hi ping! On Di, 03 Jul 2012, ping wrote: I did a quick test but that give me nothing, do I miss anything? Check your 'laststatus' setting. regards, Christian -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For

Re: Fold all blocks without TODO in vim notes file

2012-07-03 Thread Sepp Tannhuber
Hi Salman, thanks for answering! For now I use a simple key mapping: : map C-f Esc/TODOCRzo With this method I can unfold block by block with hitting C-f. Is it possible to automate this on startup so that vi hits C-f until it reaches end of file? Cheers Joseph:x -- You received this

Re: VIM scrollbar

2012-07-03 Thread ping
you are right Christian. it's 'laststatus' (my value was def 1) now I see the effect of the code. thanks! regards ping On 07/03/2012 04:48 PM, Christian Brabandt wrote: Hi ping! On Di, 03 Jul 2012, ping wrote: I did a quick test but that give me nothing, do I miss anything? Check your

vim abbreviate help...

2012-07-03 Thread Roberto S.
Hi sorry for this stupid question, but I'm learning vim. I would like to create a pkg abbreviation that create the: package org.hello.world; row in a file found in directory: current_dir/src/main/java/org/hello/world/ I have added this to my .vimrc: autocmd BufRead,BufNew *.java iab pkg

Re: vim abbreviate help...

2012-07-03 Thread John Little
The problem is: this abbreviation go on next line. I would like to write package etc... on the same line. Quick, barely tested reply: put a 0 in front of the r. If I :r!echo foo in a new, empty buffer, foo goes on line 2, but :0r!echo bar gets bar on line 1. Regards, John -- You

Re: Fold all blocks without TODO in vim notes file

2012-07-03 Thread Salman Halim
On Tue, Jul 3, 2012 at 6:08 PM, Sepp Tannhuber sepp.tannhu...@yahoo.de wrote: Hi Salman, thanks for answering! For now I use a simple key mapping: : map C-f Esc/TODOCRzo With this method I can unfold block by block with hitting C-f. Is it possible to automate this on startup so that vi

Re: vim abbreviate help...

2012-07-03 Thread Benjamin R. Haskell
On Tue, 3 Jul 2012, Roberto S. wrote: Hi sorry for this stupid question, but I'm learning vim. I would like to create a pkg abbreviation that create the: package org.hello.world; row in a file found in directory: current_dir/src/main/java/org/hello/world/ I have added this to my .vimrc:

How to write a text line as binary/Hex with a filename by means of Vim command line(s)?

2012-07-03 Thread William Fugh
Hi guys, -Vim 7.3 + Vista(SP2) If there are 8 chars in one line like this: 52494646 Question: using Vim command line(s), how to write a binary file, and make it 'RIFF' (4 char, not '52494646') in a viewer of TXT? BRs, -- William -- You received this message from the vim_use

Re: vim abbreviate help...

2012-07-03 Thread Jürgen Krämer
Hi, Roberto S. wrote: Hi sorry for this stupid question, but I'm learning vim. I would like to create a pkg abbreviation that create the: package org.hello.world; row in a file found in directory: current_dir/src/main/java/org/hello/world/ I have added this to my .vimrc: autocmd