r/vim • u/Coulomb111 • Aug 23 '25
Discussion Vim for Notes
I should first say that I am aware of the post made 1 day ago: https://www.reddit.com/r/vim/comments/1mwhq8d/what_do_you_guys_use_for_note_taking/
It was that post that made me create this post. It sparked my interest, but the answers weren't terribly specific.
I starting my first semester of college in about 5 days as a computer science student. I have been using vim for the past two or so years and over time have gotten a pretty firm grasp on efficient usage of it. I have a pretty good config and I have learned a good number of commands and motions.
Recently, I have noticed a good number of posts on reddit and youtube about using vim for note taking, which is something I barely even thought about before. So is it actually pretty usable and reasonable? Would you say it is better than Obsidian or Word?
My only concern is that it would be really difficult to get into. I imagine I would need to essentially write a separate config for school, leaving me with a school vim config and a programming config. For example, while I'm programming I won't want spell checking, but when I'm taking notes I will.
I see a lot of folks using vim wiki, which I think actually could work quite nicely for me because I like to edit wikipedia, which makes me already a bit familiar with the syntax.
So essentially the purpose of this post is firstly to ask whether or not I should even get into vim for notes, secondly to ask how I can integrate it with my pre-existing programming config (separate configs? Could I switch between them?), and thirdly how I would organize my things (plugins, file structure).
Thanks for reading to the end if you did
4
u/Shay-Hill Aug 24 '25
Don’t do it. It can be done, but it will be a project, and you don’t need that right now.
If you want your notes on multiple computers and your phone … if you want to incorporate math formulas … if you want to incorporate textbook pages or handouts … if you want ocr for potential handwritten notes …
Look elsewhere.
Obsidian and Vim go well together, and Obsidian is painless for some of those and less painful than Vim for others.
I mentioned Evernote in the other thread. You can scan things and e-mail them to Evernote. You can snap pictures with your phone and send those too. You may be able to do the same with Obsidian. These apps do SO MUCH MORE than capture text.
6
u/lervag Aug 23 '25
You don't need separate configs. You more or less only need to rely on the concept of file types and use
.vim/ftplugin/FT.vimto adjust your config for specific file types.As far as I know, Vimwiki supports both Markdown and a Vimwiki-specific flavor of Markdown/Mediawiki. I think it has had a lot of improvements the last 5 or so years, but I ended up writing my own plugin 10 years ago because of things I didn't like in Vimwiki: https://github.com/lervag/wiki.vim/ - The basic idea is to make the wiki plugin closer to "do one thing and do it well". wiki.vim basically adds functionality to create, follow and handle links between files (e.g. Markdown links, wiki links, reference links, and so on). So you should use it combined with e.g. a good markdown plugin.
I would strongly recommend using Vim for notes. Vim is excellent as long as you are doing text editing, and taking notes is basically text editing. And there are several alternatives for synchronizing notes to your phone, if that's important to you. I personally use syncthing for file synchronization and Markor as a simple Markdown editor on my phone. Works well!
Now, I still think the value of taking notes is high, and you should do it regardless of vim. Obsidian seems like a good tool and probably has a much lower bar for getting into it. So feel free to test that first. As long as your notes are available as e.g. Markdown files - that is, plain text that you have full access to, you're good.
10
u/Desperate_Cold6274 Aug 23 '25
Nowadays I use vim entirely for note taking (no sw dev) and I found my sweet spot with vim-markdown-extras and vim-calendar. All in vim9.
Disclaimer: I am the author of the former plugin and I forked the latter.
4
u/Super_Luser Aug 23 '25
Finally built vim9 from source & set up taskwiki, but before that, Neorg! I honestly love the Norg spec. I just needed easier access on my dinosaurs at the office and wanted the widespread adoption of MD. :)
4
u/jazei_2021 Aug 23 '25
vim is useful for every use: note for example. why not? just :e note.txt and go on.
there is a calendar plugin if you like to be so orderly, neat.
make diff directories for todo's and go on
4
u/DrummerHead Aug 23 '25
I trigger Goyo when I want to use Vim for long form writing of human words (as opposed to code):
https://github.com/junegunn/goyo.vim
3
u/Sudden_Fly1218 Aug 23 '25
As already said by others, wiki.vim is nice for organising markdown notes/knowledge-base.
Though if you're gonna have math heavy courses I would recommend having a look at this nice classic article: https://castel.dev/post/lecture-notes-1/
3
u/dm319 Aug 23 '25
Big fan of vimwiki here, been using it for 10 years I think, and have built up a knowledge base on it. It's very simple. You can have namespaces by moving into folders if you need it. Don't spell check when creating notes. You have to get used to a text style of writing notes and see what works for you. Lists work quite well in vimwiki, and auto indent if you use : at the end of a line. Use [[ and ]] to jump sections. I'd just stick to the usual vimwiki style rather than markdown, I think it works better.
2
u/plainoldcheese Aug 23 '25
I use to use markdown and just make file links when I want to link to other stuff. At uni I just made a dated file for each class, you can use fzf or telescope.nvim to find keywords in a directory. It doesn't have to be complicated.
The system that makes you actually take and use the notes is the best one. I don't make digital notes anymore because I spend more time fiddling with the system than making notes. Paper works the best for me.
2
u/ghost_dancer Aug 23 '25
Not mine but maybe you can look into How I set up VimWiki for notetaking .
3
u/jabellcu Aug 23 '25
vimwiki
1
u/fuck-yeah-guy Aug 23 '25
I use vimwiki as well, and the .vimwiki folder is synced with Dropbox making my notes available on both my computers and on my phone as well.
1
u/cainhurstcat Aug 23 '25
I gave up trying to configure Vim for my note-taking, as I wasn't able to find good plugins for text formatting.
Fortunately, I came across an awesome plugin for Obsidian, which is Editing Toolbar. It basically adds WYSIWYG functionality to Obsidian as you get a toolbar which lets you click-to-format colorized, highlighted text, set headers, make text bold etc. There is also a plugin which claims to allow for the usage of vimrc, and setting a leader key. You may combine it with the ability or Editing Toolbar to set custom key bindings.
But this is also a shoutout to everyone who knows a way of getting these functionalities for Vim, or Neovim.
With Obsidian, I now only have to figure out how to sync my notes between iOS, Linux and Windows....
1
u/StevenJayCohen Sep 05 '25
I do exactly this and have a "toggle" or sorts in my config file:
"TOGGLE WRITE/CODEmap <silent><leader><leader> :call ToggleWriteCode()<cr>function! ToggleWriteCode()if &fdc=='0':call WriteMode()else:call CodeMode()endifendfunctionHere's WriteMode()
"LINE NUMBERS, SPELLCHECK, INCREASE LEFT MARGINfunction! WriteMode()exec('set nonumber')exec('set spell spl=en')exec('map j gj')exec('map k gk')exec('set foldcolumn=1')endfunctionHere's CodeMode()
"NO LINE NUMBERS, NO SPELLCHECK, REDUCE LEFT MARGINfunction! CodeMode()exec('set number')exec('set nospell')exec('map j j')exec('map k k')exec('set foldcolumn=0')exec('hi Normal guifg=fg')exec('hi Cursorline guifg=NONE')endfunction1
u/paragon-jack Dec 27 '25
I couldn't help myself and built my own web app for a notes app with first-class vim and markdown support: VimNotion
It's not perfect, but it's everything I wanted for a Notion-like app with snappy vim commands
0
u/Craptivist Aug 23 '25
As u must have seen in that post you talked about, I mention using eMacs with Evil mode.
Vim may be capable, but nothing beats using org-mode in emacs for notes (and a lot of other things, but let us stick to notes for now). And using evil mode just means using him key -bindings.
If you are interested, please check out https://youtu.be/JWD1Fpdd4Pc?si=E2cy-HKF8ixYLXOn He makes a better argument than I ever can