Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Regarding vim and "normal people" shortcuts, if 'source mswin.vim' doesn't work for you, here are the mappings I have in my .vimrc to give it the normal CTRL-C, CTRL-X, and CTRL-V, as well as sharing the clipboard with windows:

    " share clipboard
    set clipboard=unnamed  

    " CTRL-V is Paste in insert mode
    imap <C-V>		"+gpa   
    " CTRL-C is Copy, CTRL-X is Cut, in visual mode
    vmap <C-C>		"+y
    vmap <C-x>		"+d
    " Use CTRL-Q to do what CTRL-V used to do
    noremap <C-Q>		<C-V>


Thank you for sharing that. I've never heard of source mswin.vim. The standard copy paste shortcuts are platform agnostic at this point, hell, even my phone uses them (webOS). This is where I've found vim and emacs incredibly frustrating out of the box.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: