-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimrc
44 lines (33 loc) · 742 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
44
" Standard stuff
set nocompatible
filetype plugin indent on
syntax on
set number
set ruler
set wrap
set hidden
set showmode showcmd
hi Visual term=reverse cterm=reverse guibg=Grey
set cursorline
set incsearch hlsearch
set ignorecase smartcase
set smarttab smartindent
set tabstop=4
set shiftwidth=4
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Customizations
set relativenumber
let mapleader="\<Space>"
" fd -> escape
map! fd <Esc>
" Line navigation
nnoremap j gj
nnoremap k gk
nnoremap gj j
nnoremap gk k
" Copy/paste buffer
nmap <leader>cp :%pu+<CR>
nmap <leader>cc :%y+<CR>
nmap <leader>m! :make<CR>
autocmd QuickFixCmdPost [^l]* nested cwindow
autocmd QuickFixCmdPost l* nested lwindow