diff --git a/.vimrc b/.vimrc index 326a22e..82ad546 100644 --- a/.vimrc +++ b/.vimrc @@ -8,3 +8,11 @@ noremap set nobackup set noswapfile set noundofile + +" Line numbering (hybrid: relative and absolute) +set number relativenumber +augroup numbertoggle + autocmd! + autocmd BufEnter,FocusGained,InsertLeave * set relativenumber + autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber +augroup END diff --git a/sync.sh b/sync.sh index 39d3a42..31fe00a 100755 --- a/sync.sh +++ b/sync.sh @@ -6,13 +6,13 @@ # cd to this file's directory cd "$(dirname "${BASH_SOURCE}")"; -#git pull origin master +git pull origin master # Get dotfiles (and dot directories) in current directory dotfiles=$(find . -maxdepth 1 -regex "\./\..+" -printf "%f\n") -function doIt() { +function syncDotfiles() { ln -s $dotfiles ~ } -doIt +syncDotfiles