diff --git a/gitconfig b/gitconfig index d6911b5..5bbfddb 100644 --- a/gitconfig +++ b/gitconfig @@ -77,6 +77,9 @@ [merge] log = true +[pull] + rebase = false + [push] default = simple diff --git a/vimrc b/vimrc index cd31a36..58a7966 100644 --- a/vimrc +++ b/vimrc @@ -6,17 +6,6 @@ set history=700 " Set to auto read when a file is changed from the outside set autoread -" With a map leader it's possible to do extra key combinations -" like w saves the current file -let mapleader = "," -let g:mapleader = "," - -" Leader key timeout -set tm=2000 - -" Allow the normal use of "," by pressing it twice -noremap ,, , - " Use par for prettier line formatting set formatprg="PARINIT='rTbgqR B=.,?_A_a Q=_s>|' par\ -w72" @@ -40,13 +29,8 @@ Bundle 'gmarik/vundle' Bundle 'scrooloose/syntastic' " Other programming languages -"Bundle 'zepto-lang/zepto-vim' Bundle 'hellerve/carp-vim' Bundle 'junegunn/goyo.vim' -"Bundle 'tikhomirov/vim-glsl' -"Plugin 'rust-lang/rust.vim' -"Plugin 'isRuslan/vim-es6' -"Plugin 'JuliaEditorSupport/julia-vim' " Extra Plugin 'editorconfig/editorconfig-vim' @@ -111,9 +95,6 @@ if &term =~ '256color' set t_ut= endif -" Force redraw -map r :redraw! - " Default to mouse mode on set mouse=a " }}} @@ -140,9 +121,6 @@ set encoding=utf8 " Use Unix as the standard file type set ffs=unix,dos,mac -" Use large font by default in MacVim -set gfn=Monaco:h19 - " }}} " Files, backups and undo {{{ @@ -152,21 +130,6 @@ set nobackup set nowb set noswapfile -" Source the vimrc file after saving it -augroup sourcing - autocmd! - autocmd bufwritepost .vimrc source $MYVIMRC -augroup END - -" Open file prompt with current path -nmap e :e =expand("%:p:h") . '/' - -" Fuzzy find files -nnoremap :CtrlP -let g:ctrlp_max_files=0 -let g:ctrlp_show_hidden=1 -let g:ctrlp_custom_ignore = { 'dir': '\v[\/](.git)$' } - " }}} " Text, tab and indent related {{{ @@ -174,16 +137,16 @@ let g:ctrlp_custom_ignore = { 'dir': '\v[\/](.git)$' } " Use spaces instead of tabs set expandtab -" Be smart when using tabs ;) +" Be smart when using tabs set smarttab " 1 tab == 2 spaces set shiftwidth=2 set tabstop=2 -" Linebreak on 500 characters +" Linebreak on 80 characters set lbr -set tw=500 +set tw=80 set ai "Auto indent set si "Smart indent @@ -191,15 +154,6 @@ set wrap "Wrap lines " }}} -" Visual mode related {{{ - -" Visual mode pressing * or # searches for the current selection -" Super useful! From an idea by Michael Naumann -vnoremap * :call VisualSelection('f', '') -vnoremap # :call VisualSelection('b', '') - -" }}} - " Moving around, tabs, windows and buffers {{{ " Treat long lines as break lines (useful when moving around in them) @@ -222,9 +176,6 @@ augroup END " Remember info about open buffers on close set viminfo^=% -" don't close buffers when you aren't displaying them -set hidden - " }}} " Status line {{{ @@ -300,37 +251,6 @@ augroup END " }}} -" Helper functions {{{ - -function! CmdLine(str) - exe "menu Foo.Bar :" . a:str - emenu Foo.Bar - unmenu Foo -endfunction - -function! VisualSelection(direction, extra_filter) range - let l:saved_reg = @" - execute "normal! vgvy" - - let l:pattern = escape(@", '\\/.*$^~[]') - let l:pattern = substitute(l:pattern, "\n$", "", "") - - if a:direction == 'b' - execute "normal ?" . l:pattern . "^M" - elseif a:direction == 'gv' - call CmdLine("vimgrep " . '/'. l:pattern . '/' . ' **/*.' . a:extra_filter) - elseif a:direction == 'replace' - call CmdLine("%s" . '/'. l:pattern . '/') - elseif a:direction == 'f' - execute "normal /" . l:pattern . "^M" - endif - - let @/ = l:pattern - let @" = l:saved_reg -endfunction - -" }}} - let g:syntastic_carp_checkers = ['carp'] command Cr !carp -x % diff --git a/zshrc b/zshrc index 064cfca..7be555b 100644 --- a/zshrc +++ b/zshrc @@ -56,7 +56,7 @@ alias pip="pip3" alias setjdk="launchctl setenv STUDIO_JDK /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk" alias cdg="cd $GH_HOME" alias cdgo="cd ~/.go/src" -alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl" +alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv /private/var/log/asl/*.asl" alias loc="cloc --read-lang-def=/Users/veitheller/.scripts/cloc.txt" alias ls="ls -a" alias pbclear="echo -n '' | pbcopy"