You can do this by adding these lines to your .vimrc
set laststatus=2 set statusline=%!getcwd()
The first parameter is to configure the status line, which will always be visible, the second is to add the current working directory to the status line.
Read more about
Edit: this is the answer to the question that the OP changed:
It is impossible to have a two-line status line (at least as far as I know). But you can add, for example, some formatting. So
set laststatus=2 set statusline=%F set statusline+=%= set statusline+=%{getcwd()}
For further study, I recommend reading the help that I mentioned earlier. Also, this question may be of some interest.
source share