blob: 7451e7ce0a31347c5847cb0b2e9bad9dc872ee21 (
plain)
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
|
colorscheme industry
filetype plugin on
" Command line:
set cmdheight=1
set wildmenu
set wildignore+=*.o,.git,*.class
" Search
set ignorecase
set smartcase
" Screen
set nonumber
set scrolloff=5 " show a few lines of context
set colorcolumn=+1 " highlight column after 'textwidth'
" Add buffer number to the default status line with ruler
set statusline=%<%f\ %h%m%r%=b%02n\ \ %-14.(%l,%c%V%)\ %P
" Indentation: 4 spaces
" See also: autoindent, smartindent, cindent, indentexpr
set tabstop=4 " Each '\t' takes 8 virtual (screen) columns
set shiftwidth=0 " (Auto)indentation. Also affects: >>, i_C-T, i_C-D
set expandtab " Expand inserted <Tab>s with <Space>
set smartindent " Smart indenting when starting a new line
" Formatting: See fo-table
set formatoptions+=t " auto-wrap text (when inserting)
set formatoptions+=c " auto-wrap comments (when inserting)
set formatoptions+=q " Allow formatting of comments with "gq"
set formatoptions+=j " Removes comment leader when joining lines
set formatoptions+=l " Don't break long lines that are already typed
set formatoptions+=r " Insert current leader after <Enter> in Insert mode
set formatoptions+=p " Don't break honorifics like Prof. Smith
set formatoptions+=n " Recognize numbered lists
set formatoptions+=o " Automatically insert the current comment
" leader after `o`.
" Wrap: Auto-break lines longer than 80 colums
set textwidth=80
set wrap
set linebreak " Don't break words
" Mouse
set mouse=a " Enable mouse for all modes
" Buffers
set hidden " Allow for hidden modified buffers
set splitbelow splitright
" Mappings (F13 is <S-F1>, don't ask me why)
map <F7> :tabp<CR>
map <F8> :tabn<CR>
map <F19> :bNext<LF>
map <F20> :bnext<LF>
|