-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
48 lines (39 loc) · 1.06 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
" Search and Matching
set showmatch " show matching
set ignorecase " case insensitive
set hlsearch " highlight search
set incsearch " incremental search
" Tabbing
set tabstop=4 " number of columns occupied by a tab
set softtabstop=4 " see multiple spaces as tabstops so <BS> does the right thing
set expandtab " converts tabs to white space
set shiftwidth=4 " width for autoindents
set autoindent " indent a new line the same amount as the line just typed
" Line Number
set number
" Mouse
set mouse=a
" System Interaction
set cursorline
" Backups
set backupdir=~/.cache/vim
" Syntax
filetype indent plugin on
syntax on
set clipboard=unnamedplus
set encoding=UTF-8
" Keybinding
nnoremap ZA :wqa<CR>
" Change window
nnoremap <A-.> <C-W>l
nnoremap <A-,> <C-W>h
" Move window
nnoremap <A-h> <C-W>H
nnoremap <A-j> <C-W>J
nnoremap <A-k> <C-W>K
nnoremap <A-l> <C-W>L
" Resize
nnoremap <A-=> <C-W>>
nnoremap <A--> <C-W><
nnoremap <A-0> <C-W>-
nnoremap <A-9> <C-W>+