Re: Fork process is not working on GVIM7 on solaris

2006-11-03 Thread art sm

On 11/3/06, Danek Duvall <[EMAIL PROTECTED]> wrote:

I've also found that adding "-u " to the commandline makes it work.
It doesn't matter whether  is "NONE", "/dev/null", or even
"~/.vimrc" -- it works in all cases.



Strange. I tried this method, and I have still have the problem.


Re: active links for opening files

2006-11-03 Thread Michael M. Tung
Hi Samuel:

Thanks for the link to GtdWithVim! Actually I saw it
on the vim script site just after writing my hack.

I didn't have a chance yet to try it out, but as far
as I understand from the script description it's
philosophy is quite different.

GtdWithVim seems to work independently from any
external program. With vimGTD I just wanted to quickly
write a frontend to PyGTD. So all the power is in there...

I use vimGTD in mutt and it works well. The UTL plugin
sounds great stuff. Maybe it also resolves some of my
other problems with various links in email which I want
to combine with external launchers.

If you want to get in touch with me about some more
thoughts, just write me directly to [EMAIL PROTECTED]

Best,
  Mike


Samuel Wright [EMAIL PROTECTED] wrote:
> Hi Michal,
> 
> I notice you are working on a GTD plugin. Have you tried the existing 
> plugin?
> http://www.bartholomew.id.au/projects/Project.aspx?ProjectCode=GtdWithVim
> 
> The other thing of interest (perhaps) is vim outliner
> 
> I started playing around with that a few days ago.
> 
> Mor sepcifically regarding your questions, the UTL plugin lets you
> open plain text 'links' including emails, and other files.
> 
> I'd be interested to swap thoughts on where you are going with GTD on vim.
> 
> S

-- 
-
  Dr. Michael M. Tung  Email: [EMAIL PROTECTED]
  Departamento de Matemática Aplicada [EMAIL PROTECTED]
  Universidad Politécnica de Valencia  Phone: +34 96 3877000 x88287
  Inst. de Matemática Multidisciplinar+34 96 38-79777   
  Edificio 8-G, 2º pisoIM: ICQ96423950
  Camino de Vera, s/n  
  46022 Valencia (Spain)   http://www.uv.es/~tung/
-
  PGP Public Key   http://personales.upv.es/mictun/mtung_pubkey.pgp
-



pgpPU8UtmqQ43.pgp
Description: PGP signature


Re: execute command without adding it to command history

2006-11-03 Thread Yegappan Lakshmanan

Hi Yakov,

On 11/3/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:

On 11/3/06, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote:
> Hi Yakov,
>
> On 11/3/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
> > How do I execute command without adding it to command
> > history ? (I need it for the command on the rhs of the mappnig)
> >
>
> You can try using "call histdel('cmd', -1)" after executing a command
> from your map.

And won't the ':call histdel('cmd', -1)' iself remain in the history then ?




From the help for "cmdline-history", commands invoked from maps

will not be added to the history. Are you using a normal or insert or
visual or command-line mode map?

- Yegappan


Re: Problem with tabs in vim 7

2006-11-03 Thread A.J.Mechelynck

Cezary Kułakowski wrote:

Hi,

   I've recently updated my vim to 7.0.17 version (from some 6 version)
and I have very annoying problem with it: when I write some code in C++
vim doesn't add new tab after I make new scope (by "{\n") and doesn't
remove one tab after I close scope("}\n"). Can anybody met this problem
before?

Thanks in advance,
Cezary Kulakowski



When you ask

:filetype

does the reply include "indent:OFF" ?

If it does, I recommend adding

runtime vimrc_example.vim

near the top of your vimrc. If that's not enough, remove any "filetype indent 
off" in that same vimrc.


see ":help :filetype"


Best regards,
Tony.


Problem with tabs in vim 7

2006-11-03 Thread Cezary Kułakowski
Hi,

   I've recently updated my vim to 7.0.17 version (from some 6 version)
and I have very annoying problem with it: when I write some code in C++
vim doesn't add new tab after I make new scope (by "{\n") and doesn't
remove one tab after I close scope("}\n"). Can anybody met this problem
before?

Thanks in advance,
Cezary Kulakowski


Re: dvorak layout support

2006-11-03 Thread Timothy Stone


On Nov 3, 2006, at 3:29 PM, Paul Irofti wrote:


On Friday 03 November 2006 22:25, you wrote:

On Nov 3, 2006, at 3:13 PM, Paul Irofti wrote:

I've just switched to dvorak and was wondering if there's any
support for dvorak keyboards as the old qwerty keyboard mappings
tend to screw up all logic in command mode (specially movement).


I exclusively use Dvorak on my Mac (v10.4.8) with vim 7. No
problems... not sure what you mean by "screw up all logic in command
mode".

h,l,j,k W,B, etc. all work for me.

Tim


erm yes, but look at their position on the keyboard, I mean it doesn't
make any sense!


Ahh, I *had* the same compliant about using Dvorak in *any* program.

The problem stems from how application human interface design (HID)  
begins... on a QWERTY keyboard. Command-Q (Quit) for example on the  
Mac. This simple command becomes Command-X when literally translated  
to Dvorak, but it is still *logically* Command-Q. HIDesigners would  
argue til they were blue in the face, that Command-X is bad,bad,bad.  
The use of the Q was not because "Quit" begins with "Q", but because  
of the placement of the letter in relation to the Command key itself.  
This sort of thought goes into Windows as well... not so much Linux,  
but that's a discussion for /.


So when you make a decision to switch to Dvorak, you accept the  
departure from well thought out, or not so well thought out,  
HIGuidelines, and remember that 'h' moves left, 'l' moves right, etc.  
The movement strokes are still there, just not literally mapped. I  
would not, for example take it upon myself to remap Dvorak 'd' to  
move left. That invites headaches.


Tim



Re: execute command without adding it to command history

2006-11-03 Thread Theerasak Photha

On 11/3/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:

On 11/3/06, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote:
> Hi Yakov,
>
> On 11/3/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
> > How do I execute command without adding it to command
> > history ? (I need it for the command on the rhs of the mappnig)
> >
>
> You can try using "call histdel('cmd', -1)" after executing a command
> from your map.

And won't the ':call histdel('cmd', -1)' iself remain in the history then ?


Vim Uncertainty Principle :)


Re: execute command without adding it to command history

2006-11-03 Thread Yakov Lerner

On 11/3/06, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote:

Hi Yakov,

On 11/3/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
> How do I execute command without adding it to command
> history ? (I need it for the command on the rhs of the mappnig)
>

You can try using "call histdel('cmd', -1)" after executing a command
from your map.


And won't the ':call histdel('cmd', -1)' iself remain in the history then ?

Yakov


Re: execute command without adding it to command history

2006-11-03 Thread Yegappan Lakshmanan

Hi Yakov,

On 11/3/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:

How do I execute command without adding it to command
history ? (I need it for the command on the rhs of the mappnig)



You can try using "call histdel('cmd', -1)" after executing a command
from your map.

- Yegappan


Re: Getting out of netrw

2006-11-03 Thread Charles E Campbell Jr

Marius Roets wrote:


On 11/3/06, Jean-Rene David <[EMAIL PROTECTED]> wrote:


I thought of using :q but that closes vim if only
one window is open.

Am I missing something obvious?




Then F2 opens explorer in a new tab, and q closes the tab, and
you should be back where you were before pressing F2.


Or you could use  :Texplore  to open a netrw-browser in a new tab!

Regards,
Chip Campbell



dvorak layout support

2006-11-03 Thread Paul Irofti
I've just switched to dvorak and was wondering if there's any support 
for dvorak keyboards as the old qwerty keyboard mappings tend to screw 
up all logic in command mode (specially movement).


execute command without adding it to command history

2006-11-03 Thread Yakov Lerner

How do I execute command without adding it to command
history ? (I need it for the command on the rhs of the mappnig)

Yakov


File type retention

2006-11-03 Thread Daryl Lee
This may be a Windows issue, but maybe someone here can help me solve it. 
Using gVim, when I open a file with .h extension and then try to open 
another .h file, the FileOpen dialog has the file filter set to 
"*.cpp,*.c++".  I have to manually force it back to either All or *.h.  Is 
there some way to override that behavior?  I'd prefer "All", which is the 
equivalent of what I get on Linux under KDE, where there is no filter at all 
in the FileOpen dialog.


--
Daryl Lee
Open the Present, it's a Gift.


Re: Getting out of netrw

2006-11-03 Thread Marius Roets

On 11/3/06, Jean-Rene David <[EMAIL PROTECTED]> wrote:


I thought of using :q but that closes vim if only
one window is open.

Am I missing something obvious?


I use :Sexplore (or :Vexplore) to open the explorer. Then it's not a
problem using :q. Or if you really want to be fancy, put this in your
.vimrc:
function MyExplore()
 tabnew
 Explore
 nmap  q :q
endfunction

nmap  :call MyExplore()

Then F2 opens explorer in a new tab, and q closes the tab, and
you should be back where you were before pressing F2.

Marius


Re: How do I implement boilerplate text?

2006-11-03 Thread Richard Querin

Thanks to all, the abbreviation method seems to work now. I had used
'abbreviate' in my _vimrc file and it wasn't working. I changed it to
'ab' and it works fine. I'm not sure if I read the message wrong or if
both should work.

Anyway thanks again for all the help.

On 11/2/06, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote:

On 11/2/06, Bill McCarthy <[EMAIL PROTECTED]> wrote:
> On Thu 2-Nov-06 4:11pm -0600, Richard Querin wrote:
>
> > The abbreviation method seems the simplest for me at the
> > moment, but I can't seem to figure out how to make a
> > multiline abbreviation in my .vimrc file. I've tried using
> >  characters in the string and quoting it as well..
> > both to no avail. Any hints?
>
> Actually, using the  characters should work fine.
> Perhaps you have some setting interfering.  You should be
>

Check the 'cpoptions' option setting. To use symbolic representation
of key codes in maps and abbreviations, make sure  the '<' flag is
not present in 'cpoptions'. To use raw key-codes in a map or
abbreviation, make sure the 'k' flag is not present in 'cpoptions'.

- Yegappan

> able to place the following in a script file (or your
> vimrc):
>
> ab lhs This is line 1.
> \This is line 2.
> \This is line 3.
>
> For a simple test, start gvim without any mods:
>
> gvim -u NONE -i NONE -N
>
> And define an abbreviate call "abb":
>
> :ab abb Thisisatest.
>
> Now type:  iabb
> where  is the  key.
>
> --
> Best regards,
> Bill
>
>



Re: Getting out of netrw

2006-11-03 Thread Charles E Campbell Jr

Jean-Rene David wrote:


Say I open vim7's new super duper file explorer
"netrw" to browse some local directory. Say then I
decide I don't want to open any new file and just
want to go back to what I was doing. What would be
the standard way to do that?

I can use  to eventually land up where I was
but I need to backtrack all the motion commands I
did in the netrw buffer.
 


You can use the jumplist to get a listing of locations where you've been:

:ju

The left hand column is a count that you can use to precede .
For example:

 jump line  col file/line
   3  10 some text
   2 700 another line
   1  1154   23 end.

and  3 will jump to entry #3.

Regards,
Chip Campbell





Re: ':Explore' higlight the results

2006-11-03 Thread Charles E Campbell Jr

[EMAIL PROTECTED] wrote:


Hello Vimmers,


I've seen recently in the mailing list an interesting post/question about 
searching for a list of fies containing a pattern.
The answer was that we could use :Explore or :vimgrep.
For me, the first solution seems the best.

I have a friend of mine that is using emacs, which has the same option as :Explore. However, the files matching the pattern are highlighted. 
Is it possible to do the same with :Explore? I checked the :help :Explore but couldn't find it.
 


I've uploaded v107g of netrw.vim which supports this to my website:

 http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs
 see "Network Oriented Reading, Writing, and Browsing"

First, remove all previous versions of netrw from both your personal 
directories and from the system
directory where netrw was installed (under Linux, that's often 
/usr/local/vim/share/vim/vim70/[plugin|autoload|doc]/netrw*).

You'll also need to remove all previous versions of vimball.

You can get the latest vimball from my website, too (see "Vimball 
Archiver").  Install it first:


 cd /usr/local/vim/share/vim/vim70
 mv [wherever]/vimball.tar.gz .
 gunzip vimball.tar
 tar xvf vimball.tar

Then you may install netrw:

vim netrw.vba.gz
:so %
:q

should do it.

Regards,
Chip Campbell



Getting out of netrw

2006-11-03 Thread Jean-Rene David
Say I open vim7's new super duper file explorer
"netrw" to browse some local directory. Say then I
decide I don't want to open any new file and just
want to go back to what I was doing. What would be
the standard way to do that?

I can use  to eventually land up where I was
but I need to backtrack all the motion commands I
did in the netrw buffer.

I thought of using :q but that closes vim if only
one window is open.

Am I missing something obvious?

-- 
JR


noimd don't works under linux

2006-11-03 Thread Eddy Zhao

Hi All,

I Have the below configuration in vimrc
   inoremap  :set imd
   nnoremap i :set noimdi

Press "Esc" to change from insert mode to normal mode DO
disable the input method.

But after that, when I press "i" to change from normal mode
back to insert mode, the input method is not enbabled (in
other words, I have to press C-SPACE to bring back the input
method).

I've tried on below software enviroment, all doesn't get things
work (vim is with xim support)
- fc5+ion3+scim+vim7.0(selfbuild & officalrpm)
- fc6+gnome+scim+vim7.0(selfbuild & officalrpm)

Meanwhile, the configuration works on windows.

I've posted on mailing list similar problem before, but get no
solution, the feature is so important, so I'm posting it again.
Hope someone have the solution.

Thanks
Eddy


Re: Mapping j <- gj in insert mode.

2006-11-03 Thread Anatoli Sakhnik

Thank you!

On 03/11/06, Georg Dahn <[EMAIL PROTECTED]> wrote:

Hi!

Just try the following mappings:

" Make cursor keys ignore wrapping
inoremap  =pumvisible() ? "\Down>" : "\C-O>gj"
inoremap  =pumvisible() ? "\Up>" : "\C-O>gk"

You can find them in evim.vim.

Best wishes,
Georg



Re: Mapping j <- gj in insert mode.

2006-11-03 Thread Georg Dahn

Hi!


To get a more intuitive behaviour of movement through wrapped lines, I
added the following mapping:

   inoremap  gj
[...]

>

The bar stays for the cursor here.


Just try the following mappings:

" Make cursor keys ignore wrapping
inoremap  =pumvisible() ? "\Down>" : "\C-O>gj"
inoremap  =pumvisible() ? "\Up>" : "\C-O>gk"

You can find them in evim.vim.

Best wishes,
Georg






___ 
Win tickets to the 2006 FIFA World Cup Germany with Yahoo! Messenger. http://advision.webevents.yahoo.com/fifaworldcup_uk/


Mapping j <- gj in insert mode.

2006-11-03 Thread Anatoli Sakhnik

Hi!

To get a more intuitive behaviour of movement through wrapped lines, I
added the following mapping:

   inoremap  gj

Works fine, but a strange thing appeared. When the editor is in
omni-completion mode (actually, I was editing a docbook file), and I
accidentally press  instead of , the editor leaves the X
mode, and inserts the next completion item.

For example, inside of a  I type:

   1. <   <|
   2.  or  the vim behaves, as I expect.

Can anyone advise me, how to live with this little annoyance?

-- Anatoli Sakhnik
   http://koresha.org/sakhnik
   http://sakhnik.blogspot.com


':Explore' higlight the results

2006-11-03 Thread gregory . sacre
Hello Vimmers,


I've seen recently in the mailing list an interesting post/question about 
searching for a list of fies containing a pattern.
The answer was that we could use :Explore or :vimgrep.
For me, the first solution seems the best.

I have a friend of mine that is using emacs, which has the same option as 
:Explore. However, the files matching the pattern are highlighted. 
Is it possible to do the same with :Explore? I checked the :help :Explore but 
couldn't find it.


Thanks in advance!


Gregory