-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.vimrc
More file actions
61 lines (46 loc) · 1.33 KB
/
.vimrc
File metadata and controls
61 lines (46 loc) · 1.33 KB
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
execute pathogen#infect()
" Turn off compatibility mode
set nocompatible
" Case-insensitive searches
set ignorecase
" Show line/column numbers
set ruler
set nu
" Flash matching brackets
set showmatch
" Disable mouse support.
set mouse=
" Indent engines
filetype plugin indent on
set backspace=indent,eol,start " allow backspace over anything in insert mode
"
" AutoCommmand options
"
if has("autocmd")
" Remove all (previous) autocommands for the current group.
" autocmd!
" TXT file type isn't always getting detected so handle it explicitly
autocmd BufNewFile,BufRead *.txt set filetype=txt
"
" Modify options for files I might be editing often:
"
" Set tab stops to 4, and enable soft tabs
" Enable smart auto-indent
"
autocmd FileType c,html,perl,php,python,sh,txt
\ set tabstop=4 |
\ set softtabstop=4 |
\ set expandtab |
\ set autoindent |
\ set smarttab |
\ set shiftwidth=4
autocmd FileType c,html,perl,php,python,sh,txt
\ autocmd BufWritePre <buffer> :%s/\s\+$//e
endif
" Also switch on highlighting the last used search pattern.
set hlsearch
" Enable syntax lighlighting and the solarized theme
syntax enable
set background=dark
" let g:solarized_termcolors=256
colorscheme solarized