# Enable Beancount Accounts Completion in Vim
## Synopsis
First ensure to use the python environment which has installed beancount and pynvim.
Steps to force nvim using the virtual env:
> [!file] .envrc
```sh
layout python-shared python3
use vim
export PYTHONPATH=.
```
> [!file] .vimrc.local
```vim
let g:python3_host_prog = $VIRTUAL_ENV . '/bin/python3'
```