diff options
| -rw-r--r-- | .vimrc | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 <F8> :<C-u>call gitblame#echo()<CR> + " Ctrl+c, Ctrl+v, Ctrl+z, Ctrl+a and Ctrl+s bindings " Partly taken from: https://gist.github.com/jshih/3423345 vmap <C-c> "+yi<Esc> @@ -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 <silent> <buffer> gd : OmniSharpGotoDefinition<CR> autocmd Filetype cs nmap <silent> <buffer> gy : OmniSharpTypeLookup<CR> autocmd Filetype cs nmap <silent> <buffer> gi : OmniSharpFindImplementations<CR> -autocmd Filetype cd nmap <silent> <buffer> gr : OmniSharpFindUsages<CR> +autocmd Filetype cs nmap <silent> <buffer> gr : OmniSharpFindUsages<CR> autocmd FileType cs nmap <silent> <buffer> <F2> : OmniSharpRename<CR> autocmd FileType cs nmap <silent> <buffer> ff : OmniSharpCodeFormat<CR> autocmd FileType cs nmap <silent> <buffer> fu : OmniSharpFixUsings<CR> @@ -494,4 +499,3 @@ nnoremap <silent><nowait> <space>k :<C-u>CocPrev<CR> " Resume latest coc list. nnoremap <silent><nowait> <space>p :<C-u>CocListResume<CR> - |
