updated vimrc

This commit is contained in:
Adrien Luxey 2019-02-07 12:29:56 +01:00
parent e1dadcbbd6
commit a3b9696a63
2 changed files with 11 additions and 3 deletions

8
.vimrc
View File

@ -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

View File

@ -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