Joined December 2013
·

Lorenzo Novaro

Project Coordinator at Cooperatives Europe
·
Brussels, Belgium
·
·
·

Posted to Save and Quit Shortcut over 1 year ago

Most vim users I know use :x to save and quit...

Posted to Ctrl-c and ctrl-v in terminal over 1 year ago

Many terminals let you just use ctrl+shift+c and ctrl+shift+v as copy and paste (gterm/konsole/xterm, for example...)

Posted to increase and decrease number in vim over 1 year ago

Great tip! Thanks a lot :-)

My aliases are defined in bashrc:

alias gitlog="git log --color --graph --pretty=format:'%Cgreen[%Creset%h%Cgreen]%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias gittoday="git log --color --graph --pretty=format:'%Cgreen[%Creset%h%Cgreen]%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --since=yesterday"
alias commit='git commit'
alias gb='git branch -v'
alias gc='git commit -m'
alias gt='git commit -m "typo"'
alias ga='git add '
alias gd='git diff'
alias gr='git rm'
alias gs='git status'
alias gss='git status -s'
alias gpl='git pull origin'
alias gush='git push origin'
alias gco='git checkout'
alias amend='git commit --amend'
Posted to git squash commits over 1 year ago

I think the correct syntax for this function declaration should be function gsq()

You want to get only the first parameter anyway...

Posted to Open many files in vim tabs over 1 year ago

@milani splits are windows, so you can move betwen them using CTRL+w

Also, if you prefer vertical splits, use vim -O filename

This is not completely accurate: unnamed is the * register; in X11 systems (like Linux) '*' is the "mouse clipboard" (the one that let's you paste everything you highlight using the center button of your mouse on many Linux distributions), and '+' is the "proper clipboard" (the one mapped on CTRL+X, CTRL+C and CTRL+V).

To copy from vim to the '+' register you just have to use "+y (that's double quotes, a plus sign and y) and the yanked text will be added to your desktop's default clipboard on Linux.

Achievements
264 Karma
16,282 Total ProTip Views