Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add minimal vimwiki layer #437

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions layers/+vim/which-key/config.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ vnoremap <silent> <leader> :<c-u>WhichKeyVisual '<Space>'<CR>

nnoremap <silent> <localleader> :<c-u>WhichKey ','<CR>
vnoremap <silent> <localleader> :<c-u>WhichKeyVisual ','<CR>

nnoremap <silent> g :<c-u>WhichKey 'g'<CR>
vnoremap <silent> g :<c-u>WhichKeyVisual 'g'<CR>

nnoremap <silent> z :<c-u>WhichKey 'z'<CR>
vnoremap <silent> z :<c-u>WhichKeyVisual 'z'<CR>
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions layers/+writing/taskwarrior/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Vimwiki

## Table of Contents

<!-- vim-markdown-toc GFM -->
* [Description](#description)
* [Install](#install)
* [Key Bindings](#key-bindings)

<!-- vim-markdown-toc -->

## Description

This layer adds Vimwiki. Learn more at http://vimwiki.github.io/

## Install

To use this configuration layer, add it to your `~/.spacevim`.

## Key Bindings

Key Binding | Mode | Description
:---: | :---: | :---:
<kbd>SPC W w</kbd> | Normal | Wiki index
3 changes: 3 additions & 0 deletions layers/+writing/taskwarrior/config.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
" goyo.vim {
nnoremap <Leader>wW <Plug>:VimwikiIndex<CR>
" }
3 changes: 3 additions & 0 deletions layers/+writing/taskwarrior/packages.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MP 'tbabej/taskwiki'
MP 'blindFS/vim-taskwarrior'

38 changes: 38 additions & 0 deletions layers/+writing/vimwiki/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Vimwiki

## Table of Contents

<!-- vim-markdown-toc GFM -->
* [Description](#description)
* [Install](#install)
* [Key Bindings](#key-bindings)

<!-- vim-markdown-toc -->

## Description

This layer adds Vimwiki. Learn more at http://vimwiki.github.io/

## Quick start

You'll need to configure at least one wiki in your ~/.spacevim. For example:

```
let g:vimwiki_list = [{'path': '~/Documents/wikis/ericwiki/',
\ 'syntax': 'markdown', 'ext': '.md',
\ 'custom_wiki2html': 'wiki2html',
\ 'path_html': '~/Sites/Notes/',
\ 'diary_rel_path': 'Journal/'
\ },
\{'path': '~/Documents/wikis/feels/',
\ 'syntax': 'markdown', 'ext': '.md',
\ 'custom_wiki2html': 'wiki2html',
\ 'diary_rel_path': 'Journal/'
\ }]
```

## Key Bindings

Key Binding | Mode | Description
:---: | :---: | :---:
<kbd>SPC W w</kbd> | Normal | Wiki index
4 changes: 4 additions & 0 deletions layers/+writing/vimwiki/config.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
" goyo.vim {
nnoremap <Leader>wW <Plug>:VimwikiIndex<CR>
"nnoremap <CR> :VimwikiFollowLink<CR>
" }
3 changes: 3 additions & 0 deletions layers/+writing/vimwiki/packages.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MP 'lervag/wiki.vim'
MP 'reedes/vim-pencil'