add: magit and vim leader
This commit is contained in:
parent
ee6a8ea389
commit
2357860ff6
2 changed files with 7 additions and 2 deletions
|
@ -21,6 +21,7 @@ alias ls='ls -Flh --color=never'
|
|||
|
||||
alias lsblk='lsblk -o +PARTLABEL -o +FSTYPE'
|
||||
|
||||
alias magit='vim -c MagitOnly'
|
||||
alias make='make --no-print-directory'
|
||||
alias md5='ms5'
|
||||
alias md5sum-dir='function _md5sum-dir(){ find $1 -type f -exec md5sum {} \; | md5sum; }; _md5sum-dir'
|
||||
|
|
|
@ -3,6 +3,8 @@ set viminfo+=n~/.cache/viminfo
|
|||
|
||||
set number relativenumber
|
||||
|
||||
let mapleader = " "
|
||||
|
||||
augroup numbertoggle
|
||||
autocmd!
|
||||
autocmd WinEnter * set relativenumber
|
||||
|
@ -45,10 +47,12 @@ call plug#begin('~/.config/vim/plugged')
|
|||
Plug 'sersorrel/vim-lilypond'
|
||||
Plug 'vim-scripts/DoxygenToolkit.vim'
|
||||
Plug 'drmikehenry/vim-headerguard'
|
||||
Plug 'jreybert/vimagit'
|
||||
call plug#end()
|
||||
|
||||
" Nerd Tree Configuration
|
||||
map <C-n> :NERDTreeToggle<CR>
|
||||
map <leader>m :Magit<CR>
|
||||
map <leader>n :NERDTreeToggle<CR>
|
||||
|
||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||
|
||||
set laststatus=2
|
||||
|
|
Loading…
Reference in a new issue