LoginSignup
0
0

自分用Mac設定一覧

Last updated at Posted at 2023-09-01

Macに入っていると便利な設定等。
環境以降する時に参照する。

tmux

# prefixキーをC-aに変更する
set -g prefix 'C-q'

# C-bのキーバインドを解除する
unbind C-b 

# Vimのキーバインドでペインを移動する
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
bind | split-window -h
bind - split-window -v

#
# 外観
#
#
set-option -g default-terminal screen-256color

# ステータスバーの色を設定する
set -g status-fg white
set -g status-bg black

# 設定ファイルをリロードする
bind r source-file ~/.tmux.conf \; display "reload config..."

# 下記の設定をしておいたほうがEscの効きがいいらしい
set -s escape-time 0

set -g terminal-overrides 'xterm:colors=256'
set -g default-terminal xterm

vim

:syntax on
:set shiftwidth=2
:set autoindent
:set backspace=indent,eol,start
:set expandtab
:set tabstop=2

:set number
:set ruler
:set title
:set virtualedit=onemore

:set nobackup
:set noswapfile
:set showmatch
:set clipboard=unnamed

:set ignorecase
:set smartcase
:set incsearch
:set wrapscan
:set hlsearch
nnoremap s <C-w>
nnoremap <S-h> ^
nnoremap <S-l> $
nnoremap <C-n> gt
nnoremap <C-p> gT

noremap!  

" netrwは常にtree view
let g:netrw_liststyle = 3

その他アプリケーション

  • Spectacle
    • Shift+Ctrl+h/k/lで画面を寄せられるように
    • Cmd+Shift+Ctrl+h/lで画面移動ができるように
  • Karabinar
    • Escで半角入力
  • Chrome Extension
    • Move Tab to Next Window: Shift+Ctrl+nでタブを次の画面に移動
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0