-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
49 lines (43 loc) · 1.08 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
set mouse=a
set clipboard=unnamed
set ttimeoutlen=0
set number
set wildmenu
set showcmd
set scrolloff=8
set softtabstop=2
set shiftwidth=2
set expandtab
set autoindent
set backspace=2
set cursorline
set colorcolumn=81
set incsearch
set hlsearch
set ignorecase
set smartcase
execute "set runtimepath+=" . system("echo \"$(pip show powerline-status | awk '/^Location:/ { print($2) }')/powerline/bindings/vim\"")
nnoremap <Leader><Esc> :nohlsearch<Enter>
if filereadable(glob('~/.vim/autoload/plug.vim'))
call plug#begin()
Plug 'altercation/vim-colors-solarized'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'shumphrey/fugitive-gitlab.vim'
Plug 'tpope/vim-endwise'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-rhubarb'
call plug#end()
endif
if filereadable(glob('~/.vim/plugged/vim-colors-solarized/colors/solarized.vim'))
colorscheme solarized
endif
autocmd VimEnter * call s:initialize_powerline()
function s:initialize_powerline()
if exists('g:powerline_loaded')
set laststatus=2
set noshowmode
else
set ruler
endif
endfunction