Skip to content

Instantly share code, notes, and snippets.

@vii33
vii33 / obsidian-vii-callouts.css
Created April 1, 2022 23:44
Obsidian Notes - Change callout color and icon (admonitions)
/* Settings for all callouts / admonitions: */
.callout {
background-color: hsl(220, 16%, 16%);
}
/* Settings for individual callouts / admonitions: */
.callout[data-callout="important"] { /* same name as in callout to be changed */
--callout-color: 19, 203, 232; /* rgb only */
@vii33
vii33 / obsidian-vii-adjustable-readable-line-length.css
Last active November 16, 2024 00:46
Changes the readable line length in Obsidian Notes. Tested in Obsidian v1.0.0
/* Changes the readable line length in Obsidian Notes. Tested in Obsidian v1.0.0
See https://gist.github.com/vii33/f2c3a85b64023cefa9df6420730c7531/f4ea845b240e94c9fcd47d456340f78208dab38f
*/
body {
--file-line-width: 750px;
}
@vii33
vii33 / .obsidian.vimrc
Created December 23, 2023 17:20
Obsidian .vimrc Base Template
" Use in Obsidian.md to remap Vim keybindings. More info: https://github.com/vii33/Obsidian-vimrc
" Available CodeMirror operators/motions: https://github.com/replit/codemirror-vim/blob/master/src/vim.js
" Available internal Obsidian commands, go to developer console, click in the editor, type :obcommand and check log output
" Have j and k navigate visual lines rather than logical ones
nmap j gj
nmap k gk
" Big J/K jumps multiple lines (compared to their smaller siblings j/k)