Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
X64
Commits
5852a5b8
Commit
5852a5b8
authored
May 07, 2024
by
大地缸
Browse files
lazydog
parent
de2db4a7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
121 additions
and
0 deletions
+121
-0
.udpatevim.swp
.udpatevim.swp
+0
-0
.vimrc
.vimrc
+57
-0
updatevim
updatevim
+7
-0
vimrc
vimrc
+57
-0
No files found.
.udpatevim.swp
0 → 100644
View file @
5852a5b8
File added
.vimrc
0 → 100644
View file @
5852a5b8
map
<
F10
>
:
NERDTreeToggle
<
CR
>
" " " 设置宽度
let
NERDTreeWinSize
=
25
nmap
<
F9
>
:
TagbarToggle
<
CR
>
let
g:tagbar_width
=
25
:
set
incsearch
:
set
hlsearch
:
set
ignorecase
:
syntax
on
:
set
list
lcs
=
tab
:
\
|
\
:
set
cursorline
:
set
nu
:
set
autowrite
:
set
mouse
+=
a
map
<
C
-
n
>
:
cnext
<
CR
>
map
<
c
-
m
>
:
cprevious
<
CR
>
nnoremap
<
leader
>
a
:
cclose
<
CR
>
autocmd
FileType
go
nmap
<
leader
>
b
<
Plug
>(
go
-
build
)
autocmd
FileType
go
nmap
<
leader
>
r
<
Plug
>(
go
-
run
)
let
g:go_fmt_command
=
"goimports"
let
g:go_highlight_types
=
1
autocmd
BufNewFile
,
BufRead
*
.
go
setlocal
noexpandtab
tabstop
=
4
shiftwidth
=
4
" cttl s save
nmap
<
C
-
S
>
:
wq
!<
CR
>
vmap
<
C
-
S
>
<
C
-
C
>:
wq
!<
CR
>
imap
<
C
-
S
>
<
Esc
>:
wq
!<
CR
>
nmap
<
C
-
Q
>
:
q
!<
CR
>
vmap
<
C
-
Q
>
<
C
-
C
>:
q
!<
CR
>
imap
<
C
-
Q
>
<
Esc
>:
q
!<
CR
>
nmap
<
C
-
W
>
:
w
!<
CR
>
vmap
<
C
-
W
>
<
C
-
C
>:
w
!<
CR
>
imap
<
C
-
W
>
<
Esc
>:
w
!<
CR
>
i
nmap
<
C
-
X
>
:
w
!<
CR
>
vmap
<
C
-
X
>
<
C
-
C
>:
w
!<
CR
>
imap
<
C
-
X
>
<
Esc
>:
w
!<
CR
>
i
"nmap <C-B> :!go build<CR>
"vmap <C-B> <C-C>:!go build<CR>
"imap <C-B> <Esc>:!go build<CR>
"nmap <C-R> :!go run .<CR>
"vmap <C-R> <C-C>:!go run .<CR>
"imap <C-R> <Esc>:!go run .<CR>
nmap
.
:
wq
!<
CR
>
nmap
,
:
q
!<
CR
>
"nmap m dgg
"nmap z dG:wq!<CR>
updatevim
0 → 100644
View file @
5852a5b8
sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt install vim
vimrc
0 → 100644
View file @
5852a5b8
map <F10> :NERDTreeToggle<CR>
" " " 设置宽度
let NERDTreeWinSize=25
nmap <F9> :TagbarToggle<CR>
let g:tagbar_width=25
:set incsearch
:set hlsearch
:set ignorecase
:syntax on
:set list lcs=tab:\|\
:set cursorline
:set nu
:set autowrite
:set mouse+=a
map <C-n> :cnext<CR>
map <c-m> :cprevious<CR>
nnoremap <leader>a :cclose<CR>
autocmd FileType go nmap <leader>b <Plug>(go-build)
autocmd FileType go nmap <leader>r <Plug>(go-run)
let g:go_fmt_command = "goimports"
let g:go_highlight_types = 1
autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4
" cttl s save
nmap <C-S> :wq!<CR>
vmap <C-S> <C-C>:wq!<CR>
imap <C-S> <Esc>:wq!<CR>
nmap <C-Q> :q!<CR>
vmap <C-Q> <C-C>:q!<CR>
imap <C-Q> <Esc>:q!<CR>
nmap <C-W> :w!<CR>
vmap <C-W> <C-C>:w!<CR>
imap <C-W> <Esc>:w!<CR>i
nmap <C-X> :w!<CR>
vmap <C-X> <C-C>:w!<CR>
imap <C-X> <Esc>:w!<CR>i
"nmap <C-B> :!go build<CR>
"vmap <C-B> <C-C>:!go build<CR>
"imap <C-B> <Esc>:!go build<CR>
"nmap <C-R> :!go run .<CR>
"vmap <C-R> <C-C>:!go run .<CR>
"imap <C-R> <Esc>:!go run .<CR>
nmap . :wq!<CR>
nmap , :q!<CR>
"nmap m dgg
"nmap z dG:wq!<CR>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment