diff --git a/plugins.vim b/plugins.vim index 5e158f1..17147be 100644 --- a/plugins.vim +++ b/plugins.vim @@ -118,15 +118,15 @@ endif " GLSL autocmd! BufNewFile,BufRead *.vs,*.fs,*.glsl,*.frag,*.vert set ft=glsl -" dotoo -"set hidden -"let g:dotoo#agenda#files = ['~/Dropbox/org/*.org'] -"let g:dotoo#capture#refile = expand('~/Dropbox/org/refile.org') -"autocmd! BufNewFile,BufRead *.org set filetype=dotoo -"augroup dotoo -" autocmd! -" autocmd BufNewFile,BufRead *.org *.dotoo set hidden -" autocmd FileType dotoo,org,tex,text setlocal textwidth=80 -" autocmd FileType dotoo,org,tex,text setlocal spell spelllang=en_gb -" -"augroup END +" Vimwiki +" A little function to insert user input functionality into remaps +function! TagSearch() + call inputsave() + let replacement = input('Enter Tag: ') + call inputrestore() + execute ':VimwikiSearchTags '.replacement + execute ':lopen' +endfunction + +nmap w? :echon " wts search-tags" +autocmd FileType vimwiki nmap wts :call TagSearch() diff --git a/vimrc b/vimrc index 6cad213..1bb8c01 100644 --- a/vimrc +++ b/vimrc @@ -102,7 +102,7 @@ set wrap linebreak nolist "Leader mapping let mapleader = "\" -nnoremap ? :echon " n :Lex \n l? lsp help (if implemented in buffer)" +nnoremap ? :echon " n :Lex \n l? lsp help (if implemented in buffer)\n w? vimWiki help" nnoremap n :Lex " Load Plugins so ~/.vim/plugins.vim