Skip to content

Instantly share code, notes, and snippets.

@artkpv
Created August 18, 2013 19:54
Show Gist options
  • Save artkpv/6263655 to your computer and use it in GitHub Desktop.
Save artkpv/6263655 to your computer and use it in GitHub Desktop.
Viemu settings for Visual Studio 2012 and Resharper 7 under Visual C# 2005 keyboard scheme.
"
"Originally taken from
"https://github.com/StanislawSwierc/Profile/blob/master/_viemurc
"
" ViEmu has access to all keys except the following:
" <C-c>
" <C-v>
"
" Restore some keyboard shortcuts from scheme "C# 2005"
noremap <C-f> :vsc Edit.Find <return>
" Comments
" Does not WORK:
noremap <C-/> ReSharper.ReSharper_LineComment<CR>
noremap <A-/> ReSharper.ReSharper_BlockComment<CR>
" Formatting
" By default ViEmu supports formatting selection with '='
noremap == :vsc ReSharper_SilentCleanupCode<CR>
" Vim style navigation to the man page
noremap K :vsc ReSharper.ReSharper_QuickDoc<return>
"-------------------------------------------------------------------------------
" Resharper test explorer
"-------------------------------------------------------------------------------
noremap ,tt :vsc ReSharper.ReSharper_UnitTest_DebugCurrentSession<CR>
noremap ,tT :vsc ReSharper.ReSharper_UnitTest_RunCurrentSession<CR>
noremap ,tr :vsc ReSharper.ReSharper_ReSharper_UnitTest_RunContext<CR>
noremap ,td :vsc ReSharper.ReSharper_ReSharper_UnitTest_DebugContext<CR>
noremap ,tp :vsc ReSharper.ReSharper_UnitTestSession_RepeatPreviousRun<CR>
map <C-t> gS:vsc ReSharper.ReSharper_GotoType<CR>
map <F2> gS:vsc ReSharper.ReSharper_Rename<CR>
noremap ,rt :vsc ReSharper.ReSharper_RefactorThis <return>
noremap ,rr :vsc ReSharper.ReSharper_Rename <return>
noremap ,rf :vsc ReSharper.ReSharper_IntroduceField <return>
noremap ,re :vsc ReSharper.ReSharper_EncapsulateField <return>
noremap ,ri :vsc ReSharper_VSRefactor_ExtractInterface <return>
noremap ,rm :vsc ReSharper.ReSharper_ExtractMethod <return>
noremap `0 :vsc ReSharper_Bookmarks_GoToBookmark0 <return>
noremap `1 :vsc ReSharper_Bookmarks_GoToBookmark1 <return>
noremap `2 :vsc ReSharper_Bookmarks_GoToBookmark2 <return>
noremap `3 :vsc ReSharper_Bookmarks_GoToBookmark3 <return>
noremap `4 :vsc ReSharper_Bookmarks_GoToBookmark4 <return>
noremap `5 :vsc ReSharper_Bookmarks_GoToBookmark5 <return>
noremap `6 :vsc ReSharper_Bookmarks_GoToBookmark6 <return>
noremap `7 :vsc ReSharper_Bookmarks_GoToBookmark7 <return>
noremap `8 :vsc ReSharper_Bookmarks_GoToBookmark8 <return>
noremap `9 :vsc ReSharper_Bookmarks_GoToBookmark9 <return>
noremap <C-m><C-m> :vsc ReSharper.ReSharper_Bookmarks_BookmarksMenu <return>
noremap <C-m><C-a> :vsc ReSharper.ReSharper_Bookmarks_ClearAll <return>
noremap <C-m><C-d> :vsc ReSharper.ReSharper_Bookmarks_ClearInDocument <return>
noremap gj :vsc ReSharper.ReSharper_GotoNextMethod <return>
noremap gk :vsc ReSharper.ReSharper_GotoPrevMethod <return>
noremap gb :vsc ReSharper.ReSharper_GotoBase <return>
noremap gD :vsc ReSharper.ReSharper_GotoContainingDeclaration <return>
noremap gd :vsc ReSharper.ReSharper_GotoDeclaration <return>
noremap gf :vsc ReSharper.ReSharper_GotoFile <return>
noremap gm :vsc ReSharper.ReSharper_GotoFileMember <return>
noremap gi :vsc ReSharper.ReSharper_GotoImplementation <return>
noremap gI :vsc ReSharper.ReSharper_GotoInheritors <return>
noremap ge :vsc ReSharper.ReSharper_GotoNextErrorInSolution <return>
noremap gE :vsc ReSharper.ReSharper_GotoPrevErrorInSolution <return>
noremap gt :vsc ReSharper.ReSharper_GotoType <return>
noremap gT :vsc ReSharper.ReSharper_GotoTypeDeclaration <return>
noremap gu :vsc ReSharper.ReSharper_GotoUsage <return>
noremap gr :vsc ReSharper.ReSharper_GotoRecentFiles <return>
noremap gR :vsc ReSharper.ReSharper_GotoRelatedFiles <return>
noremap gs :vsc ReSharper.ReSharper_GotoSymbol <return>
noremap gn :vsc ReSharper.ReSharper_GotoNextOccurence <return>
noremap gN :vsc ReSharper.ReSharper_GotoPreviousOccurence <return>
" <C-n> is used to swith to a new tab. I need to find a new shorcut
"noremap <C-n> :vsc ReSharper.ReSharper_GotoNextOccurence <return>
"noremap <C-N> :vsc ReSharper.ReSharper_GotoPreviousOccurence <return>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment