open command, vim toggle paste and numbers, etc..
This commit is contained in:
@@ -18,6 +18,9 @@ alias dvim="GIT_WORK_TREE='/home/kuba' GIT_DIR='/home/kuba/.dotfiles.git/' vim"
|
|||||||
|
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
|
|
||||||
|
# Define a OS X-like open command
|
||||||
|
open() { command xdg-open "$@" > /dev/null 2>&1 & }
|
||||||
|
|
||||||
# Source git prompt
|
# Source git prompt
|
||||||
source_existing ~/scripts/git-prompt.sh
|
source_existing ~/scripts/git-prompt.sh
|
||||||
source_existing ~/.bash_prompt.kuba
|
source_existing ~/.bash_prompt.kuba
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ Host geym
|
|||||||
|
|
||||||
Host kubaServer
|
Host kubaServer
|
||||||
HostName 192.168.0.102
|
HostName 192.168.0.102
|
||||||
User pi
|
User ubuntu
|
||||||
Port 22
|
Port 22
|
||||||
|
|
||||||
Host vera
|
Host vera
|
||||||
|
|||||||
6
.vimrc
6
.vimrc
@@ -289,6 +289,12 @@ nmap <S-k> <c-y>
|
|||||||
vmap <S-j> <c-e>
|
vmap <S-j> <c-e>
|
||||||
vmap <S-k> <c-y>
|
vmap <S-k> <c-y>
|
||||||
|
|
||||||
|
" Toggle line numbers
|
||||||
|
nmap <Leader>1 :set number!<CR>:set relativenumber!<CR>
|
||||||
|
|
||||||
|
" Toggle paste mode
|
||||||
|
nmap <Leader>p :set paste! <CR>
|
||||||
|
|
||||||
" Misc.
|
" Misc.
|
||||||
map <Leader>n :noh<CR>
|
map <Leader>n :noh<CR>
|
||||||
vmap <Leader>T :'<,'> Tabularize /
|
vmap <Leader>T :'<,'> Tabularize /
|
||||||
|
|||||||
Reference in New Issue
Block a user