Definition and doc for default settings
This commit is contained in:
parent
842579d28d
commit
e9890f3830
@ -36,9 +36,7 @@ git reset --hard
|
|||||||
|
|
||||||
### OSX Defaults
|
### OSX Defaults
|
||||||
```
|
```
|
||||||
defaults write http://com.apple .screencapture location ~/Downloads
|
./.macos
|
||||||
#defaults write com.apple.PowerChime ChimeOnNoHardware -bool true # still KO after closing lid
|
|
||||||
#killall PowerChime
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Install NPM dependencies
|
### Install NPM dependencies
|
||||||
|
15
dot_macos
Normal file
15
dot_macos
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Save screenshots to the ~/Downloads folder
|
||||||
|
defaults write http://com.apple.screencapture location ~/Downloads
|
||||||
|
# Finder: show hidden files by default
|
||||||
|
#defaults write com.apple.finder AppleShowAllFiles -bool true
|
||||||
|
# Finder: show all filename extensions
|
||||||
|
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
|
||||||
|
# Finder: show path bar
|
||||||
|
defaults write com.apple.finder ShowPathbar -bool true
|
||||||
|
#defaults write com.apple.PowerChime ChimeOnNoHardware -bool true # still KO after closing lid
|
||||||
|
#killall PowerChime
|
||||||
|
|
||||||
|
# Avoid creating .DS_Store files on network or USB volumes
|
||||||
|
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
|
||||||
|
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
|
34
dot_vimrc
34
dot_vimrc
@ -1,10 +1,44 @@
|
|||||||
|
" Enable syntax highlighting
|
||||||
syntax on
|
syntax on
|
||||||
|
" Enable line numbers
|
||||||
set number
|
set number
|
||||||
|
" Enable desert theme
|
||||||
colorscheme desert
|
colorscheme desert
|
||||||
|
" Always show status line
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
|
|
||||||
|
" Highlight unwanted spaces :
|
||||||
|
" 1. highlight trailing whitespace in red
|
||||||
|
" 2. have this highlighting not appear whilst you are typing in insert mode
|
||||||
|
" 3. have the highlighting of whitespace apply when you open new buffers
|
||||||
highlight ExtraWhitespace ctermbg=red guibg=red
|
highlight ExtraWhitespace ctermbg=red guibg=red
|
||||||
match ExtraWhitespace /\s\+$/
|
match ExtraWhitespace /\s\+$/
|
||||||
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
|
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
|
||||||
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
|
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
|
||||||
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
|
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
|
||||||
autocmd BufWinLeave * call clearmatches()
|
autocmd BufWinLeave * call clearmatches()
|
||||||
|
|
||||||
|
" Don’t create backups when editing files in certain directories
|
||||||
|
set backupskip=/tmp/*,/private/tmp/*
|
||||||
|
" Ignore case of searches
|
||||||
|
set ignorecase
|
||||||
|
" Highlight current line
|
||||||
|
set cursorline
|
||||||
|
" Highlight dynamically as pattern is typed
|
||||||
|
set incsearch
|
||||||
|
" Highlight searches
|
||||||
|
set hlsearch
|
||||||
|
" Disable error bells
|
||||||
|
set noerrorbells
|
||||||
|
" Enable mouse in all modes
|
||||||
|
set mouse=a
|
||||||
|
" Don’t show the intro message when starting Vim
|
||||||
|
set shortmess=atI
|
||||||
|
" Show the filename in the window titlebar
|
||||||
|
set title
|
||||||
|
" Start scrolling three lines before the horizontal window border
|
||||||
|
set scrolloff=3
|
||||||
|
|
||||||
|
" Default colors for highlighting search result
|
||||||
|
hi Search ctermfg=White
|
||||||
|
hi Search ctermbg=DarkMagenta
|
||||||
|
Loading…
Reference in New Issue
Block a user