You don't know when you'll have to use Vim without any. I've shown you different ways to search and open files in Vim with: The syntax of find is more complex, but it's more powerful. If grep's exclude patterns aren't sufficient for you, you can combine find with grep. I would recommend to learn what Vim can do without plugins before you use one. my variant of flygrep fzf.kak supports interactive grepping inside file contents if skim is installed. Note that if a directory is excluded, its subdirectories are excluded as well, so -exclude-dir'dir1' also excludes files in. I personally use fzf.vim with ripgrep for searching. Last but not least, Vim has many plugins to let you quickly search for/ within files. Here is how to search all files in a directory. However, if you must use Vim without plugins and you're not used to netrw basic navigations, you may lose some speed.īy the way, vim-vinegar is a good (lightweight) plugin to enhance netrw if you decide to go with netrw. It is easy to search for the word under the cursor using the super star (). I've used nerdtree for several years and I loved it. Uses native vim regexes (which are slightly different from the regexes used by grep, ack, ag, etc) so the patterns are the same as with vims within-file search. Some of you may ask, "Do I need to use netrw? Nerdtree looks much better." If you have time, I highly suggest checking it out. To move file/directory requires more steps, but you can check How do I copy a file in netrw? or Move a File with Netrw. files that have lines to match all of them. Enter fullscreen mode Exit fullscreen mode Search files in the current directory that is not managed by Git.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |