1
0
mirror of https://github.com/artizirk/dotfiles.git synced 2025-12-19 00:05:17 +02:00

Switch VIM CursorLine when running in JetBrains

This commit is contained in:
2025-07-08 14:57:38 +03:00
parent 639e7cc444
commit 7da9ebddde

View File

@@ -9,8 +9,12 @@ set cursorline
hi cursorline cterm=none term=none
autocmd WinEnter * setlocal cursorline
autocmd WinLeave * setlocal nocursorline
highlight CursorLine guibg=#303000 ctermbg=234
"highlight CursorLine guibg=#303000 ctermbg=lightgray
if $TERMINAL_EMULATOR == "JetBrains-JediTerm"
highlight CursorLine guibg=#303000 ctermbg=lightgray
else
highlight CursorLine guibg=#303000 ctermbg=234
endif
" configure reasonable swap file
" https://begriffs.com/posts/2019-07-19-history-use-vim.html?hn=3#backups-and-undo