-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvimrc
72 lines (65 loc) · 2.02 KB
/
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
" Package: Axiom
" File: .vimrc
" Summary: Sample .vimrc for the Axiom package
" Maintainer: David Wicksell
" Last Modified: Oct 22, 2012
"
" Written by David Wicksell <dlw@linux.com>
" Copyright © 2011,2012 Fourth Watch Software, LC
"
" This program is free software: you can redistribute it and/or modify
" it under the terms of the GNU Affero General Public License (AGPL)
" as published by the Free Software Foundation, either version 3 of
" the License, or (at your option) any later version.
"
" This program is distributed in the hope that it will be useful,
" but WITHOUT ANY WARRANTY; without even the implied warranty of
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
" GNU Affero General Public License for more details.
"
" You should have received a copy of the GNU Affero General Public License
" along with this program. If not, see http://www.gnu.org/licenses/.
"
" My personal .vimrc settings. Make sure to turn on filetype, if it isn't
" on already. I think that Vim is nearly perfectly configured out of the
" box, which is why my .vimrc is small.
"personal settings that I prefer
set autoindent
set expandtab
set smarttab
set nohlsearch
set nomodeline
set more
set wildmenu
set tabstop=8
set softtabstop=4
set shiftwidth=4
set tabpagemax=30
if has("gui_running")
colorscheme torte
set guifont=Monospace\ 16
set mouse=a
set lines=28
set columns=80
endif
"turn on filetype in order to seamlessly use the Axiom package
if v:version >= 600
"turn on syntax and automatic filetype detection
syntax enable
filetype on
filetype detect
filetype plugin on
filetype indent on
else
"turn on syntax and source the Axiom utility functions
syntax on
if bufname("%") =~ "\\.m$"
source ~/.vim/ftplugin/mumps/datetime.vim
source ~/.vim/ftplugin/mumps/globaldump.vim
source ~/.vim/ftplugin/mumps/mcompile.vim
source ~/.vim/ftplugin/mumps/mstatus.vim
source ~/.vim/ftplugin/mumps/mtags.vim
source ~/.vim/ftplugin/mumps/settings.vim
endif
endif
" vim: set ft=vim: