aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-04-01 20:53:20 -0400
committerEugene Triguba <hello@eugenetriguba.com>2026-04-01 20:56:28 -0400
commit7e7afd6ebda5a5d6fa5bb6fed7bb2be9864c65b9 (patch)
treeffb49bfb4b73eafba917c5151118b85c40ae195c
parentRemove unnecessary use of shell-command-to-string (diff)
downloaddotfiles-7e7afd6ebda5a5d6fa5bb6fed7bb2be9864c65b9.zip
Adjust vim config
-rw-r--r--.gitmodules21
m---------.vim/pack/plugins/start/fzf0
m---------.vim/pack/plugins/start/fzf.vim0
m---------.vim/pack/plugins/start/vim-commentary0
m---------.vim/pack/plugins/start/vim-highlightedyank0
m---------.vim/pack/plugins/start/vim-surround0
m---------.vim/pack/plugins/start/vim-tmux-navigator0
m---------.vim/pack/plugins/start/vim-vinegar0
-rw-r--r--.vimrc45
9 files changed, 65 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..2afc76d
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,21 @@
+[submodule ".vim/pack/plugins/start/fzf.vim"]
+ path = .vim/pack/plugins/start/fzf.vim
+ url = https://github.com/junegunn/fzf.vim
+[submodule ".vim/pack/plugins/start/fzf"]
+ path = .vim/pack/plugins/start/fzf
+ url = https://github.com/junegunn/fzf
+[submodule ".vim/pack/plugins/start/vim-vinegar"]
+ path = .vim/pack/plugins/start/vim-vinegar
+ url = https://github.com/tpope/vim-vinegar
+[submodule ".vim/pack/plugins/start/vim-surround"]
+ path = .vim/pack/plugins/start/vim-surround
+ url = https://github.com/tpope/vim-surround
+[submodule ".vim/pack/plugins/start/vim-commentary"]
+ path = .vim/pack/plugins/start/vim-commentary
+ url = https://github.com/tpope/vim-commentary
+[submodule ".vim/pack/plugins/start/vim-tmux-navigator"]
+ path = .vim/pack/plugins/start/vim-tmux-navigator
+ url = https://github.com/christoomey/vim-tmux-navigator
+[submodule ".vim/pack/plugins/start/vim-highlightedyank"]
+ path = .vim/pack/plugins/start/vim-highlightedyank
+ url = https://github.com/machakann/vim-highlightedyank
diff --git a/.vim/pack/plugins/start/fzf b/.vim/pack/plugins/start/fzf
new file mode 160000
+Subproject cc16a97a40a16efecbed5bd7fb322010c033e50
diff --git a/.vim/pack/plugins/start/fzf.vim b/.vim/pack/plugins/start/fzf.vim
new file mode 160000
+Subproject 34a564c81f36047f50e593c1656f4580ff75ccc
diff --git a/.vim/pack/plugins/start/vim-commentary b/.vim/pack/plugins/start/vim-commentary
new file mode 160000
+Subproject 64a654ef4a20db1727938338310209b6a63f60c
diff --git a/.vim/pack/plugins/start/vim-highlightedyank b/.vim/pack/plugins/start/vim-highlightedyank
new file mode 160000
+Subproject 285a61425e79742997bbde76a91be6189bc988f
diff --git a/.vim/pack/plugins/start/vim-surround b/.vim/pack/plugins/start/vim-surround
new file mode 160000
+Subproject 3d188ed2113431cf8dac77be61b842acb64433d
diff --git a/.vim/pack/plugins/start/vim-tmux-navigator b/.vim/pack/plugins/start/vim-tmux-navigator
new file mode 160000
+Subproject e41c431a0c7b7388ae7ba341f01a0d217eb3a43
diff --git a/.vim/pack/plugins/start/vim-vinegar b/.vim/pack/plugins/start/vim-vinegar
new file mode 160000
+Subproject bb1bcddf43cfebe05eb565a84ab069b357d0b3d
diff --git a/.vimrc b/.vimrc
index 61e87f8..f2a9547 100644
--- a/.vimrc
+++ b/.vimrc
@@ -3,7 +3,13 @@
set nocompatible
" Use system clipboard
-set clipboard=unnamedplus
+"
+" https://stackoverflow.com/a/39313208
+if has('macunix')
+ set clipboard=unnamed
+elseif has('unix')
+ set clipboard=unnamedplus
+endif
" Enable a number column with numbers relative
" to the current line the cursor is on.
@@ -30,3 +36,40 @@ set softtabstop=4
" Number of spaces to use for auto-indentation
set shiftwidth=4
+let g:mapleader = "\<Space>"
+let g:maplocalleader = ','
+
+" Show quickfix list easier
+nnoremap <Leader>q :copen<CR>
+
+" Setup key mappings for fzf.vim
+"
+" Fuzzy find files
+noremap <silent> <leader>ff :Files<CR>
+" live grep (need ripgrep)
+noremap <silent> <leader>fg :Rg<CR>
+" grep word under cursor
+noremap <silent> <leader>fw :Rg <C-R><C-W><CR>
+" recently opened files
+noremap <silent> <leader>fr :History<CR>
+" recently opened files
+noremap <silent> <leader>fh :Helptags<CR>
+" open buffers
+noremap <silent> <leader>fb :Buffers<CR>
+" lines in current buffer
+noremap <silent> <leader>fl :BLines<CR>
+" lines across all buffers
+noremap <silent> <leader>fL :Lines<CR>
+" command history
+noremap <silent> <leader>f: :History:<CR>
+" search history
+noremap <silent> <leader>f/ :History/<CR>
+" marks
+noremap <silent> <leader>fm :Marks<CR>
+" ctags
+noremap <silent> <leader>ft :Tags<CR>
+
+" Configure yank highlighting to be quicker (200ms) and not show
+" up in visual mode
+let g:highlightedyank_highlight_duration = 200
+let g:highlightedyank_highlight_in_visual = 0