On 22/12/08 19:32, BrianP wrote:
> Hi,
> When installing gvim72.exe on windoz xp, the cut (^x), copy (^c),
> select_all (^a) and paste (^v) functions all work well. And the shift-
> arrow-keys select areas of text. And, searches highlight all
> occurrences of the target which is extremely handy for source code
> editing.
>
> On Linux, these keys are all set to their "classic", 1978 vintage,
> useless functions.
>
> How can I get the efficient, win32 behavior on Ubuntu Linux?
>
> I have tried putting the following lines in my ~/.gvimrc file with no
> effect:
> behave mswin
> source /usr/share/vim/vim71/mswin.vim
>
> What am I missing here? And, I Cream is too dumbed down.
>
> Thank you,
> BrianP
>
>
> r...@godzilla2:/home/brianp# cat ~brianp/.gvimrc
> set nocompatible
> set bs=2
> set backupdir=/tera/tmp/vim
> set directory=/tera/tmp/vim
> set shiftwidth=4
> set tabstop=4
> set visualbell
> set autoindent
>
> behave mswin
> source /usr/share/vim/vim71/mswin.vim
------------------------^^^^^
This is the Vim 7.1 runtime dir; it probably isn't allocated now that
you're running Vim 7.2.
runtime mswin.vim
would probably do what you want.
However, I wouldn't say that the Vim default bindings for these keys are
useless:
Ctrl-C abandons a running function
Ctrl-V is literalize (or enter in octal or hex) in Insert-mode, and
block-visual in Normal mode
Ctrl-X is decrement-number in Normal mode, and (mostly) start
insert-mode completion in Insert mode
Ctrl-Y scrolls in Normal mode or copies from the line above in Insert mode
Etc...
The commands which mswin.vim remaps to them, on the contrary, hide quite
good Vim commands behind duplicates of already existing commands:
Paste (put) from clipboard is "+P in Normal mode or Ctrl-R + in Insert mode
Copy (yank) to clipboard is "+y in Visual mode, or "+y<motion> in Normal
mode
Cut (delete) to clipboard is "+d in Visual mode, "+d<motion> in Normal mode.
But you don't have to use the system clipboard: P y d alone work just as
well with the Vim "unnamed register"
Redo is Ctrl-R in Normal mode, and undo is u
Best regards,
Tony.
--
A day for firm decisions!!!!! Or is it?
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---