Skip to content

Commit

Permalink
feat: vim-bookmark
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Apr 10, 2024
1 parent 2e226a0 commit 20292d2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions root/.config/nvim/lua/plugins/vimplug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ local M = {
'tpope/vim-fugitive',
'junegunn/gv.vim',
{ 'alepez/vim-gtest', ft = { 'c', 'cpp', 'cuda' } },
'MattesGroeger/vim-bookmarks',
'jiangyinzuo/img-paste.vim',
'skywind3000/vim-quickui',
'pechorin/any-jump.vim',
Expand Down
16 changes: 15 additions & 1 deletion root/.vim/vimrc.d/plugin_setup.vim
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,21 @@ let g:MergetoolSetLayoutCallback = function('mergetool_custom#MergetoolLayoutCal

" 即使pdf位于wsl中,typst也可以使用windows下的pdf阅读器
let g:typst_pdf_viewer = 'SumatraPDF.exe'


let g:bookmark_no_default_key_mappings = 1
nmap <Leader>mm <Plug>BookmarkToggle
nmap <Leader>mi <Plug>BookmarkAnnotate
nmap <Leader>ma <Plug>BookmarkShowAll
nmap <Leader>mn <Plug>BookmarkNext
nmap <Leader>mp <Plug>BookmarkPrev
nmap <Leader>mc <Plug>BookmarkClear
nmap <Leader>mx <Plug>BookmarkClearAll
nmap <Leader>mk <Plug>BookmarkMoveUp
nmap <Leader>mj <Plug>BookmarkMoveDown
nmap <Leader>mg <Plug>BookmarkMoveToLine
let g:bookmark_auto_save = 1
let g:bookmark_save_per_working_dir = 0

let g:mdip_imgdir = '.'
let g:mdip_wsl_path = '\\\\wsl.localhost\\Ubuntu-22.04'
function! g:LatexPasteImage(relpath)
Expand Down
2 changes: 1 addition & 1 deletion root/.vim/vimrc.d/vimplug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ if !exists('g:vscode')
let g:GIT_LENS_ENABLED = 0
endif

" Plug 'MattesGroeger/vim-bookmarks'
Plug 'MattesGroeger/vim-bookmarks'
source ~/.vim/vimrc.d/ai.vim
Plug 'bfrg/vim-cpp-modern', {'for': ['c', 'cpp', 'cuda']}
" Enable function highlighting (affects both C and C++ files)
Expand Down

0 comments on commit 20292d2

Please sign in to comment.