Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Highlighting yanked text with pure vimscript" #9

Open
statox opened this issue Jul 14, 2020 · 3 comments
Open

"Highlighting yanked text with pure vimscript" #9

statox opened this issue Jul 14, 2020 · 3 comments

Comments

@statox
Copy link
Owner

statox commented Jul 14, 2020

No description provided.

@statox
Copy link
Owner Author

statox commented Jul 14, 2020

Hello people from Reddit!

About 600 of you came directly from this post, making it by far my most successful one so far 🎉

@damonmccain
Copy link

Hi Statox how could I install this without a plugin manager?

@statox
Copy link
Owner Author

statox commented Sep 18, 2023

@damonmccain Honestly that's something I have never tried, I think a plugin manager is definitely one of the most useful components when using vim/neovim.

If you are using neovim you can simply add the first snippet of the article (calling lua require'vim.highlight'.on_yank()) in your favorite config file

You can check How do I install a package in Neovim without a package manager? on vi.stackexchange.com and directly clone the github repo linked in the article in your package path. You can do something similar in Vim but you need to make sure you configure your runtime path properly (there are resources online)

Or you could go the manual way and copy the relevant code (i.e. the autocommand from plugin/FYT.vim and the functions from autoload/FYT.vim that you might need to rename) in your vimrc or the relevant files you have in your config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants