-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxvimrc
65 lines (55 loc) · 1.04 KB
/
xvimrc
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
set mouse=""
set laststatus=2
set visualbell
set backupdir=~/.local/tmp/
set directory=~/.local/tmp//
set backup
set bkc=auto
set tabstop=2
set shiftwidth=2
set ruler
set rulerformat=%25(%=\l\i\n\e\ %l\ \o\f\ %L%)
set showcmd
set et
cnorea Q! q!
cnorea Wq wq
cnorea WQ wq
set updatetime=250
"find files easily
set path+=**
let mapleader = ","
"totally essential! don't use <esc>!
"type kj in insert mode for normal mode
ino kj <ESC>
nno ;; :w<CR>
ino <Esc> <Del>
"highlight Pmenu ctermfg=0 ctermbg=10
" For Japanese keyboards…
ino / /
"make op mode work better with parens
ono i9 i(
ono a9 a(
"search works better like this
set hlsearch
set incsearch
nnoremap // :noh<CR>
"maybe change to ^/$?
no h ^
no l $
"no <Space> find a way not to rely on crutch of space
no <tab> %
no % va(
vno <tab> <Esc>
vno <Esc> <nop>
no <Right> <C-w>l
no <Left> <C-w>h
no <Up> <C-w>k
no <Down> <C-w>j
ino <buffer> <tab> <C-x><C-i>
ino <buffer> <S-tab> <tab>
set background=dark
filetype plugin indent on
syntax enable
colorscheme solarized
set cindent
set cino={1s,j1