-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgp-oni.vim
More file actions
113 lines (97 loc) · 2.13 KB
/
Copy pathgp-oni.vim
File metadata and controls
113 lines (97 loc) · 2.13 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
"==========================
" visuals
"==========================
set title
set titleold="Terminal"
set titlestring=%F
set gcr=a:blinkon0
set scrolloff=5
set laststatus=2
set modeline
set modelines=10
set hidden
set nowrap
"==========================
" lines
"==========================
syntax on
set ruler
set number
"==========================
" encoding
"==========================
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8
set bomb
set binary
"==========================
" interaction
"==========================
" cause ctrl+w to always delete previous word (instead of only words entered
" since beginning of current insert mode)
set backspace=indent,eol,start
" delete previous word ctrl+backspace
imap <C-BS> <C-W>
"==========================
" indentation
"==========================
set tabstop=4
set softtabstop=0
set shiftwidth=4
set expandtab
"==========================
" searching
"==========================
set nohlsearch
set incsearch
set ignorecase
set smartcase
"==========================
" files
"==========================
set nobackup
set noswapfile
set fileformats=unix,dos,mac
set autoread
"==========================
" keys
"==========================
" enter normal mode
inoremap kj <Esc>
" map leader ,
let mapleader=','
" leader,ctrl-h to toggle search highlighting
nnoremap <leader><C-h> :set hls!\|set hls?<CR>
" close buffer in current split without losing split
nnoremap <silent> <leader>c :b #\|:bd #<CR>
" splits
noremap <leader>sh :<C-u>split<CR>
noremap <leader>v :<C-u>vsplit<CR>
" buffer nav
noremap <leader>z :bp<CR>
noremap <leader>q :bn<CR>
" split nav
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
noremap <C-h> <C-w>h
" press enter to clear search highlight
nnoremap <cr> :noh<cr>
" toggle relative line numbers
noremap <S-t> :set relativenumber!<cr>
" abbrev case insensitivity
cnoreabbrev W! w!
cnoreabbrev Q! q!
cnoreabbrev Qall! qall!
cnoreabbrev Wq wq
cnoreabbrev Wa wa
cnoreabbrev wQ wq
cnoreabbrev WQ wq
cnoreabbrev W w
cnoreabbrev Q q
cnoreabbrev Qall qall
"==========================
" plugin configuration
"==========================
let g:lexima_enable_space_rules = 0