-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
56 lines (43 loc) · 1.19 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
" To install new plugs, add their repo here, and call :PlugInstall
" :PlugInstall will read this plug list once, when it reads the config, on boot,
" so we need to restart vim before running :PlugInstall
call plug#begin()
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'lifepillar/vim-solarized8'
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
call plug#end()
" Tells vim to use truecolors
set termguicolors
syntax on
" this colour scheme is installed from lifepillar
" colorscheme solarized8
" This is an option for the color scheme
" set background=light
" set highlight-search
set hlsearch
" search as you type
set incsearch
set noswapfile
" delete before the colon : this should stay
inoremap jk <ESC>
nnoremap <C-p> :Files <CR>
set backspace=indent,eol,start
set tabstop=2
set shiftwidth=2
set expandtab
" Strip trailing whitespace
autocmd BufWritePre *.rb :%s/\s\+$//e
function! SetSystemClipboard()
if !has("clipboard")
echo "Note: This version of Vim doesn't have system clipboard access"
return
endif
if has('Darwin')
set clipboard+=unnamed,unnamedplus
else
set clipboard=unnamed
endif
endfunction
call SetSystemClipboard()