-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
61 lines (55 loc) · 1.25 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
" ~/.vimrc
" Plugin manager settings.
call plug#begin('~/.vim/plugged')
Plug 'junegunn/seoul256.vim'
Plug 'itchyny/lightline.vim'
Plug 'yuttie/comfortable-motion.vim'
Plug 'junegunn/goyo.vim'
call plug#end()
" Nice light colorscheme for 256 color terminals.
let g:seoul256_background=256
let g:lightline = {'colorscheme': 'seoul256'}
colorscheme seoul256
set background=light
" Type :help <option> to find purpose of each option.
filetype plugin indent on
set autoindent
set backspace=indent,eol,start
set cmdheight=2
set confirm
set expandtab
set exrc
set hidden
set hlsearch
set ignorecase
set incsearch
set laststatus=2
set mouse=a
set nocompatible
set nostartofline
set notimeout ttimeout ttimeoutlen=200
set number relativenumber
set ruler
set secure
set shiftwidth=2
set showcmd
set smartcase
set softtabstop=2
set wildmenu
syntax on
" Own custom mappings, trying to keep these at minimum.
vnoremap <C-C> "*y
map <C-p> "*p
map Y y$
nnoremap <C-L> :nohl<CR><C-L>
nnoremap <C-X> :%s/\<<C-r><C-w>\>//g<Left><Left>
nnoremap <Tab> <Esc>
vnoremap <Tab> <Esc>gV
onoremap <Tab> <Esc>
cnoremap <Tab> <C-C><Esc>
inoremap <Tab> <Esc>`^
inoremap <Leader><Tab> <Tab>
" Very important.
command D smile
" Remove whitespace from end when saving.
autocmd BufWritePre * %s/\s\+$//e