> For the complete documentation index, see [llms.txt](https://ploegert.gitbook.io/til/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ploegert.gitbook.io/til/tools/vim/get-the-pid-of-the-session.md).

# Get The pid Of The Session

Your current Vim session is a process running on your machine. That means that this session is tied to a particular process id, *pid*.

Want to know what the pid is?

```vim
:echo getpid()
```

This will echo the pid of your current Vim session.

See `:h getpid()` for more details.
