# Neovim: Taking notes, zk-nvim ver. 6

Last Updated on July 31, 2022 by shibatau

An image was inserted in III.

## I. Let’s take notes with Neovim

I have been using Obsidian as a note-taking tool. It is great and I’m satisfied with its functionalities. But I have recently begun to use Neovim as an editor and I’ve got fond of the Vim keybindings and commands. I want to use them anywhere. You can also use the Vim keybindings in Obsidian but it seems Obsidian lacks some Vim movements and commands. So I have sought for Neovim note-taking plugins and found zk-nvim. There are some other plugins for taking notes. As for Orgmode.nvim, I have often used Org Mode in Spacemacs and I like it but I want to use simpler markdown notes in Neovim and have given a try to zk-nvim.

I have spent a whole day for setting zk-nvim but I haven’t finished it yet and I don’t understand how to use it well. However I have managed to create a journal. I run the command, :ZkNew { group = “journal”, dir = “journal/daily” } and I have made my first entry. Voilà:

Let me show you another one. You can show your note via a internal link in a file:

## II. Installation and settings

### 1.Neovim

If you use MacOS, you can learn how to install Neovim here:

Neovim for MacOS

### 2.zk

(a) Run the following command in the terminal if you have installed Homebrew.

brew install zk

### 3.zk-nvim

(a) Add the following line to your config file. In my case I have added it to the plug.lua file. See my configuration files in the past post.

use("mickael-menu/zk-nvim")

(b) Add the following line to the init.lua file.

require("zk").setup()

(c) Create a new note in the terminal

Run the following commands in the terminal:

zk init my-notes
cd my-notes
zk new --title "My first note"

(d) Create a new note in Neovim

Open Neovim and run the following command:

:ZkNew { title = " This is the first note " }

There a few examples here:

## III. Create a group for Journal

Let’s assume you create daily notes named like 2022-03-1.md in a journal/daily, a journal/weekly or journal/arbitrarily subdirectories. You should create a note group overriding the default note creation settings.

[group.journal]
paths = [
"journal/daily",
"journal/weekly",
"journal/arbitrarily"
]
[group.journal.note]
filename = "{{date now}}"
extension = "md"
template ="daily.md"

Maintaining a daily journal

Note.group

Then you should set up a template for your Journal. Create a file named as daily.md in .zk/templates like this:

# {{date now "long"}}
What did I do today/this week?