Skip to content

Instantly share code, notes, and snippets.

@DavidLGoldberg
Last active February 28, 2019 17:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidLGoldberg/166646fce043710ef920 to your computer and use it in GitHub Desktop.
Save DavidLGoldberg/166646fce043710ef920 to your computer and use it in GitHub Desktop.
Green cursor (slight pulse) for Atom editor with vim-mode
.editor.vim-mode.command-mode::shadow {
.cursor.idle, .cursor.idle.blink-off {
background-color: #00ff44; // bright green
visibility: visible;
opacity: .5;
border-style: solid;
border-width: 1px;
border-color: #ff0000; // bright red
}
.cursor.idle.blink-off {
//visibility: hidden; // make hidden for complete blink
opacity: .55; // weird subtle little pulse, almost can't see it.
}
}
// with react:
.editor.vim-mode.command-mode::shadow {
.cursors .cursor, .cursors.blink-off .cursor {
background-color: #00ff44; // bright green
visibility: visible;
opacity: .6;
border-style: solid;
border-width: 1px;
//border-color: #ff0000; // bright red
border-color: #FFFFFF; // white
}
.cursors.blink-off .cursor {
//visibilaity: hidden; // make hidden for complete blink
opacity: .63; // weird subtle little pulse, almost can't see it.
}
}
@DavidLGoldberg
Copy link
Author

Put this in your "Atom" -> "Open Your Stylesheet" less file.

@DavidLGoldberg
Copy link
Author

added ::shadow

@v3ss0n
Copy link

v3ss0n commented Apr 12, 2015

How about non-vim?

@kapena
Copy link

kapena commented Apr 30, 2015

This is awesome!! Thax bro :)

@DavidLGoldberg
Copy link
Author

Unfortunately, this no longer works, I'll have to try to get this working again one day or find a better one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment