-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
63 lines (55 loc) · 3.15 KB
/
vimrc
File metadata and controls
63 lines (55 loc) · 3.15 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
62
" Configuration file for vim
" Standard vim options
set autoindent " always set autoindenting on
set backspace=2 " allow backspacing over everything in insert mode
set cindent " c code indenting
set diffopt=filler,iwhite " keep files synced and ignore whitespace
set expandtab " Get rid of tabs altogether and replace with spaces
set foldcolumn=2 " set a column incase we need it
set foldlevel=0 " show contents of all folds
set foldmethod=indent " use indent unless overridden
set guioptions-=m " Remove menu from the gui
set guioptions-=T " Remove toolbar
set hidden " hide buffers instead of closing
set history=50 " keep 50 lines of command line history
set ignorecase " Do case insensitive matching
set incsearch " Incremental search
set laststatus=2 " always have status bar
set linebreak " This displays long lines as wrapped at word boundries
set matchtime=10 " Time to flash the brack with showmatch
set nobackup " Don't keep a backup file
set nocompatible " Use Vim defaults (much better!)
set nofen " disable folds
set notimeout " i like to be pokey
set ttimeout " timeout on key-codes
set ttimeoutlen=100 " timeout on key-codes after 100ms
set ruler " the ruler on the bottom is useful
set scrolloff=1 " dont let the curser get too close to the edge
set shiftwidth=2 " Set indention level to be the same as softtabstop
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set softtabstop=2 " Why are tabs so big? This fixes it
set textwidth=0 " Don't wrap words by default
set virtualedit=block " let blocks be in virutal edit mode
set wildmenu " This is used with wildmode(full) to cycle options
set number " Show line numbers
set nojoinspaces " Don't add whitespace.
set showmatch " Match brackets, parentheses, and braces.
set hlsearch " Highlight searches
set pastetoggle=<F2>
"Longer Set options
set cscopequickfix=s-,c-,d-,i-,t-,e-,g-,f- " useful for cscope in quickfix
set listchars=tab:>-,trail:- " prefix tabs with a > and trails with -
set tags+=./.tags;/,./tags;/ " set ctags
set whichwrap+=<,>,[,],h,l,~ " arrow keys can wrap in normal and insert modes
set wildmode=list:longest,full " list all options, match to the longest
set helpfile=$VIMRUNTIME/doc/help.txt
set guifont=Courier\ 10\ Pitch\ 10
set path+=.,..,../..,../../..,../../../..,/usr/include
" Suffixes that get lower priority when doing tab completion for filenames.
" These are files I am not likely to want to edit or read.
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.class
"Set colorscheme. This is a black background colorscheme
colorscheme desert
"Turn on syntax highlighting
syntax on