Skip to content
Snippets Groups Projects
Commit 971becf9 authored by Jordan's avatar Jordan
Browse files

Update dotfiles

Add branch alias and global .gitignore to gitcomfig.

Set tmux shell to zsh
Adjust prefix+M width based on vim nerdtree width

Add spellcheck for vim,
Add nerdtree to vimrc
parent e165eadb
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,10 @@
list = diff-tree --no-commit-id --name-only -r HEAD
s = status
d = diff
b = branch
[core]
editor = vim
excludesfile = ~/.gitignore
[push]
default = simple
[web]
......
......@@ -8,7 +8,10 @@ set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
set-option -g default-shell /bin/bash
set -g status-bg black
set -g status-fg white
set-option -g default-shell /bin/zsh
set -g mouse off
......@@ -30,7 +33,7 @@ set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
# prefix+m sets main-veritical layout
bind m set-window-option main-pane-width 103\; select-layout main-vertical
bind m set-window-option main-pane-width 132\; select-layout main-vertical
#-------------------------------------------------------------------------------
set -g @plugin 'tmux-plugins/tpm'
......
......@@ -32,3 +32,12 @@ set colorcolumn=101
" Ctrl-C does not trigger abbreviations when exiting insert mode, but Esc does.
vnoremap <C-c> <Esc>
" spellcheck for md and gitcommit
autocmd FileType markdown setlocal spell
autocmd FileType gitcommit setlocal spell
" Start NERDTree when Vim is started without file arguments.
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment