Last active
August 22, 2023 05:51
-
-
Save dapngn/6254178 to your computer and use it in GitHub Desktop.
VsVim settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" -------------------------------------------------- | |
" VsVim Options | |
" -------------------------------------------------- | |
" let VsVim handle ctrl-[ | |
" let VsVim handle ctrl-] | |
" let VsVim handle ctrl-I | |
" let VsVim handle ctrl-O | |
" -------------------------------------------------- | |
" VisualStudio Settings | |
" -------------------------------------------------- | |
" VisualStudio TOOLS => OPTIONS => KEYBOARD | |
" -------------------------------------------------- | |
" .vsvimrc | |
" -------------------------------------------------- | |
" VisualStudio default editor settings | |
" Lang tabstop indent expandtab | |
" C# 4 4 true | |
" CSS 4 4 true | |
" F# 4 4 true | |
" HTML 4 4 true | |
" JS 4 4 true | |
" C++ 4 4 false | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
let mapleader = "," | |
set number | |
nmap ; : | |
nmap <C-]> :vsc Edit.GoToDefinition<CR> | |
nmap <C-O> :vsc View.NavigateBackward<CR> | |
nmap <C-I> :vsc View.NavigateForward<CR> | |
" Build and debug | |
nmap <leader>b :vsc Build.BuildSolution<CR> | |
nmap <leader>d :vsc Debug.Start<CR> | |
nmap <leader>ds :vsc Debug.StopDebugging<CR> | |
nmap <leader>r :vsc Debug.StartWithoutDebugging<CR> | |
nmap <leader>bb :vsc Debug.ToggleBreakpoint<CR> | |
nmap <leader>j :vsc Debug.StepOver<CR> | |
nmap <leader>i :vsc Debug.StepInto<CR> | |
nmap <leader>o :vsc Debug.StepOut<CR> | |
nmap <leader>g :vsc Debug.RunToCursor<CR> | |
" Navigation and convenience | |
nmap <leader>q :vsc File.SaveAll<CR>:vsc File.Exit<CR> | |
"nmap <leader>h :vsc Window.PreviousTab<CR> | |
"nmap <leader>l :vsc Window.NextTab<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cool