Updates to vimrc

This commit is contained in:
fedora 2019-04-12 20:35:24 +02:00
parent aaa48ecddf
commit eccf8bfd13
Signed by: wanderer
GPG Key ID: 7B28D8DC28BD2388

12
vimrc

@ -1,5 +1,4 @@
set nocompatible set nocompatible
filetype off "required filetype off "required
@ -116,7 +115,7 @@ set backspace=2
set nolist " show/hide tabs and EOL chars set nolist " show/hide tabs and EOL chars
set nonumber " show/hide line numbers (nu/nonu) set nonumber " show/hide line numbers (nu/nonu)
set scrolloff=5 " scroll offsett, min lines above/below cursor set scrolloff=5 " scroll offsett, min lines above/below cursor
set scrolljump=5 " jump 5 lines when running out of the screen "set scrolljump=5 " jump 5 lines when running out of the screen
set sidescroll=10 " minumum columns to scroll horizontally set sidescroll=10 " minumum columns to scroll horizontally
set showcmd " show command status set showcmd " show command status
set showmatch " flashes matching paren when one is typed set showmatch " flashes matching paren when one is typed
@ -126,12 +125,19 @@ set ruler " show cursor position
set nofen set nofen
set foldmethod=indent " indent based folding set foldmethod=indent " indent based folding
set noerrorbells " no bells in terminal set errorbells " no bells in terminal
set undolevels=1000 " number of undos stored set undolevels=1000 " number of undos stored
set viminfo='50,"50 " '=marks for x files, "=registers for x files set viminfo='50,"50 " '=marks for x files, "=registers for x files
au BufNewFile,BufRead *.py,*.pyw,*.c,*.h,*.pyx,%akefil* match BadWhitespace /\s\+$/ |
\ setlocal tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab autoindent
\ textwidth=79 fileformat=unix
set encoding=utf-8
:vmap gb :<C-U>!git blame % -L<C-R>=line("'<") <CR>,<C-R>=line("'>") <CR><CR> :vmap gb :<C-U>!git blame % -L<C-R>=line("'<") <CR>,<C-R>=line("'>") <CR><CR>
:nmap gb :!git blame %<CR> :nmap gb :!git blame %<CR>