comparison vim-setup/.vimrc @ 150:c37490913530

[Config] Updated .vimrc files and made command for ctags movements.
author June Park <parkjune1995@gmail.com>
date Sat, 10 Jan 2026 13:30:28 -0800
parents 76cd7afa6b8e
children 790930d9bb90
comparison
equal deleted inserted replaced
149:f41ac17926d2 150:c37490913530
76 nnoremap <leader>ft :Tags<CR> 76 nnoremap <leader>ft :Tags<CR>
77 77
78 " <leader>fs: Ripgrep search for word (normal mode) 78 " <leader>fs: Ripgrep search for word (normal mode)
79 nnoremap <leader>fs :RG<CR> 79 nnoremap <leader>fs :RG<CR>
80 80
81 " <leader>fs: Ripgrep search for selected text (visual mode) 81 " <leader>fs: Open Ripgrep search prompt
82 vnoremap <leader>fs :<C-u>execute 'Rg ' . getreg('"')<CR> 82 nnoremap <leader>fs :RG<CR>
83
84 function! RipgrepCursor(query)
85 call fzf#vim#grep(
86 \ 'rg --column --line-number --no-heading --color=always --smart-case -- '.shellescape(a:query),
87 \ 1,
88 \ fzf#vim#with_preview(),
89 \ 0)
90 endfunction
91
92 " <leader>gr: Search word under cursor (Normal)
93 nnoremap <silent> <leader>gr :call RipgrepCursor(expand('<cword>'))<CR>
94
95 " <leader>gr: Search selection (Visual)
96 vnoremap <silent> <leader>gr y:call RipgrepCursor(@@)<CR>
97
98 nnoremap <leader>gd <C-w>}
99 nnoremap <leader>gD <C-]>
83 100
84 " Open man in vim 101 " Open man in vim
85 noremap <c-k> :h <cword><cr> 102 noremap <c-k> :h <cword><cr>
86 103
87 " vim wiki 104 " vim wiki
101 runtime! ftplugin/man.vim 118 runtime! ftplugin/man.vim
102 119
103 " Keyword 120 " Keyword
104 set keywordprg=:Man 121 set keywordprg=:Man
105 122
106 " ----- 123 " FZF enbale vim
107 " Mac specific? 124 set rtp+=/opt/homebrew/opt/fzf
108 " 125
109 " " FZF enbale vim 126 " For some reason it include ( or ) when I use it in here
110 " set rtp+=/opt/homebrew/opt/fzf 127 set iskeyword-=( iskeyword-=)
111 " 128
112 " you might need to add for linux as well i forgot 129 " ============================================================================
113 "
114 " " For some reason it include ( or ) when I use it in here
115 " set iskeyword-=( iskeyword-=)
116 " ------
117
118 " Markdown Clipboard Image Paste 130 " Markdown Clipboard Image Paste
131 " ============================================================================
119 " Configuration: Set your API endpoint URL (leave empty to save locally) 132 " Configuration: Set your API endpoint URL (leave empty to save locally)
120 let g:clipboard_image_upload_url = '' 133 let g:clipboard_image_upload_url = ''
121 134
122 " Optional: Custom curl options (e.g., for auth headers) 135 " Optional: Custom curl options (e.g., for auth headers)
123 " let g:clipboard_image_curl_opts = '-H "Authorization: Bearer YOUR_TOKEN"' 136 " let g:clipboard_image_curl_opts = '-H "Authorization: Bearer YOUR_TOKEN"'