Added vimwiki tag search keybinding
This commit is contained in:
parent
8e1dd25ab9
commit
59c93de8aa
2 changed files with 13 additions and 13 deletions
24
plugins.vim
24
plugins.vim
|
|
@ -118,15 +118,15 @@ endif
|
||||||
" GLSL
|
" GLSL
|
||||||
autocmd! BufNewFile,BufRead *.vs,*.fs,*.glsl,*.frag,*.vert set ft=glsl
|
autocmd! BufNewFile,BufRead *.vs,*.fs,*.glsl,*.frag,*.vert set ft=glsl
|
||||||
|
|
||||||
" dotoo
|
" Vimwiki
|
||||||
"set hidden
|
" A little function to insert user input functionality into remaps
|
||||||
"let g:dotoo#agenda#files = ['~/Dropbox/org/*.org']
|
function! TagSearch()
|
||||||
"let g:dotoo#capture#refile = expand('~/Dropbox/org/refile.org')
|
call inputsave()
|
||||||
"autocmd! BufNewFile,BufRead *.org set filetype=dotoo
|
let replacement = input('Enter Tag: ')
|
||||||
"augroup dotoo
|
call inputrestore()
|
||||||
" autocmd!
|
execute ':VimwikiSearchTags '.replacement
|
||||||
" autocmd BufNewFile,BufRead *.org *.dotoo set hidden
|
execute ':lopen'
|
||||||
" autocmd FileType dotoo,org,tex,text setlocal textwidth=80
|
endfunction
|
||||||
" autocmd FileType dotoo,org,tex,text setlocal spell spelllang=en_gb
|
|
||||||
"
|
nmap <Leader>w? :echon " wts search-tags"<CR>
|
||||||
"augroup END
|
autocmd FileType vimwiki nmap <Leader>wts :call TagSearch()<CR>
|
||||||
|
|
|
||||||
2
vimrc
2
vimrc
|
|
@ -102,7 +102,7 @@ set wrap linebreak nolist
|
||||||
|
|
||||||
"Leader mapping
|
"Leader mapping
|
||||||
let mapleader = "\<Space>"
|
let mapleader = "\<Space>"
|
||||||
nnoremap <Leader>? :echon " n :Lex \n l? lsp help (if implemented in buffer)"<CR>
|
nnoremap <Leader>? :echon " n :Lex \n l? lsp help (if implemented in buffer)\n w? vimWiki help"<CR>
|
||||||
nnoremap <Leader>n :Lex<CR>
|
nnoremap <Leader>n :Lex<CR>
|
||||||
" Load Plugins
|
" Load Plugins
|
||||||
so ~/.vim/plugins.vim
|
so ~/.vim/plugins.vim
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue