wip
This commit is contained in:
parent
893e98578c
commit
7c72da11c3
1 changed files with 41 additions and 2 deletions
43
.vimrc
43
.vimrc
|
@ -1,5 +1,29 @@
|
|||
" vim statusline - kein plugin
|
||||
" https://shapeshed.com/vim-statuslines/
|
||||
function! GitBranch()
|
||||
return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
|
||||
endfunction
|
||||
|
||||
function! StatuslineGit()
|
||||
let l:branchname = GitBranch()
|
||||
return strlen(l:branchname) > 0?' '.l:branchname.' ':''
|
||||
endfunction
|
||||
|
||||
set statusline=
|
||||
set statusline+=%#PmenuSel#
|
||||
set statusline+=%{StatuslineGit()}
|
||||
set statusline+=%#LineNr#
|
||||
set statusline+=\ %f
|
||||
set statusline+=%m\
|
||||
set statusline+=%=
|
||||
set statusline+=%#CursorColumn#
|
||||
set statusline+=\ %y
|
||||
set statusline+=\ %{&fileencoding?&fileencoding:&encoding}
|
||||
set statusline+=\[%{&fileformat}\]
|
||||
set statusline+=\ %p%%
|
||||
set statusline+=\ %l:%c
|
||||
set statusline+=\
|
||||
" Vundle
|
||||
" dfgsdfgsdfgfgd
|
||||
set nocompatible
|
||||
filetype off
|
||||
" Set the runtime path to include Vundle and initialize
|
||||
|
@ -18,7 +42,7 @@ Plugin 'ctrlpvim/ctrlp.vim'
|
|||
Plugin 'lifepillar/vim-solarized8'
|
||||
Plugin 'Yggdroot/indentLine'
|
||||
Plugin 'tpope/vim-fugitive'
|
||||
Plugin 'ryanoasis/vim-devicons'
|
||||
"Plugin 'ryanoasis/vim-devicons'
|
||||
Plugin 'jiangmiao/auto-pairs'
|
||||
Plugin 'preservim/nerdtree'
|
||||
Plugin 'unkiwii/vim-nerdtree-sync'
|
||||
|
@ -55,6 +79,21 @@ autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTr
|
|||
nmap <C-t> :tabnew<CR>:NERDTreeFind<CR>
|
||||
" erstellt neuen tab und öffnet den open-dialog
|
||||
"
|
||||
" nerdtree-git-plugin
|
||||
let g:NERDTreeGitStatusIndicatorMapCustom = {
|
||||
\ 'Modified' :'*',
|
||||
\ 'Staged' :'+',
|
||||
\ 'Untracked' :'',
|
||||
\ 'Renamed' :'*',
|
||||
\ 'Unmerged' :'',
|
||||
\ 'Deleted' :'-',
|
||||
\ 'Dirty' :'',
|
||||
\ 'Ignored' :'',
|
||||
\ 'Clean' :'',
|
||||
\ 'Unknown' :'?',
|
||||
\ }
|
||||
"
|
||||
"
|
||||
" indentLine
|
||||
" fügt vertikale Striche bei Einrückungen ein
|
||||
filetype plugin indent on
|
||||
|
|
Loading…
Reference in a new issue