Many terminals let you just use ctrl+shift+c
and ctrl+shift+v
as copy and paste (gterm/konsole/xterm, for example...)
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'
I think the correct syntax for this function declaration should be function gsq()
You want to get only the first parameter anyway...
@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.
Most vim users I know use
:x
to save and quit...