-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc.before
38 lines (25 loc) · 794 Bytes
/
.vimrc.before
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
syntax enable
let &t_Co=256 " Use 256 color layout
let mapleader = ","
let maplocalleader = "\\"
set showmatch " Highlight matching [{()}]
set incsearch " Search as characters are entered
set hlsearch " Highlight matches
filetype indent on " load filetype-specific indent files
" Delete the entire line with -
nnoremap - dd
" Word to uppercase
nnoremap <c-u> <esc>veU
" Word to lowercase
nnoremap <c-l> <esc>veu
" Control+b goes to the previous buffer (back)
nnoremap <C-B> :b#<cr>
" Control+S saves
nnoremap <C-S> :w<cr>
" Copy to clipboard
nnoremap <C-C> :w !pbcopy<cr>
" Remove highlighted search results
nnoremap <leader><space> :nohlsearch<CR>
inoremap <c-d> <esc>ddi
" kj is escape now
inoremap kj <esc>