-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
49 lines (49 loc) · 1.22 KB
/
vimrc
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
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
autocmd FocusGained,BufEnter * silent! checktime
filetype indent on
filetype plugin on
highlight IdeographicSpace ctermbg=white
map <C-space> ?
map <space> /
match IdeographicSpace / /
nnoremap <Esc><Esc> :nohlsearch<CR>
set autoindent
set autoread
set backspace=eol,start,indent
set cursorline
set foldcolumn=1
set hidden
set hlsearch
set ignorecase
set incsearch
set laststatus=2
set lazyredraw
set linebreak
set list
set listchars=tab:-→,trail:·,extends:»,precedes:«,nbsp:·
set matchtime=0
set noerrorbells
set nowrap
set nowrapscan
set number
set regexpengine=0
set scrolloff=7
set shiftwidth=0
set showcmd
set showmatch
set smartcase
set smartindent
set softtabstop=-1
set statusline=%F%m%h%w\ %<%=[0x%02B]\ [Ln\ %l,\ Col\ %02v]\ [%{&fileencoding!=''?&fileencoding:&encoding}]\ [%{&fileformat}]\ [%Y]
set t_vb=
set tabstop=2
set textwidth=500
set timeoutlen=500
set viminfofile=NONE
set virtualedit=onemore
set whichwrap+=<,>,h,l
set wildmenu
set wildmode=longest,full
syntax enable
vnoremap <silent> * :<C-u>call VisualSelection('', '')<CR>/<C-R>=@/<CR><CR>
vnoremap <silent> # :<C-u>call VisualSelection('', '')<CR>?<C-R>=@/<CR><CR>