Xinqi Bao's Git
projects
/
dotfiles.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5a1a1a4
)
vimrc: foldmethod=manual, add tab move
author
Xinqi Bao <
[email protected]
>
Mon, 23 Aug 2021 02:31:57 +0000
(10:31 +0800)
committer
Xinqi Bao <
[email protected]
>
Mon, 23 Aug 2021 02:31:57 +0000
(10:31 +0800)
.vimrc
patch
|
blob
|
history
diff --git
a/.vimrc
b/.vimrc
index
f521fd2
..
e77a213
100644
(file)
--- a/
.vimrc
+++ b/
.vimrc
@@
-5,6
+5,8
@@
set background=dark
"In order to display chinese in GBK
let &termencoding=&encoding
set fileencodings=utf-8,gbk
"In order to display chinese in GBK
let &termencoding=&encoding
set fileencodings=utf-8,gbk
+set fileformat=unix
+set foldmethod=manual
set t_Co=256 "terminal color
set t_ut=""
set t_Co=256 "terminal color
set t_ut=""
@@
-51,8
+53,6
@@
set path+=/usr/include,/usr/include/c++/*
set path+=/usr/local/include
set path+=~/lib
set path+=/usr/local/include
set path+=~/lib
-set foldmethod=syntax
-
" Writes to the unnamed register also writes to the * and + registers. This
" makes it easy to interact with the system clipboard
if has ('unnamedplus')
" Writes to the unnamed register also writes to the * and + registers. This
" makes it easy to interact with the system clipboard
if has ('unnamedplus')
@@
-117,6
+117,8
@@
let g:ycm_auto_hover = 'no'
let mapleader = " "
nnoremap J :tabprevious<CR>
nnoremap K :tabnext<CR>
let mapleader = " "
nnoremap J :tabprevious<CR>
nnoremap K :tabnext<CR>
+nnoremap <leader>J :tabmove -1<CR>
+nnoremap <leader>K :tabmove +1<CR>
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k