Browse Source

add Dos2Unix normal mode command and OmniSharp global code check command

Daniel Sheffield 1 day ago
parent
commit
cf9906104e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      vim/vimfiles/vimrc

+ 5 - 0
vim/vimfiles/vimrc

@@ -98,6 +98,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 +206,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)