![]() It will show you all the available commands in Vim, including for plugins.īelow is from :help FZF with all Commands listed. If you use Vim you forget mappings occasionally ( hard to keep track when you get plugin bloat), well :Commands has got your back. ![]() Use :Locate to find files with specific extension ( at least that's how I started using this ), e.g. To search through lines in the current buffer use Lines which will allow you to find any line by typing text that is in that line. If you have the Silver Searcher installed ( sudo apt-get install silversearcher-ag on Ubuntu) you can run :Ag some_pattern to find files containing the pattern. Want to switch color schemes in Vim :Colors :Buffersįor convenience I use the below mapping. This can get a bit cumbersome, FZF allows you to run a :Buffers command that will open up the fzf interface so you can quickly select a buffer to open, by the provided index or by typing. ![]() In vim gt and Gt allow you to select next and previous tabs, you can also do 1gt, 2gt to move to a tab by order. To run this in a new tab: :tabnew | :Commits In addition to this you can search git commits (once you have vim-fugitive installed) with :Commits. Sometimes I only need to search git repositories, hence r mapping above. Then Ctrl + t to open the selections in tabs or enter if only 1 file selected.ĬtrlP allowed you to switch directory, this doesn't seem to be possible with FZF so the mappings with numbers allow me to open FZF in parent directories. This means I can hit Space + o to find files in current directory, with multi select. Below will run fzf where you can type to find the target file, when you have the target file selected hit enter and it will be opened in Vim. Opening a file with fzf using bash expansion. So thought I'd get down some usage guides to help me when I turn to it in future and get the muscle memory firing.Īs ever, fzf -help is your friend. I've been using FZF for a little while, but not very effectively.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |