-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_vsvimrc
99 lines (87 loc) · 2.4 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
" ~/_vsvimrc
"
" Archivo de configuración del plugin VsVim para Visual Studio
"
" Electro7 - Version 1.0 - 17 sep 2019
"==============================================================================
" Settings {{{
" -----------------------------------------------------------------------------
" Apareance
set laststatus=0
set number
" Editing
set autoindent
set expandtab
set shiftwidth=4
set softtabstop=4
set tabstop=4
set backspace=2
set nowrap
set textwidth=80
" Search
set hlsearch
set incsearch
set wrapscan
set ignorecase
set smartcase
set magic
" Performance
set timeout timeoutlen=500 ttimeout ttimeoutlen=100
"}}}
" Mappings :help key-notation {{{
" -----------------------------------------------------------------------------
" Map leader
let mapleader = ','
" Alt +
" ···············································
" Buffer movement
nnoremap <M-Right> :bn<CR>D
nnoremap <M-Left> :bp<CR>
nnoremap <M-Up> :b#<CR>
" Specials keys
" ···············································
" Nest window
nnoremap <tab> <C-W>w
" Increment and decrement number
nnoremap + <C-a>
nnoremap - <C-x>
" Indenting selection
vnoremap < <gv
vnoremap > >gv
vnoremap i ==
" leader + chars (:h map-comments)
" ···············································
" Togle search
nnoremap <leader><leader> :nohlsearch<CR>
" Format paragraph
nnoremap <leader>. gwip
" Join line with prev at end
nnoremap <leader>ju :m-2<CR>:join<CR>
" Replace
nnoremap <leader>r :%s/<C-r><C-w>//gic
" Vsplit
nnoremap <leader>v :vsplit<CR>
" Reload vim config
nnoremap <leader>vi :e $HOME/_vsvimrc<CR>
" Reload vimrc
nnoremap <leader>vr :source $HOME/_vsvimrc<CR>
" Delete trailing
nnoremap <leader>w :%s/\s\+$\\| \+\ze\t//gce<CR>
" Ir a la definición
nmap <leader>gd :vsc Edit.GoToDefinition<CR>
" Ir al explorador de soluciones
nmap <leader>f :vsc View.SolutionExplorer<CR>
" Ir al explorador de recursos
nmap <leader>fr :vsc View.ResourceView<CR>
" Ir al visor de clases (tags)
nmap <leader>fc :vsc View.ClassView<CR>
" Ir a las propiedades
nmap <leader>p :vsc View.PropertiesWindow<CR>
" Ir a la barra de navegación
nmap <leader>n :vsc Window.MoveToNavigationBar<CR>
" Directorio actual
nmap <leader>cd :cd %:p:h<CR>
" Ventana de compilación
nmap <leader>o :vsc View.ErrorList<CR>
"}}}
" vim:expandtab:ts=2:sw=2:sts=2:fdm=marker