2 Commits 42b1a11639 ... b1e03ad15a

Author SHA1 Message Date
  Daniel Sheffield b1e03ad15a add copilot.vim plugin 1 day ago
  Daniel Sheffield cf9906104e add Dos2Unix normal mode command and OmniSharp global code check command 1 day ago
1 changed files with 7 additions and 0 deletions
  1. 7 0
      vim/vimfiles/vimrc

+ 7 - 0
vim/vimfiles/vimrc

@@ -11,6 +11,8 @@ filetype indent plugin on
 " Plugins {{{
 call plug#begin()
 
+Plug 'github/copilot.vim'      " do: Copilot setup
+
 Plug 'OmniSharp/omnisharp-vim' " After :PlugInstall do :OmnisharpInstall
 
 Plug 'dense-analysis/ale'
@@ -98,6 +100,10 @@ scriptencoding utf-8
 " Insert date
 nnoremap <LEADER>gid :read !date +\%Y-\%m-\%d<CR>kJ
 
+" Dos2Unix
+nnoremap <LEADER>d2u :%s/<C-M>//g
+
+
 " Copy Pasta {{{
 
 " Registers
@@ -202,6 +208,7 @@ augroup omnisharp_commands
   autocmd FileType cs nmap <silent> <buffer> <Leader>R <Plug>(omnisharp_rename)
   autocmd FileType cs nmap <silent> <buffer> <Leader>T <Plug>(omnisharp_run_tests_in_file)
   autocmd FileType cs nmap <silent> <buffer> <Leader>t <Plug>(omnisharp_run_test)
+  autocmd FileType cs nmap <silent> <buffer> <Leader>A <Plug>(omnisharp_global_code_check)
 
   " Other settings (currently unused) {{{
   " autocmd FileType cs nmap <silent> <buffer> <Leader>ost <Plug>(omnisharp_type_lookup)