Couple Questions #1587
|
Hello all:) Does gf for "go file" work? It doesn't seem to work for me AI says it should work as long as file is in project, and it also recommended selecting the path with visual mode. Neither of these seem to work for me. Also... set hlsearch To get my searches nice. Anyone have success with this? |
Replies: 2 comments 1 reply
|
Hi 🙂 For gf, it should work if: Check your path setting with: :set path? If you’re inside a project, enable recursive search: :set path+=** If you’re using Neovim with Lua config: vim.opt.path:append(”**”) Also make sure gf wasn’t remapped by a plugin: :verbose nmap gf You don’t need visual mode — just place the cursor on the filename and press gf. ⸻ For search results (like “match 3 of 10”), use: set hlsearch If it’s not working, check: :verbose set shortmess? Make sure S is not included in shortmess. For Lua config: vim.opt.hlsearch = true |
No,
gfisn't implemented. There's a feature request here: VIM-4018 and a follow-up comment as part of VIM-4148.Showing the number of searches also isn't currently implemented. There's a feature request here: VIM-2544