Skip to content

Instantly share code, notes, and snippets.

@timmyha
Created October 13, 2023 14:42
Show Gist options
  • Select an option

  • Save timmyha/01b48e58c50c462ab03f50ddb8e757fc to your computer and use it in GitHub Desktop.

Select an option

Save timmyha/01b48e58c50c462ab03f50ddb8e757fc to your computer and use it in GitHub Desktop.
cursor color based on mode
vim.cmd [[
highlight nCursor guifg=#752f4d guibg=#ba7cbb
highlight iCursor guifg=#1b1818 guibg=#97bad0
highlight vCursor guifg=#1b1818 guibg=#FFFFFF
highlight rCursor guifg=#1b1818 guibg=#FFFFFF
highlight Cursor guifg=#1b1818 guibg=#FFFFFF
highlight cCursor guifg=#1b1818 guibg=#FFFFFF
set guicursor=n:block-Cursor
set guicursor+=i:block-iCursor
set guicursor+=n-v-c:noblink
set guicursor+=n-c:noblink
set guicursor+=v:noblink-vCursor
set guicursor+=r:noblink-rCursor
set guicursor+=c:noblink-cCursor
set guicursor+=i:blinkwait0
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment