some nice shortcuts for vim / signify vs. gitgutter

+ aliases
+ brew / imagemagick
main
Steffen Rademacker 11 years ago
parent 1d39a24008
commit b334295664

@ -57,12 +57,6 @@ alias t='tmux -u -2'
alias ta='tmux attach'
# random usefull stuff
alias dnsflush='sudo dscacheutil -flushcache'
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
alias psa="ps aux"
# all in one homebrew, gem update commands
alias brewup='brew update && brew upgrade && brew cleanup && brew linkapps'
alias gemup='gem update --system && gem update && gem cleanup'
@ -93,3 +87,18 @@ alias rep='cd ~/Repositories && ls -al'
alias dot='cd ~/Dotfiles && ls -al'
# random usefull stuff
alias dnsflush='sudo dscacheutil -flushcache'
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
alias psa="ps aux"
# imagemagick downsampling shortcuts (c&p retina folder, run, done!)
# http://www.imagemagick.org/Usage/filter/nicolas/#downsample
alias png25='find . -name "*.png" | xargs mogrify -colorspace RGB -filter LanczosRadius -distort Resize 25% -colorspace sRGB'
alias jpg25='find . -name "*.jpg" | xargs mogrify -colorspace RGB -filter LanczosRadius -distort Resize 25% -colorspace sRGB'
alias png50='find . -name "*.png" | xargs mogrify -colorspace RGB -filter LanczosRadius -distort Resize 50% -colorspace sRGB'
alias jpg50='find . -name "*.jpg" | xargs mogrify -colorspace RGB -filter LanczosRadius -distort Resize 50% -colorspace sRGB'

@ -8,6 +8,7 @@ brew install curl
brew install ghostscript
brew install git-flow
brew install httpd
brew install imagemagick
brew install macvim
brew install markdown
brew install mcrypt

16
vimrc

@ -14,7 +14,6 @@ Bundle 'gmarik/vundle'
" plugins
Bundle 'Raimondi/delimitMate'
Bundle 'SirVer/ultisnips'
Bundle 'airblade/vim-gitgutter'
Bundle 'bling/vim-airline'
Bundle 'chrisbra/NrrwRgn'
Bundle 'editorconfig/editorconfig-vim'
@ -27,6 +26,7 @@ Bundle 'kshenoy/vim-signature'
Bundle 'mattn/gist-vim'
Bundle 'mattn/webapi-vim'
Bundle 'mbbill/undotree'
Bundle 'mhinz/vim-signify'
Bundle 'rizzatti/dash.vim'
Bundle 'rizzatti/funcoo.vim'
Bundle 'rking/ag.vim'
@ -43,7 +43,6 @@ Bundle 'tpope/vim-unimpaired'
" Additional syntaxes
" Bundle '2072/PHP-Indenting-for-VIm'
Bundle 'beyondwords/vim-twig'
Bundle 'elzr/vim-json'
Bundle 'hail2u/vim-css3-syntax'
@ -76,6 +75,9 @@ set relativenumber " relative line numbers are mothereffin awesome -- see how fa
set nowrap " dont wrap lines around
set sidescroll=10 " smoother side-scrolling
set sidescrolloff=5
set scrolljump=5 " Lines to scroll when cursor leaves screen
set scrolloff=3 " Minimum lines to keep above and below cursor
set lazyredraw " Don't redraw while executing macros
@ -126,6 +128,7 @@ set background=dark
colorscheme solarized
let g:solarized_termtrans = 1
let g:solarized_contrast = 'high'
" minor optical fix vor vim-gitgutter / syntastic / vim-signature
highlight SignColumn ctermbg=8
@ -297,6 +300,15 @@ nnoremap <leader>c :execute "vimgrep /" . expand("<cword>") . "/j **" <Bar> cnex
" short command to strip trainling whitepsace
nnoremap <leader>s ms:%s/\s\+$//e<cr>:noh<cr>`s
" Find merge conflict markers
map <leader>fc /\v^[<\|=>]{7}( .*\|$)<CR>
" For when you forget to sudo.. Really Write the file.
cmap w!! w !sudo tee % >/dev/null
" Map <Leader>ff to display all lines with keyword under cursor and ask which one to jump to
nmap <Leader>j [I:let nr = input("Which one: ")<Bar>exe "normal " . nr ."[\t"<CR>
" Plugins
" ======================================================================
"

Loading…
Cancel
Save