-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_vimrc
More file actions
73 lines (67 loc) · 1.34 KB
/
_vimrc
File metadata and controls
73 lines (67 loc) · 1.34 KB
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
"===========
"基本设置
"===========
set nocompatible
syntax on
set encoding=utf-8
set backspace=indent,eol,start
set t_Co=256
set mouse=a
set langmenu=zh_CN.UTF-8
set imcmdline
language messages zh_CN.UTF-8
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
"===========
"外观设置
"===========
set nu
set relativenumber
set guifont=consolas:h18
set guioptions=
set showmode
set showcmd
set showmatch
set cursorline
set wrap
set linebreak
set statusline=%F%m%r%h%w\ [POS=%l,%v][%p%%]\ %{strftime(\"%d/%m/%y\ -\ %H:%M\")}
colo desert
"==========
"缩进设置
"==========
set tabstop=4
set expandtab
set shiftwidth=4
set autoindent
set smartindent
set laststatus=2
set hlsearch
set incsearch
set ignorecase
"==========
"编辑设置
"==========
set wildmenu
set wildmode=longest:list,full
nnoremap <Up> :echomsg "Use k"<cr>
nnoremap <Down> :echomsg "Use j"<cr>
nnoremap <Left> :echomsg "Use h"<cr>
nnoremap <Right> :echomsg "Use l"<cr>
"=================
"plugins
"=================
call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-easy-align'
"Plug 'preservim/nerdtree',{'on':'NERETreeToggle'}
Plug 'scrooloose/nerdtree',{'on':'NERDTreeToggle'}
call plug#end()
"===========
"映射
"===========
map <F2> :NERDTreeToggle<cr>
"map <C-=> <End><cr>
"map <C-->:<home><cr>
"map <C-.> :echomsg "press ctrl+."
"map <C--> <home><cr>
map <C--> <home><cr>