On Dec 22, 11:39 pm, Tony Mechelynck <[email protected]> wrote: > > 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. >
"runtime mswin.vim" is an even better idea than the "source $VIMRUNTIME/mswin.vim" that I suggested, because it will also allow you to (if you desire) copy mswin.vim off to somewhere else in the Vim runtimepath (see :help 'runtimepath') and modify it to remove any mappings you no longer find necessary. > 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... > As many have said :-) > 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" > It gets better...you can actually use the p, y, and d commands alone (i.e. without the preceding '"+') if you just put "set clipboard=unnamed" in your .vimrc. This will tell Vim to use the system clipboard by default instead of the internal "unnamed" register, so that you can cut, copy, and paste with a single keystroke. > Redo is Ctrl-R in Normal mode, and undo is u > It takes a bit of getting used to, but once you adjust, the Vim shortcuts are just as efficient as the ones you're used to (if not more so, since you usually don't need to hold the CTRL key to do them, and the Vim commands are easy to combine with powerful features such as text objects and cursor motions). BTW, if the "easy to combine with powerful features" bit interests you, take a look at :help text-objects. Text objects are probably the single biggest time-saving technique that Vim has given me. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
