" a stub vimrc for just running vimwiki on an otherwise stock setup
|
|
|
|
set nocompatible
|
|
set nomodeline
|
|
let mapleader = ","
|
|
|
|
" vundle setup & vundle-managed plugins {{{
|
|
|
|
filetype off
|
|
|
|
set rtp+=~/.vim/bundle/Vundle.vim/
|
|
call vundle#begin()
|
|
|
|
" let Vundle manage Vundle - required:
|
|
Plugin 'VundleVim/Vundle.vim'
|
|
|
|
" CUSTOMIZE: vimwikis - for notes, daily logs, etc. {{{
|
|
|
|
" main personal wiki
|
|
let wiki = {}
|
|
let wiki.path = '~/notes/vimwiki/'
|
|
let wiki.path_html = '~/notes/html/'
|
|
let wiki.auto_tags = 1
|
|
let wiki.auto_diary_index = 1
|
|
let wiki.automatic_nested_syntaxes = 1
|
|
|
|
" a markdown wiki for testing purposes
|
|
let markdownwiki = {}
|
|
let markdownwiki.path = '~/notes/markdownwiki'
|
|
let markdownwiki.path_html = '~/notes/markdownwiki/html/'
|
|
let markdownwiki.auto_tags = 1
|
|
let markdownwiki.auto_diary_index = 1
|
|
let markdownwiki.automatic_nested_syntaxes = 1
|
|
let markdownwiki.syntax = 'markdown'
|
|
let markdownwiki.ext = '.md'
|
|
|
|
" a third wiki for testing https://github.com/vimwiki/vimwiki/issues/1146
|
|
let thirdwiki = {}
|
|
let thirdwiki.path = '/tmp/thirdwiki'
|
|
let thirdwiki.path_html = '/tmp/thirdwiki/html/'
|
|
let thirdwiki.auto_tags = 1
|
|
let thirdwiki.auto_diary_index = 1
|
|
let thirdwiki.automatic_nested_syntaxes = 1
|
|
let thirdwiki.syntax = 'markdown'
|
|
let thirdwiki.ext = '.md'
|
|
|
|
" there can be many of these
|
|
" let g:vimwiki_list = [wiki, markdownwiki, thirdwiki]
|
|
let g:vimwiki_list = [markdownwiki, thirdwiki]
|
|
|
|
" don't make temporary wikis based on file extensions in the list - this
|
|
" is necessary to avoid .md files getting a filetype of vimwiki instead of
|
|
" markdown:
|
|
let g:vimwiki_global_ext = 0
|
|
|
|
" XXX: Seeing what the default is here...
|
|
" let g:vimwiki_folding = 'expr'
|
|
" let g:vimwiki_folding = 'syntax'
|
|
" let g:vimwiki_folding = 'list'
|
|
|
|
" links concealing, etc.
|
|
" let g:vimwiki_conceallevel = 0
|
|
|
|
" don't obscure URLs in links
|
|
" let g:vimwiki_url_maxsave = 0
|
|
|
|
" make links clickable and such
|
|
let g:vimwiki_use_mouse = 1
|
|
|
|
" use colors in header highlighting
|
|
let g:vimwiki_hl_headers = 1
|
|
|
|
Plugin 'vimwiki/vimwiki'
|
|
|
|
" }}}
|
|
|
|
call vundle#end()
|
|
filetype plugin on
|
|
filetype indent on
|
|
|
|
" Turn on syntax
|
|
syntax on
|
|
|
|
" }}}
|