aboutsummaryrefslogtreecommitdiffstats
path: root/vim/.vim
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2026-09-10 21:54:36 +0200
committerGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2026-09-10 21:54:36 +0200
commit7264701a9f94b8fe758599f6c1ce32701189fc41 (patch)
tree140690b52724bb7f6d8da279b58053cc65af0a4c /vim/.vim
parent2255d63d21494271abb7500e814262075cf7086f (diff)
downloaddotfiles-7264701a9f94b8fe758599f6c1ce32701189fc41.tar.gz
dotfiles-7264701a9f94b8fe758599f6c1ce32701189fc41.tar.bz2
dotfiles-7264701a9f94b8fe758599f6c1ce32701189fc41.zip
Strip dead has('nvim') branches from vimrc
Neovim is about to get its own standalone Lua config and will no longer source this file, so the has('nvim') branches (claude-code.nvim setup, <BS> remap, TermOpen augroup) are now unreachable. Collapse both blocks down to their else branches, which become the only/default behavior: vim-claude-code plugin and its settings, unconditionally. Everything else in the file is untouched.
Diffstat (limited to 'vim/.vim')
-rwxr-xr-xvim/.vim/vimrc25
1 files changed, 5 insertions, 20 deletions
diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc
index 40f41ba..c6e74a1 100755
--- a/vim/.vim/vimrc
+++ b/vim/.vim/vimrc
@@ -45,12 +45,7 @@ if has('python') || has('python3')
45 Plug 'ycm-core/YouCompleteMe', {'do': g:ycm_install_command} 45 Plug 'ycm-core/YouCompleteMe', {'do': g:ycm_install_command}
46endif 46endif
47 47
48if has('nvim') 48Plug 'rishi-opensource/vim-claude-code'
49 Plug 'nvim-lua/plenary.nvim'
50 Plug 'greggh/claude-code.nvim'
51else
52 Plug 'rishi-opensource/vim-claude-code'
53endif
54 49
55call plug#end() 50call plug#end()
56 51
@@ -162,20 +157,10 @@ function! AppendModeline()
162endfunction 157endfunction
163nnoremap <silent> <Leader>ml :call AppendModeline()<CR> 158nnoremap <silent> <Leader>ml :call AppendModeline()<CR>
164 159
165" NeoVIM specifics 160" vim-claude-code settings
166if has('nvim') 161let g:claude_code_map_toggle = '<C-,>'
167 nnoremap <BS> <C-W>h 162let g:claude_code_position = 'right'
168 " tnoremap <Esc> <C-\><C-n> 163let g:claude_code_split_ratio = 0.3
169 augroup nvim_term
170 autocmd!
171 autocmd TermOpen * setlocal nolist
172 augroup END
173 lua require('claude-code').setup({ window = { position = 'vertical botright' } })
174else
175 let g:claude_code_map_toggle = '<C-,>'
176 let g:claude_code_position = 'right'
177 let g:claude_code_split_ratio = 0.3
178endif
179 164
180""" PLUGIN SPECIFIC SETTINGS 165""" PLUGIN SPECIFIC SETTINGS
181if exists("g:plug_home") 166if exists("g:plug_home")