blob: 0e1b77bfb9f530ff0295a87b8ee5075c045cddf5 (
plain)
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
|
set viminfo+=n~/.config/vim/viminfo
set runtimepath+=~/.config/vim,~/.config/vim/after
set autoindent
set wrap
set linebreak
set mouse=a
set autowrite
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
set nocompatible
set spelllang=en_gb
set number relativenumber
syntax on
nnoremap <silent> <C-l> :nohl<CR><C-l>
inoremap { {}<ESC>ha
inoremap [ []<ESC>ha
inoremap " ""<ESC>ha
inoremap ( ()<ESC>ha
inoremap <C-space> <C-n>
nnoremap <S-J> <C-E>
nnoremap <S-K> <C-Y>
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
nnoremap <F9> :w<Enter>:!chmod<Space>+x<Space>"%:p"<Enter>:!"%:p"<Enter>
|