bashrc: Add dvim alias, vim where dotfiles are recognized as git repository

vimrc: Add bindings
This commit is contained in:
kuben
2019-09-20 20:41:09 +02:00
parent 9bc8bad629
commit a9bc5c5228
2 changed files with 3 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ export PATH=$PATH:/home/kuba/bin
export PATH="$HOME/git/esp-open-sdk/xtensa-lx106-elf/bin/:$PATH" export PATH="$HOME/git/esp-open-sdk/xtensa-lx106-elf/bin/:$PATH"
alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles.git --work-tree=$HOME" alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles.git --work-tree=$HOME"
alias dvim="GIT_WORK_TREE='/home/kuba' GIT_DIR='/home/kuba/.dotfiles.git/' vim"
if xhost >& /dev/null ; then if xhost >& /dev/null ; then
# X is running # X is running

2
.vimrc
View File

@@ -160,4 +160,6 @@ vmap <S-j> <c-e>
vmap <S-k> <c-y> vmap <S-k> <c-y>
" Misc. " Misc.
map <Leader>n :noh<CR>
vmap <Leader>T :'<,'> Tabularize / vmap <Leader>T :'<,'> Tabularize /
noremap <space> :