-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
53 lines (37 loc) · 1.01 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
" Enable syntax highlight
syntax on
" Show the cursor position
set ruler
" Show the filename in the window titlebar
set title
" Highlight current line
set cursorline
" Make tabs as wide as four spaces
set tabstop=4
" Highlight searches
set hlsearch
" Ignore case of searches
set ignorecase
" Highlight dynamically as pattern is typed
set incsearch
" Always show status line
set laststatus=2
" Wrap text within 79 characters
set textwidth=79
" Copy indent from last line when starting a new line
set autoindent
" Teach vim to syntax highlight Vagrantfile as ruby
augroup vagrant
au!
au BufRead,BufNewFile Vagrantfile set filetype=ruby
augroup END
" The amount to block indent when using when using reindent operators (<< and >>)
set shiftwidth=4
" Uses shiftwidth instead of tabstop at start of lines
set smarttab
" Replaces a <TAB> with spaces -- more portable
set expandtab
" Causes backspace to delete 4 spaces = converted <TAB>
set softtabstop=4
"general settings: file type specific indenting
filetype indent on