From 60a243d1adf895df9d2e2f55e8e75cfe10e7f27f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 14 Jan 2021 15:55:34 +0200 Subject: Improved vimrc: added the git-blame plugin, added some tab spacing configuration for css and ts, fixed an omnisharp mapping --- .vimrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index fe2d120..eea39bc 100644 --- a/.vimrc +++ b/.vimrc @@ -28,6 +28,7 @@ Plug 'pseewald/vim-anyfold' " Better folding Plug 'editorconfig/editorconfig-vim' " Support for EditorConfig Plug 'tpope/vim-eunuch' " Easy UNIX shell commands Plug 'mg979/vim-visual-multi' " Multiple line cursor (and other stuff) +Plug 'zivyangll/git-blame.vim' """""""""""""""""""""""""""""""" @@ -53,6 +54,8 @@ if has("autocmd") au VimLeave * silent execute '!echo -ne "\e[ q"' | redraw! endif +nnoremap :call gitblame#echo() + " Ctrl+c, Ctrl+v, Ctrl+z, Ctrl+a and Ctrl+s bindings " Partly taken from: https://gist.github.com/jshih/3423345 vmap "+yi @@ -106,7 +109,9 @@ set mouse=a " Mouse support set tabstop=4 " Show tabs as 4 wide set shiftwidth=4 " Indent with 4 spaces " set expandtab " Convert tabs to spaces -autocmd Filetype css setlocal tabstop=2 " Show CSS tabs as 2 spaces +filetype plugin indent on +autocmd BufRead,BufNewFile *.component.css set filetype=css +autocmd FileType css,ts setlocal ts=2 sw=2 sts=0 expandtab " Show CSS tabs as 2 spaces " When you press F6 it will toggle a "spell check mode", " spell is activated and the colorscheme is changed @@ -328,7 +333,7 @@ let b:ale_linters = ['cs'] autocmd Filetype cs nmap gd : OmniSharpGotoDefinition autocmd Filetype cs nmap gy : OmniSharpTypeLookup autocmd Filetype cs nmap gi : OmniSharpFindImplementations -autocmd Filetype cd nmap gr : OmniSharpFindUsages +autocmd Filetype cs nmap gr : OmniSharpFindUsages autocmd FileType cs nmap : OmniSharpRename autocmd FileType cs nmap ff : OmniSharpCodeFormat autocmd FileType cs nmap fu : OmniSharpFixUsings @@ -494,4 +499,3 @@ nnoremap k :CocPrev " Resume latest coc list. nnoremap p :CocListResume - -- cgit v1.2.3