-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
56 lines (49 loc) · 941 Bytes
/
Copy path.vimrc
File metadata and controls
56 lines (49 loc) · 941 Bytes
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
set nocompatible
set encoding=utf-8
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'Lokaltog/vim-powerline'
Bundle 'kien/ctrlp.vim'
Bundle 'chriskempson/base16-vim'
filetype plugin indent on
syntax on
set background=dark
set term=xterm-256color
colorscheme base16-default
" Editor config
set backspace=2
set colorcolumn=80
set hidden
set laststatus=2
set lazyredraw
set mouse=a
set noerrorbells
set noshowmode
set relativenumber
set showmatch
set title
set ttimeoutlen=0
" Text properties
set autoindent
set expandtab
set shiftwidth=2
set smarttab
set softtabstop=2
set tabstop=2
" Search
set hlsearch
set incsearch
set ignorecase
set smartcase
" Key maps
nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;
" Relative in normal, number in insert
:au FocusLost * :set number
:au FocusGained * :set relativenumber
autocmd InsertEnter * :set number
autocmd InsertLeave * :set relativenumber