-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
43 lines (37 loc) · 907 Bytes
/
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
set nocompatible " be iMproved, required
filetype off " required
filetype plugin indent on " required
" General vim stuff
syntax on
set nu rnu
" No Arrow keys
map <Down> <NOP>
map <Up> <NOP>
map <Right> <NOP>
map <Left> <NOP>
set background=dark
set expandtab
set paste
set autoindent
set smartindent
set tabstop=4 softtabstop=4
set shiftwidth=4
set clipboard+=unnamedplus
set smartcase
set incsearch
set spell
set spelllang=en_gb
"set colorcolumn=80
"highlight ColorColumn ctermbg=0 guibg=lightgrey
let mapleader = " "
" Remapping and Shortcuts
" Replace all is aliased to S
nnoremap S :%s//g<Left><Left>
nnoremap <leader>h :wincmd h<CR>
nnoremap <leader>j :wincmd j<CR>
nnoremap <leader>k :wincmd k<CR>
nnoremap <leader>l :wincmd l<CR>
nnoremap <leader>v :wincmd v<CR>
nnoremap <leader>s :sp<CR>
nnoremap <Leader>b :buffers<CR>:b
nnoremap <leader>3 :ColorToggle<CR>