-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
64 lines (56 loc) · 1.08 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
" -------------------------------------------------------
" Options
" -------------------------------------------------------
syntax on
set nocompatible
set showmode
set showcmd
set hlsearch
set incsearch
set magic
set ignorecase
set smartcase
set copyindent
set showmatch
set number
set novisualbell
set noerrorbells
set relativenumber
set ruler
set nowrap
set nobackup
set nowb
set noswapfile
set wildmenu
set encoding=utf-8
set background=dark
set textwidth=80
set tabstop=2
set mouse=a
set laststatus=2
set shiftwidth=2
set showtabline=2
set softtabstop=2
set expandtab
set noshiftround
set scrolloff=3
"try
" colorscheme desert
"catch
"endtry
" -------------------------------------------------------
" Keymap
" -------------------------------------------------------
let mapleader = " "
inoremap jj <esc>
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l
nnoremap <leader>h <c-w>h
nnoremap <leader>j <c-w>j
nnoremap <leader>k <c-w>k
nnoremap <leader>l <c-w>l
nnoremap <leader>e :Lexplore<CR>
nnoremap <tab> :bnext<CR>
nnoremap <s-tab> :bprevious<CR>