# 07. Copying and Pasting to and from Neovim from external sources

In Neovim (and also in classic Vim) you can copy text from external sources into Neovim, for example from a web page, and vice versa from Neovim out.

### Direct copying from an external application to Neovim:

1. Copy text:
2. Open a web browser and select the text you want to copy
3. Press `Ctrl+C` (or `Cmd+C` on macOS) to copy.
4. Switch to insert mode in Neovim (insert mode ):
5. Open neovim and load the file - Switch to insert mode by pressing `i`.
6. Insert text:
7. Press `Ctrl+Shift+V` (or `Cmd+Shift+V` on macOS) to insert text into Neovim.

### Copying from Neovim to Neovim or outside Neovim to another application:

1: SHIFT + V --> select the whole line - or in Normal mode using: v + right, left, up and down arrow --> select the selected text

1. Copy the selected text:
2. do this in Normal mode with the key: y

3. then paste the text anywhere with `CTRL+Shift+V` or in Neovi in Normal mode with the `p` key. Remove marked text:

4. you can remove marked text in Normal mode with: x

NOTE: in Linux for proper functionality I had to install the xclib package for copying from Neovim!

Copyright © 2024 - 2025 🚀 ApolloNvim / Lukáš Kaňka