Skip to main content

Timeline for Write selected area to file

Current License: CC BY-SA 4.0

8 events
when toggle format what by license comment
Aug 8, 2021 at 18:23 comment added Alex Roberts That worked ("+p I mean). Thank you!
Aug 8, 2021 at 9:25 comment added Hotschke Pasting from clipboard should be possible with "+p in normal mode and in insert mode with <c-r>+. If you like standard macOS shortcuts Cmd+x, Cmd+c, Cmd+v in normal and insert mode, have a look into github.com/macvim-dev/macvim/blob/master/runtime/… Afaik, they do not exist in vim/neovim by default. A quick test of the MacVim mappings in VimR (neovim GUI) worked for me.
Aug 7, 2021 at 20:17 comment added Alex Roberts Or I suppose one can simply enter INSERT mode and press Command-V (on a Mac). But perhaps there is a more vimish way to do this?
Aug 7, 2021 at 20:08 comment added Alex Roberts That worked, thank you! (Yes, I am using neovim.) I didn't know about this feature. Is there a similar mapping for the inverse procedure, to paste from the clipboard? Or is that something I should add to my .vimrc myself?
Aug 6, 2021 at 6:29 comment added Hotschke Blockwise yanking to clipboard should be possible without a colon command with "+y. No plugin necessary. Are you using neovim?
Aug 6, 2021 at 6:17 history edited Hotschke CC BY-SA 4.0
Update url
Aug 5, 2021 at 18:47 comment added Alex Roberts I've just tried to implement this approach to make a mapping so that <C-c> copies the selected text to the Mac clipboard: vnoremap <C-c> :B w !pbcopy<CR><CR>. This doesn't work. Am I using the vis syntax incorrectly?
Apr 17, 2017 at 13:15 history answered Hotschke CC BY-SA 3.0