You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: .vimrc
+22-22
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,13 @@ set relativenumber
85
85
setencoding=utf-8
86
86
setnowrap
87
87
syntaxon
88
+
" - input
89
+
setbackspace=indent,eol
90
+
" - indent
91
+
setexpandtab
92
+
setsofttabstop=4
93
+
setshiftwidth=4
94
+
setautoindent
88
95
" - search
89
96
setignorecase
90
97
setsmartcase
@@ -97,12 +104,6 @@ set incsearch
97
104
" - buffer
98
105
setsplitbelow
99
106
setsplitright
100
-
" - indent
101
-
setexpandtab
102
-
setsofttabstop=4
103
-
setshiftwidth=4
104
-
setautoindent
105
-
setbackspace=indent,eol
106
107
" - folds
107
108
setfoldmethod=indent
108
109
aug_maxfoldlevel
@@ -128,10 +129,6 @@ nnoremap <left> 5<c-w><
128
129
nnoremap<right>5<c-w>>
129
130
" - navigation
130
131
" . inside buffer
131
-
nnoremap<space><c-d>
132
-
xnoremap<space><c-d>
133
-
nnoremap<s-space><c-u>
134
-
xnoremap<s-space><c-u>
135
132
nnoremap<a-h>h
136
133
xnoremap<a-h>h
137
134
nnoremap<a-n>j
@@ -142,6 +139,10 @@ nnoremap <a-i> l
142
139
xnoremap<a-i>l
143
140
nnoremap#^
144
141
xnoremap#^
142
+
nnoremap<space><c-d>
143
+
xnoremap<space><c-d>
144
+
nnoremap<s-space><c-u>
145
+
xnoremap<s-space><c-u>
145
146
nnoremap<c-i><c-o>
146
147
nnoremap<c-o><c-i>
147
148
" . between buffer
@@ -150,17 +151,17 @@ nnoremap <c-n> <c-w>j
150
151
nnoremap<c-e><c-w>k
151
152
nnoremap<c-k><c-w>l
152
153
" - search
154
+
nnoremap-#
155
+
nnoremap=*
156
+
xnoremap-""y?\V<c-r>=escape(@", '\/')<cr><cr>gn
157
+
xnoremap=""y/\V<c-r>=escape(@", '\/')<cr><cr>gn
153
158
nnoremap//\v
154
159
xnoremap//\v
155
160
nnoremap??\v
156
161
xnoremap??\v
157
162
nnoremap//:nohlsearch<cr>
158
163
nnoremapR:%s///g<left><left>
159
164
xnoremapR:s///g<left><left>
160
-
nnoremap-#
161
-
nnoremap=*
162
-
xnoremap-""y?\V<c-r>=escape(@", '\/')<cr><cr>gn
163
-
xnoremap=""y/\V<c-r>=escape(@", '\/')<cr><cr>gn
164
165
" - tabs
165
166
nnoremap<c-t>:tab split<cr>
166
167
nnoremap<a-1>1gt
@@ -174,17 +175,16 @@ nnoremap <a-8> 8gt
174
175
nnoremap<a-9>:tabmove -1<cr>
175
176
nnoremap<a-0>:tabmove +1<cr>
176
177
" - copy paste
177
-
nnoremap<cr>"+yyj
178
-
nnoremap<s-cr>m`0"+y$``
179
178
nnoremappgP| " insert before cursor, cursor moves to the end
180
-
cnoremap<c-p><c-r>"
181
179
nnoremapP$p`[| " insert at the end of line, cursor moves to the entry point of the insertion
180
+
cnoremap<c-p><c-r>"
181
+
nnoremap<cr>"+yyj
182
+
nnoremap<s-cr>m`0"+y$``
182
183
xnoremap<c-c>"+ygv| " copy to clipboard, stay in visual mode
183
-
xnoremap<c-x>"+ygvd| " move to clipboard
184
-
nnoremap<c-v>"+gP| " insert clipboard and move to the end
185
-
" insert clipboard at the end of line, cursor moves to the entry point of the insertion
186
-
"nnoremap <c-s-v> $"+p`[ " doesnt work because c-s-v is equal to c-v
187
-
inoremap<c-v><c-r>+| " insert clipboard, move to the end, stay in insert mode
184
+
xnoremap<c-x>"+ygvd| " cut to clipboard
185
+
nnoremap<c-v>"+gP| " paste from clipboard and move to the end
186
+
"nnoremap <c-s-v> $"+p`[| " paste from clipboard at the end of line, cursor moves to the entry point of the insertion; doesnt work because c-s-v is equal to c-v
187
+
inoremap<c-v><c-r>+| " paste from clipboard, move to the end, stay in insert mode
188
188
xnoremap<c-v>d"+gP| " replace selection, move to the end
0 commit comments