-
Notifications
You must be signed in to change notification settings - Fork 2
/
.vimrc
40 lines (34 loc) · 821 Bytes
/
.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
set tabstop=2
set softtabstop=2
set shiftwidth=2
set autoindent
set number
set expandtab
set autoread
set incsearch
set smartcase
set linebreak
set encoding=utf-8
set splitbelow splitright
set t_Co=256
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | quit
endif
" Plugins
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-surround'
Plug 'jpo/vim-railscasts-theme'
Plug 'ctrlpvim/ctrlp.vim'
call plug#end()
if !empty(glob('~/.vim/autoload/plug.vim'))
" Colorscheme
silent! colorscheme railscasts
" Navigate splits
map <C-h> <C-w>h
map <C-l> <C-w>l
map <C-k> <C-w>k
map <C-j> <C-w>j
endif