1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-07 20:35:10 +01:00

10 Commits

Author SHA1 Message Date
b4305f1131 Original mdnav repo is unmaintained, remove mention 2021-10-27 12:56:06 +02:00
4839507e05 Word 2021-10-13 21:45:51 +02:00
f8ea1fe55f The product 2021-09-22 20:45:24 +02:00
00c670d0e1 Word 2021-09-19 21:26:55 +02:00
b0b09d49c8 Word 2021-09-19 21:11:13 +02:00
8111aaf0ad Med 2021-09-19 16:32:08 +02:00
f8f695ac64 Word 2021-09-13 20:12:18 +02:00
1508e83271 Support rust apps installed locally with cargo 2021-09-05 14:09:50 +02:00
a9d443755a Moved wiki.vim config to outside the load part 2021-09-02 11:11:55 +02:00
1b52b1ed7f Parse tags: line 2021-09-01 18:52:16 +02:00
3 changed files with 44 additions and 17 deletions

View File

@@ -27,6 +27,11 @@ set -U grcplugin_ls --color
if test -x ~/.local/bin if test -x ~/.local/bin
set PATH $PATH ~/.local/bin set PATH $PATH ~/.local/bin
end end
# Local Rust apps installed through cargo
if test -x ~/.cargo/bin
set PATH $PATH ~/.cargo/bin
end
# Scripts from my dotfiles repo
if test -x ~/.dot/dotfiles/bin if test -x ~/.dot/dotfiles/bin
set PATH $PATH ~/.dot/dotfiles/bin set PATH $PATH ~/.dot/dotfiles/bin
end end

View File

@@ -169,3 +169,9 @@ Wii
gymkleding gymkleding
kutweer kutweer
whoa whoa
bistrokrieltjes
dumbbells
naproxen
nerden
E-depot
Carcassonne

50
.vimrc
View File

@@ -432,30 +432,15 @@ Plug 'skanehira/preview-markdown.vim'
let g:preview_markdown_vertical = 1 let g:preview_markdown_vertical = 1
" Navigate through and from markdown files " Navigate through and from markdown files
"Plug 'chmp/mdnav'
Plug 'aquatix/mdnav', { 'branch': 'fixes' } Plug 'aquatix/mdnav', { 'branch': 'fixes' }
" Only open these local files in vim, use pyfile for all others: " Only open these local files in vim, use pyfile for all others:
let g:mdnav#Extensions = '.md, .MD, .markdown, .todo, .txt, .rst' let g:mdnav#Extensions = '.md, .MD, .markdown, .todo, .txt, .rst'
" let g:mdnav#DebugMode = 'true'
" wiki.vim " wiki.vim
Plug 'lervag/wiki.vim' Plug 'lervag/wiki.vim'
" let g:wiki_root = '~/wiki' " Config below, after plug#end()
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>
if $USER != 'root' if $USER != 'root'
@@ -533,6 +518,37 @@ nmap <leader>V :Goyo <bar> :Limelight!! <bar> :TogglePencil <CR>
" All of the plugins must be added before the following line " All of the plugins must be added before the following line
call plug#end() 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 ============================================================ " == End of plugins ============================================================