Skip to content

xylous/settle.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

settle.vim

The (n)vim wrapper for settle.

Features:

  • title and tag autocompletion, triggered by <C-x><C-u>
  • automatic updating of Zettel which you edit with vim
  • following links under cursor and even backlinks
  • Zettel creation, be it in command mode, be it interactively, or be it from the wikilink under cursor
  • opening FZF on the search results of settle query
  • finding notes with the tag under cursor
  • opening a graph of the entire Zettelkasten with xdot
  • four handy textobjects: il for "inside wikilink", al for "around wikilink", it for "inside tag" (root tag without subtags) and at for "around tag" (entire tag, with all subtags)

Getting started

Requirements

  • Vim or NeoVim. I've only used it with NVIM v0.6.0 and afterwards, but it should work with earlier versions as well without any problem.
  • fzf.vim (plus fzf)
  • settle
  • optional: xdot, if you're going to use graphs

Installation

Using Pathogen

cd ~/.vim
mkdir bundle
cd bundle
git clone https://github.com/xylous/settle.vim.git

Using Vim-Plug

Add the following line to your vimrc:

Plug 'xylous/settle.vim'

Then source your vimrc and run :PlugInstall

Using Vundle

Add the following line to your vimrc:

Plugin 'xylous/settle.vim'

And then run vim +PluginInstall +qall in a shell.

Usage

Check the vim-help document

Ideally, you should make mappings for the commands that this plugin exports, as none are made by default.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.