-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
74 lines (59 loc) · 1.29 KB
/
Copy pathvimrc
File metadata and controls
74 lines (59 loc) · 1.29 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
"
" vimrc --- Vim configuration file.
"
" Copyright (C) 2001-2013, James Bielman <jamesjb@gmail.com>
" All Rights Reserved.
"
" Source a file if it exists.
function! SourceIfExists(file)
if filereadable(expand(a:file))
exe 'source' a:file
endif
endfunction
set ts=4
set sw=4
set et
set autoindent
set nocindent
set nosmartindent
set indentexpr=
set showmatch
set modeline
set nohlsearch
set backspace=2
set nu
set ruler
set visualbell
syntax on
filetype indent off
filetype plugin indent off
if has('win32')
set guifont=Consolas:h12
endif
if exists('+termguicolors')
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
set guicursor+=a:blinkon0
set guioptions-=m
set guioptions-=T
set guioptions-=r
set guioptions-=L
set pastetoggle=<F2>
imap jk <Esc>
call plug#begin('~/.vim/plugged')
Plug 'ctrlpvim/ctrlp.vim'
Plug 'sonph/onehalf', { 'rtp': 'vim' }
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
call SourceIfExists("~/.vimrc_plugins.local")
call plug#end()
colorscheme onehalfdark
let g:ctrlp_working_path_mode = 'a'
let g:airline_powerline_fonts = 1
let g:airline_theme = 'onehalfdark'
let mapleader=","
nnoremap <Leader>b :CtrlPBuffer<CR>
let maplocalleader = "\\"
call SourceIfExists("~/.vimrc.local")