vim: umsortiert
This commit is contained in:
parent
8d64ff691e
commit
cb847d65b5
1 changed files with 1 additions and 17 deletions
18
.vimrc
18
.vimrc
|
@ -135,21 +135,5 @@ nmap <C-g> :tab G
|
||||||
" markiere text im visual mode; suche dann danach mit // im visual-mode
|
" markiere text im visual mode; suche dann danach mit // im visual-mode
|
||||||
" https://vim.fandom.com/wiki/Search_for_visually_selected_text
|
" https://vim.fandom.com/wiki/Search_for_visually_selected_text
|
||||||
vnoremap // y/\V<C-R>=escape(@",'/\')<CR><CR>
|
vnoremap // y/\V<C-R>=escape(@",'/\')<CR><CR>
|
||||||
" https://shapeshed.com/vim-statuslines/
|
|
||||||
function! GitBranch()
|
|
||||||
return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
" ### lightline/statusline
|
|
||||||
" blende insert/visual/... in der commandline aus, steht in lightline
|
|
||||||
set noshowmode
|
|
||||||
set laststatus=2
|
|
||||||
let g:lightline = {
|
|
||||||
\ 'active': {
|
|
||||||
\ 'left': [ [ 'mode', 'paste' ],
|
|
||||||
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
|
|
||||||
\ },
|
|
||||||
\ 'component_function': {
|
|
||||||
\ 'gitbranch': 'FugitiveHead'
|
|
||||||
\ },
|
|
||||||
\ }
|
|
||||||
|
|
Loading…
Reference in a new issue