Honestly, you will get more power out of / and ag, but they require more thought because they aren't fuzzy searches. Here I've mapped l to search for lines in current buffer, L to search for lines in loaded buffers, and ' to search for marked lines. The latter is extremely powerful in combination with a package like gutentags, where searching for indexpostcon will jump you to the index method of your PostController. The former doesn't require a tags file, and is a great alternative to packages like tagbar because it's often quicker to fuzzy search for a method name, than it is to navigate your way through a second window. Here I've mapped t to search for tags in current buffer, and T to search for tags across project. These two make it easy to switch between buffers, and order their results by most recent so you can easily switch between your two most recent files without being required to enter a search query. Here I've mapped b to search for open buffers, and h to search buffer history. I have mine set to show everything including hidden files. *You can customize :Files output by setting FZF_DEFAULT_COMMAND in your shell config. It's also worth noting that every fzf command displays results in what is called extended search mode, which allows you to narrow results in realtime using an intuitive regex-like syntax. I've never used a faster fuzzy finder, and it seems to sort results more intelligently than most. The quintessential fuzzy file finder □ Here I've mapped f to search for git tracked files, and F to search all files*. On the surface it seems like a just another fuzzy finder, but it's much more than that! Let me show you some of my mappings and how I have been using it. Enter fzf.vim by the legendary Junegunn, which is a wrapper for the command line fuzzy finder with the same name, fzf. Jumping into the world of Vim plugins was daunting, but one specifically has made it a lot easier. I've been using Vim emulators for a few years, but apparently that wasn't nerdy enough, so I recently made the switch to terminal Vim.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |