![]() ![]() The update has been pushed to my dotfiles. Searching is now completely instantaneous and I never need to worry about the index going stale again. You might also consider installing vim-yoink which contains other clipboard related improvements mentioned in this article. That page also includes some matching optimisation, but seriously the Ag trick was all I needed. I’ve used Ag for years but never realised it could be piped into Ctrl-P! Im using the latest version of vim 8.2.148 on the latest version of arch linux 5.5.6-arch1-1. It’s a brilliant grep replacement I would recommend to anyone, being exponentially faster than grep (as in, you can happily search a whole hard drive in real time). This is achieved by relying on the command-line tool Ag, aka Silver Searcher. ![]() The cool thing about this trick is it doesn’t just speed up indexing, it completely removes the need for it. Let g:ctrlp_user_command = 'ag %s -i -nocolor -nogroup -hidden ago I refer to it as yoink Sudiukil 4 yr. yoink file puts the file path into a temporary file yeet reads that temporary file and copies the path to the current directory LadyDeadpool 4 yr. It provides very similar functionality to nvim-miniyank ( ), YankRing.vim ( ), vim-yankstack ( ) or the yank features in. ago I have a set of bash aliases to copy files from one terminal window to another. There are some plugins that overrides y and p to perform custom yanking, like vim-cutlass and vim-yoink. Yoink will automatically maintain a history of yanks that you can choose between when pasting. I may not be aware of the details of this implementation so my apologies if this is impossible. Here is a trick that lets you never wait for ctrl-p again! Just add this to your vimrc: Compatibility with vim-yoink or other yank-related plugins Issue 88 aserowy/tmux.nvim GitHub. It provides very similar functionality to. This delay would be fine if Ctrl-P worked in the background, but due to Vim limitations, it can’t, so you have to frequently run it on the command-line and wait for the update. Yoink will automatically maintain a history of yanks that you can choose between when pasting. That can be very frustrating with a big project as it takes 5-10 seconds to update, which is not a good thing when you’re desperately trying to jump around files. However, doing all this requires it to maintain a search index, aka cache, to be maintained. find article_editor.rb by searching for “ae”). Ctrl-p is “Intellisense for Vim”, allowing you to quickly jump to a file by searching for a few letters or even fancy camel-case type searches. Note that if you install vim-yoink alongside vim-subversive, then the post-paste yoink swapping feature will automatically work with subversive (single motion) substitutions as well. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |