-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
66 lines (63 loc) · 2.43 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
57
58
59
60
61
62
63
64
65
66
" --- Eckhardt's vim file --- "
" Tim Pope's Pathogen
" https://github.com/tpope/vim-pathogen
" ---
set nocompatible
set hidden " don't destroy buffer when abandonded
call pathogen#infect()
call pathogen#helptags()
call pathogen#runtime_append_all_bundles()
colors quantum
filetype plugin indent on
set cursorline " Highlight current line
syntax on
set hlsearch
set incsearch
set laststatus=2 " Always show status line
set listchars=tab:▸\ ,eol:¬
set mat=5 " Bracket blinking.
set modelines=0
set mouse=a " Mouse in all modes
set mousehide " Hide mouse after chars typed
set noerrorbells " No noise.
set novisualbell " No blinking .
set nowrap " Line wrapping off
set nu " Line numbers on
set ruler " show line & column no. of cursor
set scrolloff=3 " min no. of screen lines above & below cursor
set shiftwidth=2
set showmatch
set smarttab
set textwidth=100
set visualbell
set encoding=utf-8
set autoindent " self-explanatory
set showmode " indicate input or replace mode at bottom
set showcmd " show information about current command
set wildmenu " cli completion via <Tab>
set wildmode=list:longest
set ttyfast
set backspace=indent,eol,start
set undodir=~/.vim/undo
set undofile
set ignorecase
set smartcase
set gdefault
noremap ; :
set formatoptions=qrn1
set colorcolumn=100
set list
" Set formatting based on FileType
autocmd FileType c set tabstop=8 softtabstop=8 shiftwidth=8 expandtab
autocmd FileType coffee set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
autocmd FileType elixir set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
autocmd FileType go set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab
autocmd FileType make set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab
autocmd FileType markdown set tabstop=4 softtabstop=4 shiftwidth=4 expandtab
autocmd FileType python set tabstop=4 softtabstop=4 shiftwidth=4 expandtab
autocmd FileType java set tabstop=4 softtabstop=4 shiftwidth=4 expandtab
autocmd FileType javascript set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
autocmd FileType ruby set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
autocmd FileType rust set tabstop=4 softtabstop=4 shiftwidth=4 expandtab
" Perl specific
let perl_include_pod = 1 " include pod