2021-03-14

Taking notes with Vim and Windows terminal

This Vim Plug-in is a well-designed and tested solution for managing notes with my favorite text editor (VIM) . With the proper configuration, it can seamlessly work together with termnote, another simple note-taking Python application. Below are the recommended steps required for the Windows 10 - MinGW64/MSYS2 combo.

- Install termnote with (Point 3 - Install Python ):

   pip install termnote

- Add the following lines to the .bashrc file, or use my set of dotfiles:

   export TN_STORAGE="C:\\Users\\${USER}\\Desktop\\Notes"
   alias tn="start termnote.exe"

- Install the Vim plugin as described in the README file of the repository.

- Set in the .vimrc the same destination directory:

   let g:notes_directories = ['~/Desktop/Notes']
   let g:notes_title_sync = 'rename file'

We can also change the default icon for the directory. Right click on the destination folder and select Properties, move to the Customize tab and click on Change Icon as shown below.

For BMC supporters an optimized, stand-alone termnote version for Windows 10 will soon be available.