mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 11:24:55 +02:00
Adding vim stuff
This commit is contained in:
parent
b77ac31173
commit
81d5cc35ce
11 changed files with 3006 additions and 0 deletions
6
nvim/git.vim
Normal file
6
nvim/git.vim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
function! GitStatus()
|
||||
let l:branchname = system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
|
||||
return strlen(l:branchname) > 0?'branch:'.l:branchname.' ':''
|
||||
endfunction
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue