Skip to content

Latest commit

 

History

270 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles 🛠

Vim

Overview

  1. Installs Brew
  2. Fixes "Home" and "End" buttons for macOS
  3. Installs and configures Vim, Neovim, iTerm2 and git
  4. fn + i for iTerm2 and fn + t for Telegram

Set System Preferences

Mission Control

  1. Uncheck Automatically rearrange Spaces based on most recent use
  2. Disable Hot Corners
  3. Unset Show Desktop shortcut for F11 to work with VSCode

Keyboard

  1. Remap CapsLock to Escape System Preferences -> Keyboard -> Modifier Keys
  2. Set Input Sources to Kazakh and ABC - Extended
  3. In Keyboard -> Text turn off Use smart quotes and dashes and set the values to normal out of superstition

Monitor

  1. Turn OFF Font smoothing in System Preferences -> General
  2. For Big Sur+:
defaults -currentHost write -g AppleFontSmoothing -int 0
  1. In System Preferences -> Display set Resolution: Scaled and select the middle choice

Source

Fonts

  1. Hermit
  2. Cascadia Code
  3. Martian Mono

Brew

  1. Use brew bundle dump to create a dumpfile with all of the currently installed brew packages (add --force if the file exists)
  2. Use brew bundle to install all of the packages in the Brewfile
  3. Tips & Tricks

Install

Single entry point for both macOS and Codespaces ./install.sh

  • macOS: installs Homebrew if missing, runs brew bundle, stows ghostty git zsh vim nvim misc.
  • Linux: apt-get installs the Vim toolchain, stows git vim.

Both paths clone the Vim plugin set into ~/.vim/pack; coc.nvim is fetched from its release branch so it loads without a build step. Open Vim once after bootstrap to let coc.nvim install its configured extensions.

Vim

How to update Vim?

git clone https://github.com/vim/vim.git
cd vim/src
make
sudo make install
# Create a symbolic link for `vi`
sudo ln -s /usr/local/bin/vim /usr/local/bin/vi

Vim Tricks

  • Ignore sudo protection while saving
:w !sudo tee %
  • Output external command's result in Vim
:.! date
  • Command history
q:
  • Open a URL (note the slash at the end)
vim https://stackoverflow.com/

Profiling

:profile start profile.log
:profile func *
:profile file *
" At this point do slow actions
:profile pause
:noautocmd qall!

[Source](https://stackoverflow.com/a/12216578)

About

My dotfiles 🛠

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages