-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
57 lines (40 loc) · 999 Bytes
/
.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
" map <C-J> gqap
" imap <C-J> <ESC>gqapi
syntax enable
set title
" Make trailing whitespace visible
" set list listchars=eol:\ ,tab:>-,trail:.,extends:>,nbsp:_
syntax spell toplevel
filetype indent on
filetype plugin on
set grepprg=grep\ -nH\ $*
" Auto number...
set nu
set modeline
" Fast buffer switching
map <C-N> <Esc>:bn<CR>
map <C-P> <Esc>:bp<CR>
" autoindent is evil
set noai
set tabstop=3
set shiftwidth=3
set expandtab
set showmatch
set tw=78
set nocompatible
" Makes buffers not need to be saved when hidden. Use with care.
set hidden
" set visualbell
" set digraph
" Spelling
highlight SpellErrors ctermfg=Red guifg=Red cterm=underline gui=underline term=reverse
" Test the autocommand
" autocmd BufReadPost,FileReadPost *.java read ~/c.txt
highlight Comment ctermfg=LightGray
filetype plugin indent on
syntax on
" stop the search from being obnoxious and hilighting everything
set nohlsearch
" change comment color
highlight Comment ctermfg=darkcyan
set cursorline