Skip to content

Commit 4562b93

Browse files
author
Jason Howmans
committed
Better vimrc
1 parent e3a91cf commit 4562b93

File tree

1 file changed

+109
-0
lines changed

1 file changed

+109
-0
lines changed

vim/vimrc.symlink

+109
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,113 @@
11
syntax on
22

3+
set rtp+=~/.vim/bundle/Vundle.vim
4+
call vundle#begin()
5+
6+
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
7+
" Vundle stuff
8+
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
9+
Plugin 'gmarik/Vundle.vim'
10+
311
" Wrap gitcommit file types at the appropriate length
412
filetype indent plugin on
13+
14+
" Sets how many lines of history VIM has to remember
15+
set history=700
16+
17+
" Set to auto read when a file is changed from the outside
18+
set autoread
19+
20+
" Turn on the WiLd menu
21+
set wildmenu
22+
23+
" Ignore compiled files
24+
set wildignore=*.o,*~,*.pyc
25+
26+
"Always show current position
27+
set ruler
28+
29+
" Height of the command bar
30+
set cmdheight=2
31+
32+
" A buffer becomes hidden when it is abandoned
33+
set hid
34+
35+
" Configure backspace so it acts as it should act
36+
set backspace=eol,start,indent
37+
set whichwrap+=<,>,h,l
38+
39+
" Ignore case when searching
40+
set ignorecase
41+
42+
" When searching try to be smart about cases
43+
set smartcase
44+
45+
" Highlight search results
46+
set hlsearch
47+
48+
" Makes search act like search in modern browsers
49+
set incsearch
50+
51+
" Don't redraw while executing macros (good performance config)
52+
set lazyredraw
53+
54+
" For regular expressions turn magic on
55+
set magic
56+
57+
" Show matching brackets when text indicator is over them
58+
set showmatch
59+
" How many tenths of a second to blink when matching brackets
60+
set mat=2
61+
62+
" No annoying sound on errors
63+
set noerrorbells
64+
set novisualbell
65+
set t_vb=
66+
set tm=500
67+
68+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
69+
" Colors and Fonts and GUI
70+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
71+
" Enable syntax highlighting
72+
syntax enable
73+
74+
"colorscheme desert
75+
set background=dark
76+
77+
" Set extra options when running in GUI mode
78+
if has("gui_running")
79+
set guioptions-=T
80+
set guioptions+=e
81+
set t_Co=256
82+
set guitablabel=%M\ %t
83+
endif
84+
85+
" Set utf8 as standard encoding and en_US as the standard language
86+
set encoding=utf8
87+
88+
" Use Unix as the standard file type
89+
set ffs=unix,dos,mac
90+
91+
" Line numbers
92+
set number
93+
94+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
95+
" Text, tab and indent related
96+
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
97+
" Use spaces instead of tabs
98+
set expandtab
99+
100+
" Be smart when using tabs ;)
101+
set smarttab
102+
103+
" 1 tab == 4 spaces
104+
set shiftwidth=4
105+
set tabstop=4
106+
107+
" Linebreak on 500 characters
108+
set lbr
109+
set tw=500
110+
111+
set ai "Auto indent
112+
set si "Smart indent
113+
set wrap "Wrap lines

0 commit comments

Comments
 (0)