diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-01-14 15:55:34 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-01-14 15:55:34 +0200 |
| commit | 60a243d1adf895df9d2e2f55e8e75cfe10e7f27f (patch) | |
| tree | 03f14370e49774fa4f0096cc569524d7fe3646be /.vimrc | |
| parent | 6835cb9b4a7a45cf388c7d78af717f0f43e40e75 (diff) | |
| download | dotfiles-60a243d1adf895df9d2e2f55e8e75cfe10e7f27f.tar dotfiles-60a243d1adf895df9d2e2f55e8e75cfe10e7f27f.tar.gz dotfiles-60a243d1adf895df9d2e2f55e8e75cfe10e7f27f.zip | |
Improved vimrc: added the git-blame plugin, added some tab spacing configuration for css and ts, fixed an omnisharp mapping
Diffstat (limited to '.vimrc')
| -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> - |
