Skip to content

Instantly share code, notes, and snippets.

@sgur
Created September 6, 2013 09:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgur/6461490 to your computer and use it in GitHub Desktop.
Save sgur/6461490 to your computer and use it in GitHub Desktop.
_vsvimrc
" indent
set vsvim_useeditordefaults
" Options
set backspace=start
set clipboard=unnamed
set ignorecase
set incsearch
set hlsearch
set visualbell
nnoremap <Space> :
inoremap <S-Space> <ESC>
cnoremap <S-Space> <ESC>
" Jump
nnoremap <C-O> :vsc View.NavigateBackward<CR>
nnoremap <C-I> :vsc View.NavigateForward<CR>
" Definition
nnoremap <C-]> :vsc Edit.GoToDefinition<CR>
nnoremap <C-t> :vsc View.NavigateBackward<CR>
" Comment out
nnoremap gc :vsc Edit.CommentSelection<CR>
vnoremap gc :vsc Edit.CommentSelection<CR>
" Surround
vnoremap S :vsc Edit.SurroundWith<CR>
" Intelisense
inoremap <C-Space> <C-o>:vsc Edit.ListMembers<CR>
" Remap
nnoremap Y y$
nmap <ESC> :nohlsearch<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment