Re: Vim 8 enhancements

2007-02-01 Thread Marcus Aurelius
--- Martin Stubenschrott [EMAIL PROTECTED] escreveu:

 Now that there are many new - good, or not - ideas coming up. I think it
 would be a great idea, if the voting page on:
 
 http://www.vim.org/sponsor/vote_results.php
 
 becomes updated with new ideas, and old ones get deleted/changed.

Agreed. I was updating my votes to remove features that have been implemented,
and i really wished i had a few new features to vote for. Due to the growing
lack of options, i voted several times for the same features :-D


__
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 


Re: BOF Vim 8 - Suggestions

2007-01-26 Thread Marcus Aurelius

--- A.J.Mechelynck [EMAIL PROTECTED] escreveu:

 Georg Dahn wrote:
  Hi!
  
  --- A.J.Mechelynck [EMAIL PROTECTED] wrote:
 
 These two are V7 only, so:
 
 if exists(*pumvisible)
   inoremap expr Down pumvisible() ? \ltDown : \ltC-Ogj
   inoremap expr Up   pumvisible() ? \ltUp   : \ltC-Ogj
 else
   inoremap Down C-Ogj
   inoremap Up   C-Ogk
 endif
 
(...)
  noremap S-Down gj
  noremap S-Up gk
  inoremap S-Down C-OghC-Ogj
  inoremap S-Up C-OghC-Ogk
  nnoremap S-Down ghC-Ogj
  nnoremap S-Up ghC-Ogk
  
  With these mappings invoking the selection mode works more consistently
 with
  above mappings.


This is getting complicated... That's why i suggested a single command that
unified all of this, and would not conflict with pop-up menus or anything.

__
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 


Re: BOF Vim 8 - Suggestions

2007-01-25 Thread Marcus Aurelius
--- A.J.Mechelynck [EMAIL PROTECTED] escreveu:

 I have files where I intentionally have long lines and I use gj and gk (so 
 much that I've remapped them to Up and Down). I don't see why you gripe 
 about a bunch of mappings: the mappings I need, or want, are in my vimrc or
 in some other script, and they are part of my Vim settings -- they don't 
 count as a bunch, since I don't have to do them over every time Vim starts.



To edit long lines, i have a script that does the work. But i don't use it all
the time, so i havent put it in vimrc.

Vim already has a few options that are responsible for setting other options,
such as 'binary' and :behave. Maybe it could have more of this kind of settings
(something like this has been suggested earlier in this thread, but i guess the
comparison with 'binary' and :behave had not been made yet).

If the user wants to edit long lines, (s)he cannot write a quick mapping
on-the-fly, because he needs something like this:

map buffer silent up gk
imap buffer silent up C-ogk
map buffer silent down gj
imap buffer silent down C-ogj
map buffer silent home ghome
imap buffer silent home C-oghome
map buffer silent end gend
imap buffer silent end C-ogend

***May i suggest a new command (or a standard plugin that is easy to find) that
would do all of the above in one easy step?***



Optionally, the user could want this too:

setlocal linebreak
setlocal nolist  Necessary for linebreak
setlocal display+=lastline

I'm not sure if it's OK or if it's going too far :-)




I use these mappings too:

imap F12 C-ogwip
nmap F12 gwip
vmap F12 gw

But I agree that they are just personal preference and would not integrate
seamlessly with the Vim command structure.

BTW, I also miss Ctrl+A (increment number) in Windows mode and Ctrl+Q is a
weird alternative for Ctrl+V, but i can live with that ;-_). However, the
Ctrl+X functionality is not lost, since cut only works if there is something 
selected.

__
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 


Re: BOF Vim 8 - Suggestions

2007-01-24 Thread Marcus Aurelius

--- A.J.Mechelynck [EMAIL PROTECTED] escreveu:
 This approach has already been attempted, not just once as Bram said, but at 
 least twice (evim and mswin.vim), and the results are far from convincing: 
 easy vim is actually harder to use, and mswin.vim makes some useful Vim 
 features inacessible, and for others, forces constant reminders everywhere in
 
 the help and in support mailing lists: If you use Ctrl-V to paste, use
 Ctrl-Q 
 instead whenever the help says to use Ctrl-V.
 
 Cream for Vim may be a third attempt but I'm not sure, I haven't looked
 into it.

I think i must defend mswin.vim here (and :behave mswin) ;-)
Some shortcuts are really invaluable:
Ctrl+S (save, compare to :w; i use Ctrl+S a lot!), Ctrl+Tab (next window,
compare to Ctrl+W, W), Ctrl+Z (undo... i'm so used to Ctrl+Z...), 

Others, such as Ctrl+A (select all) and Ctrl+V (paste) do conflict with other
commands, but compare them to ggVG and +p

Sometimes i miss Ctrl+Backspace (for delete word backward) and Ctrl+Delete
(delete word forward).

My main gripe about Vim commands is that gj and gk are almost unusable without
a bunch of mappings, and formatting a paragraph takes 4 keys (gwip - i hav
mapped it to F12). Well, if you format the paragraph you don't need gj and gk,
but you get the idea... ;-)

I do like Vim commands, but the commands Ctrl+{A,Z,X,C,V,Y,Tab} are so widely
available that i'm used to use them in Vim too.


Marcus

__
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/