From bab923e17d7840898d96dbe69439f8b379d14c43 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Fri, 24 Feb 2017 16:23:00 -0600 Subject: [PATCH] Add Get The pid Of The Session as a vim til --- README.md | 3 ++- vim/get-the-pid-of-the-session.md | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 vim/get-the-pid-of-the-session.md diff --git a/README.md b/README.md index 057ef0b..cdcc209 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really warrant a full blog post. These are mostly things I learn by pairing with smart people at [Hashrocket](http://hashrocket.com/). -_508 TILs and counting..._ +_509 TILs and counting..._ --- @@ -520,6 +520,7 @@ _508 TILs and counting..._ - [Filter Lines Through An External Program](vim/filter-lines-through-an-external-program.md) - [Format Long Lines To Text Width](vim/format-long-lines-to-text-width.md) - [Generate and Edit Rails Migration](vim/generate-and-edit-rails-migration.md) +- [Get The pid Of The Session](vim/get-the-pid-of-the-session.md) - [Grepping Through The Vim Help Files](vim/grepping-through-the-vim-help-files.md) - [Head of File Name](vim/head-of-file-name.md) - [Help For Non-Normal Mode Features](vim/help-for-non-normal-mode-features.md) diff --git a/vim/get-the-pid-of-the-session.md b/vim/get-the-pid-of-the-session.md new file mode 100644 index 0000000..bc9214b --- /dev/null +++ b/vim/get-the-pid-of-the-session.md @@ -0,0 +1,14 @@ +# 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.