Skip to content

Instantly share code, notes, and snippets.

@celso
celso / init.vim
Last active March 8, 2024 18:31
Neovim setup for OSX users
syntax on
set ruler " Show the line and column numbers of the cursor.
set formatoptions+=o " Continue comment marker in new lines.
set textwidth=0 " Hard-wrap long lines as you type them.
set modeline " Enable modeline.
set esckeys " Cursor keys in insert mode.
set linespace=0 " Set line-spacing to minimum.
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J)
" More natural splits
set splitbelow " Horizontal split below current.
@whophil
whophil / Preferences.sublime-settings
Last active December 13, 2020 19:20
Sublime Text 3 user settings to use Unix style line endings by default (and also show the line ending type in the status bar)
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/User/SublimeLinter/base16-ocean.light (SL).tmTheme",
"default_line_ending": "unix",
"font_size": 12,
"ignored_packages":
[
"Anaconda",
"Monokai Extended",
@mrliptontea
mrliptontea / sublime-text-3-windows-shortcuts.md
Last active June 15, 2024 16:22 — forked from TheShrike/gist:6111200
Sublime Text 3 - Useful Shortcuts (Windows)

Sublime Text 3 - Useful Shortcuts (Windows)

General

Shortcut Description
Ctrl+Shift+P command prompt
Ctrl+Alt+P switch project
Ctrl+P go to file
Ctrl+G go to line
@hraban
hraban / pre-commit.md
Last active April 18, 2024 06:46
Prevent accidentally committing debug code in Git
@fionawhim
fionawhim / unlock.scpt
Created May 31, 2012 20:31
Unlock screensaver via AppleScript in Lion
tell application "System Events"
if name of every process contains "ScreenSaverEngine" then
tell application "ScreenSaverEngine"
quit
end tell
keystroke <YOUR PASSWORD HERE>
keystroke return
end if
end tell