mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 21:45:09 +01:00
Compare commits
13 Commits
ab722b28df
...
wikitags
| Author | SHA1 | Date | |
|---|---|---|---|
| a9d443755a | |||
| 1b52b1ed7f | |||
| 28cdfe7d3a | |||
| 8a147d485a | |||
| 92b7cbf3d8 | |||
| fed1dc4d8e | |||
| 3aa07b28c2 | |||
| 009557beb4 | |||
| 5e91c7d6af | |||
| c844099484 | |||
| 5d374082e9 | |||
| 44540b79a2 | |||
| 5d4d5a0bfa |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
||||
# Vim
|
||||
.vim/bundle
|
||||
*.spl
|
||||
*.swp
|
||||
*.swo
|
||||
|
||||
|
||||
Binary file not shown.
@@ -160,3 +160,12 @@ wokgerecht
|
||||
rundersaucijs
|
||||
Loïs
|
||||
Pfizer
|
||||
gehaktsaus
|
||||
aardappelkroketjes
|
||||
AMD
|
||||
Assetto
|
||||
Corsa
|
||||
Wii
|
||||
gymkleding
|
||||
kutweer
|
||||
whoa
|
||||
|
||||
Binary file not shown.
59
.vimrc
59
.vimrc
@@ -271,6 +271,15 @@ endif
|
||||
" https://castel.dev/post/lecture-notes-1/
|
||||
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
|
||||
|
||||
" Make sure .add.spl spelling files are up-to-date with their .add
|
||||
" counterparts
|
||||
" https://vi.stackexchange.com/questions/5050/how-to-share-vim-spellchecking-additions-between-multiple-machines
|
||||
for d in glob('~/.vim/spell/*.add', 1, 1)
|
||||
if filereadable(d) && (!filereadable(d . '.spl') || getftime(d) > getftime(d . '.spl'))
|
||||
exec 'mkspell! ' . fnameescape(d)
|
||||
endif
|
||||
endfor
|
||||
|
||||
" Word completion from dictionary (on ctrl+space)
|
||||
set complete+=kspell
|
||||
|
||||
@@ -431,28 +440,13 @@ let g:mdnav#Extensions = '.md, .MD, .markdown, .todo, .txt, .rst'
|
||||
|
||||
" wiki.vim
|
||||
Plug 'lervag/wiki.vim'
|
||||
" let g:wiki_root = '~/wiki'
|
||||
let g:wiki_root = '~/phren'
|
||||
let g:wiki_filetypes = ['md']
|
||||
let g:wiki_link_extension = '.md'
|
||||
let g:wiki_link_target_type = 'md'
|
||||
" let g:wiki_mappings_use_defaults = 1
|
||||
"support for #tag style tags instead of :tag:
|
||||
let g:wiki_tags_format_pattern = '\v%(^|\s)#\zs[^# ]+'
|
||||
" number of lines from the top to scan for tags
|
||||
let g:wiki_tags_scan_num_lines = 500
|
||||
" search through the tags in the wiki
|
||||
nmap <leader>wf :WikiFzfTags <CR>
|
||||
" find backlinks to this document
|
||||
nmap <leader>wb :WikiGraphFindBacklinks <CR>
|
||||
" find in ToC/structure of the (markdown) file
|
||||
nmap <leader>ft :WikiFzfToc <CR>
|
||||
" Config below, after plug#end()
|
||||
|
||||
|
||||
if $USER != 'root'
|
||||
" notational velocity with fzf: quickly search and open notes
|
||||
Plug 'https://github.com/alok/notational-fzf-vim'
|
||||
let g:nv_search_paths = ['~/phren', '~/mydocs', '~/.dot/caplog']
|
||||
let g:nv_search_paths = ['~/phren', '~/mydocs', '~/.dot/caplog', '~/divaultphren']
|
||||
let g:nv_ignore_pattern = ['*.xml', '*.svg']
|
||||
" Quickly open the search with this shortcut
|
||||
nmap <leader>n :NV <CR>
|
||||
@@ -524,6 +518,37 @@ nmap <leader>V :Goyo <bar> :Limelight!! <bar> :TogglePencil <CR>
|
||||
|
||||
" All of the plugins must be added before the following line
|
||||
call plug#end()
|
||||
|
||||
|
||||
" wiki.vim config
|
||||
let g:wiki_root = '~/phren'
|
||||
let g:wiki_filetypes = ['md']
|
||||
let g:wiki_link_extension = '.md'
|
||||
let g:wiki_link_target_type = 'md'
|
||||
" let g:wiki_mappings_use_defaults = 1
|
||||
"support for #tag style tags instead of :tag: (hashes instead of colons)
|
||||
runtime autoload/wiki/tags.vim
|
||||
let s:tag_parser = deepcopy(g:wiki#tags#default_parser)
|
||||
let s:tag_parser.re_match = '\v%(^|\s)#\zs[^# ]+'
|
||||
let s:tag_parser.re_findstart = '\v%(^|\s)#\zs[^# ]+'
|
||||
|
||||
"let g:wiki_tags_format_pattern = '\v%(^|\s)#\zs[^# ]+'
|
||||
" parse tags in lines that match "tags: keyword1, keyword2" in addition to the default parser:
|
||||
let g:wiki_tag_parsers = [
|
||||
\ s:tag_parser,
|
||||
\ {'match': {x -> x =~# '^tags: '},
|
||||
\ 'parse': {x -> split(matchstr(x, '^tags:\zs.*'), '[ ,]\+')}}
|
||||
\ ]
|
||||
" number of lines from the top to scan for tags
|
||||
let g:wiki_tag_scan_num_lines = 500
|
||||
" search through the tags in the wiki
|
||||
nmap <leader>wf :WikiFzfTags <CR>
|
||||
" find backlinks to this document
|
||||
nmap <leader>wb :WikiGraphFindBacklinks <CR>
|
||||
" find in ToC/structure of the (markdown) file
|
||||
nmap <leader>ft :WikiFzfToc <CR>
|
||||
|
||||
|
||||
" == End of plugins ============================================================
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
cd ~/mydocs/work/divault
|
||||
git pull
|
||||
cd ~/divaultphren
|
||||
git pull
|
||||
#vim -c ":vsp planning_2015.todo" notes_2015.md notes_2014.md
|
||||
vim -c "set nofoldenable" planning_2021.todo notes.md
|
||||
vim -c "set nofoldenable" ~/mydocs/work/divault/planning_2021.todo ~/divaultphren/index.md
|
||||
|
||||
Reference in New Issue
Block a user