-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
70 lines (53 loc) · 1.08 KB
/
.ideavimrc
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
" Always show status bar
set laststatus=2
" Show line number
set nu
" Show line and column number in status bar
set ru
" Enable syntax highlighting
syntax enable
" Set encoding and format
set encoding=utf-8
set fileformat=unix
" Tab at four spaces
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set smarttab
" Indent
set autoindent
" Linebreak at 80 columns
set wrap linebreak nolist
set textwidth=80
" Highlight matching braces or parentheses
set showmatch
" Highlight search matches
set hlsearch
" Remap keys for exiting insert mode
inoremap fj <esc>
inoremap jf <esc>
inoremap <esc> <nop>
" Toggle in and out of visual mode
vnoremap v <esc>
" Disable arrow keys
noremap <up> <nop>
noremap <left> <nop>
noremap <right> <nop>
noremap <down> <nop>
" Use H to go to start of line, L to end of line
nnoremap H ^
nnoremap L $
vnoremap H ^
vnoremap L $
" Flash on error instead of sound
set visualbell
" Show buffer name in title
set title
" Easy window navigation
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
" Set , as leader key
let mapleader=","