Skip to main content

fasd for neovim

Project description

Autocomplete nvim recent files in command line


Install the python package

pip install nfasd

Add the following line in your ~/.bashrc

eval "$(register-python-argcomplete-menu nfasd)"

# use TAB to cycle through all possible matches
# optional but highly recommended
[[ $- = *i* ]] && bind TAB:menu-complete

Alternatively, if you use zsh, add the following to ~/.zshrc

eval "$(register-python-argcomplete-menu nfasd)"
# stop shell from beeping for every complete
# optional but highly recommended

For fish shell, you need to install

pip install argcomplete
register-python-argcomplete --shell fish > ~/.config/fish/


Add the following to ~/.bashrc or ~/.zshrc

alias n='nfasd -e nvim'
alias ny='nfasd -e nyaovim'

Then you can press n myPro<tab> to get n ~/myProject

-e specifies which executable to open the file

If you want to exclude certain file patterns, use the –exclude option, e.g.

alias n=`nfasd -e nvim --exclude tmp`


1.0 for python3

0.19 for python2


To increase the number of recent files to 1000, add the following line to your ~/.config/nvim/init.vim

set shada=!,'1000,<50,s10,h

Special Thanks

fasd : the awesome command line tool

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nfasd, version 1.4
Filename, size File type Python version Upload date Hashes
Filename, size nfasd-1.4-py3-none-any.whl (8.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size nfasd-1.4.tar.gz (9.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page