open command, vim toggle paste and numbers, etc..

This commit is contained in:
2020-08-21 10:59:00 +02:00
parent a9f4901e25
commit 79cae3e93b
3 changed files with 10 additions and 1 deletions

View File

@@ -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

View File

@@ -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
View File

@@ -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 /