forked from sontek/homies
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_vimrc
More file actions
45 lines (36 loc) · 1.06 KB
/
Copy path_vimrc
File metadata and controls
45 lines (36 loc) · 1.06 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
set nocompatible
set autoindent
set colorcolumn=80
set expandtab
set hlsearch
set backspace=indent,eol,start
set incsearch
set nonu
set scrolloff=3
set shiftwidth=4
set showcmd
set showmatch
set softtabstop=4 " makes spaces feel like tab to backspace
set tabstop=4
set tildeop
set background=dark
filetype plugin indent on
syntax on
au FileType C set makeprg=gcc\ %
" From eclim
let g:EclimHome = '/usr/share/vim/vimfiles/eclim'
let g:EclimEclipseHome = '/usr/share/eclipse'
" http://mark.jerde.org:13780/v1/comp/vim/
" introduced for /common/www/newsite, *.markdown files
augroup templates
" Remove other autocommands
au!
autocmd BufNewFile *.markdown source ./.template.markdown
autocmd BufNewFile *.java execute "normal Ipublic class " . expand('%:t:r') . "\n{\n}\<Esc>2G"
augroup END
autocmd BufNewFile,BufRead *.rkt set filetype=scheme
" autocmd BufNewFile,BufRead *.md setlocal spell spelllang=en_us
" map :w!<CR>:!aspell -c %<CR>:e! %<CR>
map <F2> :NERDTreeToggle<CR>
map <F3> :setlocal spell! spelllang=en_us<CR>
map <F4> :setlocal list!<CR>