![]() This way, you have the same cursor in Vim and in Bash. To make the terminfo configuration for the normal cursor effective on startup in Bash, put this in your. To activate highlighting, add 8 to the number: 24 For example: 16 gives a blue cursor without highlighting the character under the cursor. To have the character under the cursor highlighted, add 8 to the number. The cursor background color changes in increments of 16. The number before the c (e.g., 32c) defines the cursor's color. Then, once you open a file with Vim, you'll see the new cursor. Write the changes back to the terminfo database: tic linux_terminfo This sets the cursor to a non-blinking green rectangle: clear=\E[H\E[J, cnorm=\E[?25h\E[?48 0 32c, cr=^M, Then edit linux_terminfo with your favorite editor the cnorm entry is the one for the normal cursor. We can set the cursor by changing it in the terminfo database: infocmp -A /usr/share/terminfo linux > linux_terminfo If echo $TERM gives linux on your machine, you can use terminfo to define the cursor for Vim. Re-wording the question: How can I make the cursor redrawing faster in a Terminal and how can I make it take the settings I put above? I already tried ttyfast and lazyredraw. I am using iTerm2 with xterm-color256 as the Terminal. My OS is a Mac Mini with Mountain Lion installed. For example if I enter insert mode the correct cursor is put, but if I get out, the same cursor is used until I move or something then it updated to the normal mode cursor.ĭo you have any tips on this? Or do I just have to bear with it? in /usr/local/bin (all symlinked to the copy in the Cellar). If you go the brew route, the best way to install would be: brew install macvim -with-override-system-vim That will provide mvim, vim, vi, view, etc. I do notice it's called the guicursor setting, however in Terminal some of these do take effect, they just don't take a full effect.Īlso, it seems the cursor doesn't get updated a lot. brew install macvim mvim -v should then open macvim in the terminal, you can also go ahead and alias that. Set guicursor =sm:block-Cursor-blinkwait175-blinkoff150-blinkon175 Set guicursor =o:hor50-Cursor-blinkwait175-blinkoff150-blinkon175 Here are my settings for the cursor: set guicursor=n-v-c:block-Cursor-blinkon0 In other words, in the GUI it looks perfect, the cursor that is, but in the Terminal it takes time to update, it doesn't look like I configured it etc. I've noticed when I use the Terminal that the cursor is not as I configured it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |