updated vimrc
This commit is contained in:
parent
e1dadcbbd6
commit
a3b9696a63
2 changed files with 11 additions and 3 deletions
8
.vimrc
8
.vimrc
|
@ -8,3 +8,11 @@ noremap <Right> <NOP>
|
|||
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
|
||||
|
|
6
sync.sh
6
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
|
||||
|
|
Loading…
Reference in a new issue