Hi,

me again ... :-)

* Fabian Braennstroem <[EMAIL PROTECTED]> wrote:
> Hi Mathias,
>
> * Mathias Bauer <[EMAIL PROTECTED]> wrote:
>> Fabian Braennstroem wrote:
>>
>>> Hi Eike,
>>> 
>>> * Eike Rathke <[EMAIL PROTECTED]> wrote:
>>>> Hi Fabian,
>>>>
>>>> On Tuesday, 2006-11-21 11:22:58 +0100, Fabian Braennstroem wrote:
>>>>
>>>>> I saw that it was discussed a couple times before, but 
>>>>> I was wondering, if there are any plans to achive vim-like
>>>>> keybindings in openoffice/writer?
>>>>
>>>> That probably wouldn't be achievable as Writer has no command mode. Key
>>>> input without modifiers like Alt or Ctrl is taken as text input.
>>> 
>>> Would it be so hard to implement such a command mode. I
>>> would imagine that a lot of the openoffice developers are
>>> using vim for their dayly programing and wish to use it when
>>> using the writer!?
>>
>> I assume that it is doable (though I didn't think it through completely).
>>
>> OTOH it is a feature only interesting for a minority of users so it's
>> definitely something that will only happen if a volunteer developer will
>> do it. Of course I can give some tips how it can be done.
>
> Thanks, I would like to get some tips about how this can be
> done :-) I assume it has to go deep into the code, and it
> wouldn't work using python!?

I was just thinking of a simple way using python .... would
it be possible to create a small (bigger) script/macro,
which runs as soon as I open a file.
Like in vim I am in navigation mode and a small popup window
in some corner tells me that. Due the active popup window I
am not able to write to the text file, but can use the keys
for navigation...


>
> The whole ooffice-vim should have the three modi
> editing,insert and visual with some basic movements:
>
> - movement:
>     h,j,k,l:   like up,down,right,left
>     w,W,b,B:   wordwise movement 
>     (,):       jump to the next/previous sentences
>     {,}:       jump to the next/previous paragraphes
>      gg:       jump to the beginning of the file
>      H,M,L:    jump to highest, middle, lowest line on screen
>     Ctrl-f,-b: scroll window up and down
>     /:         search for pattern
>     n,N:       find next,previous of search pattern
>
> - editing:
>    i,a:        insert text before,after cursor
>    I,A:        insert text at the beginning, end of line
>    o,O:        insert new line above and below the current line
>    r:          replace character
>    s:          erase character and insert
>    x:          delete character
>    dw:         delete word
>    dd:         delete line
>    yw:         yank word
>    yy:         yank line
>    p,P:        paste before or behind cursor
>    .:          redo last command
>    u:          undo
>
> - makr lines:
>    V:          mark whole line
>    v:          mark characters under cursor
>    and deleting, copying and pasting those marked regions

...
and those navigation keys should be some shortcuts for the
wanted movement; i.e. 'j' corresponds to <left> ...

Sounds not to bad, doesn't? 
... but I have no clue about how I could do it using python
in openoffice :-( 
Maybe somebody has a small advice?


Greetings!
 Fabian

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to