-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_vsvimrc
107 lines (83 loc) · 2.64 KB
/
_vsvimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
" Pathogen execution on startup
syntax on
filetype plugin indent on
filetype plugin on
" Allow nerdTree to modify
let mapleader = ","
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_fields = 1
let g:go_highlight_structs = 1
let g:go_highlight_interfaces = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
" Fix indentation to 2 spaces
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
set nu
set nocompatible
set backspace=2
set laststatus=2 " Always show the statusline
set encoding=utf-8 " Necessary to show Unicode glyphs
set t_Co=256 " Explicitly tell Vim that the terminal supports 256 colors
set splitbelow
set splitright
set foldmethod=indent
set foldlevel=99
set background=dark
color peachpuff
" Mapping
no <down> ddp
no <up> ddkP
no <left> gT
no <right> gt
noremap <space> za
" Window navigation
nmap <silent> <A-Up> :wincmd k<CR>
nmap <silent> <A-Down> :wincmd j<CR>
nmap <silent> <A-Left> :wincmd h<CR>
nmap <silent> <A-Right> :wincmd l<CR>
" CTRL-X is Cut
vnoremap <C-X> "+x
" CTRL-C is Copy
vnoremap <C-C> "+y
vnoremap <Leader>yy "+y
vnoremap <Leader>pp "+y
" adding syntax highlighting for all *.md files
au BufRead,BufNewFile *.md set filetype=markdown
" Mapping VisualStudio commands
"nnoremap <Leader>i :vsc Resharper.Resharper_GoToImplementations<CR>
"nnoremap <Leader>f :vsc Resharper.Resharper_GoToFile<CR>
"nnoremap <Leader>u :vsc Resharper.Resharper_FindUsages<CR>
"nnoremap <Leader>d :vsc Resharper.Resharper_GoToDeclaration<CR>
"nnoremap <Leader>gb :vsc Resharper.Resharper_NavigateBackward<CR>
"nnoremap <Leader>rt :vsc Resharper.Resharper_RefactorThis<CR>
nnoremap <Leader>i :vsc Edit.GoToImplementation<CR>
nnoremap <Leader>f :vsc Edit.GoToAll<CR>
nnoremap <Leader>u :vsc Edit.FindAllReferences<CR>
nnoremap <Leader>d :vsc Edit.GoToDefinition<CR>
nnoremap <Leader>gb :vsc View.NavigateBackward<CR>
nnoremap <Leader>rt :vsc Resharper.Resharper_RefactorThis<CR>
nnoremap <Leader>ci :vsc Edit.CommentSelection<CR>
nnoremap <Leader>cu :vsc Edit.UncommentSelection<CR>
nnoremap <Leader>sa :vsc SolutionExplorer.SyncWithActiveDocument<CR>
nnoremap <Leader>rr :vsc Refactor.Rename<CR>
nnoremap <Leader>rt :vsc Resharper.Resharper_RefactorThis<CR>
nnoremap <Leader>gi :vsc Resharper.Resharper_ToToImplementations<CR>
nnoremap <Leader>pp "0p
nnoremap <Leader>cc "0y
inoremap jj <ESC>
if has("gui_running")
let g:Powerline_symbols = 'fancy'
autocmd Vimenter * NERDTreeTabsToggle
" Change initial window size
set lines=50 columns=150
" Set colours
set background=dark
colorscheme solarized
set guifont=Courier_New:h11
endif
" Source extra options
" so $dir/vimrcs/vimrcs.vim