-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc_picon
106 lines (82 loc) · 3.77 KB
/
vimrc_picon
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
" File: .vimrc
" Author: Gustavo Picon <[email protected]>
" Last Change: 2005 Feb 11 (Vim 6.3)
" Download: http://tabo.aurealsys.com/code/vimrc
" Home: http://tabo.aurealsys.com/
" License: This file is placed in the publid domain
" Disclaimer: Published as-is, no support, no warranty
set nocompatible " VIM extensions, not very VI compatible;
" this setting must be set because when vim
" finds a .vimrc on startup, it will set
" itself as "compatible" with vi
"
" User Interface
"
" Syntax highlighting, only if the feature is available and the terminal can
" display colors
" (tabo@20040210) had to fix this because t_Co doesn't work in gvim@win32
if has('syntax') && (&t_Co > 2 || has('win32'))
syntax on " enable syntax highlighting
colorscheme baycomb " load a colorscheme, it's redundant to use
" 'default', but this setting is here to be
" modified
endif
set backspace=indent,eol,start " backspace for dummys
set showmatch " show matching brackets/parenthesis
set wildmode=list:longest,full " comand <Tab> completion, list matches and
" complete the longest common part, then,
" cycle through the matches
set shortmess+=filmnrxoOtT " abbrev. of messages (avoids 'hit enter')
set showmode " display the current mode
if has('cmdline_info')
set ruler " show the ruler
" a ruler on steroids
set rulerformat=%30(%=\:b%n%y%m%r%w\ %l,%c%V\ %P%)
set showcmd " show partial commands in status line and
" selected characters/lines in visual mode
endif
if has('statusline')
set laststatus=1 " show statusline only if there are > 1 windows
" a statusline, also on steroids
set statusline=%<%f\ %=\:\b%n%y%m%r%w\ %l,%c%V\ %P
endif
"
" Editing
"
filetype on " enable filetype detection
set wrap " wrap long lines
set autoindent " indent at the same level of the previous line
set shiftwidth=4 " use indents of 4 spaces
set textwidth=79 " the text width
"set formatoptions+=tcq " basic formatting of text and comments
set matchpairs+=<:> " match, to be used with %
set expandtab " spaces instead of tabs, CTRL-V<Tab> to insert
" a real space
set pastetoggle=<F12> " pastetoggle (sane indentation on pastes)
" just press F12 when you are going to
" paste several lines of text so they won't
" be indented
" When in paste mode, everything is inserted
" literally.
autocmd FileType c,cpp call <SID>cstuff()
function <SID>cstuff()
set cindent
set formatoptions+=croql
set formatoptions-=t
endfunction
"
" gvim- (here instead of .gvimrc)"
if has('gui_running')
set guioptions-=T " remove the toolbar
set lines=40 " 40 lines of text instead of 24,
" perfect for 1024x768
endif
"
" misc, there is _always_ a misc section
"
set nobackup " real men _never_ _ever_ do backups
" i have been working with cobol lately, the horror
au BufNewFile,BufRead *.CBL,*.cbl,*.cob setf cobol
" to please the gods
iabbrev cthuf Ia! Ia! Cthulhu fhtagn! Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn! Cthulhu fhtagn! Cthulhu fhtagn!
" vim: set sw=4 ts=8 sts=0 et tw=78 nofen fdm=indent ft=vim :