-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
97 lines (77 loc) · 2.29 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
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
" Slix's config -- WIP
" If you don't understand a setting in here, just type ':h setting'.
" Use Vim settings, rather than Vi settings (much better!).
set nocompatible
" Start pathogen for plugin loading
" The special runtime is used so that pathogen can be a submodule
runtime bundle/pathogen/autoload/pathogen.vim
call pathogen#infect()
" Color Scheme
colorscheme smyck
" No modelines (security issues?)
set modelines=0
" Make backspace behave in a sane manner.
set backspace=indent,eol,start
" Switch syntax highlighting on
syntax on
" Highlight current line, looks great in Solarized!
set cursorline
" Enable file type detection and do language-dependent indenting.
filetype plugin indent on
" GUI
if has("gui_running")
"Remove all GUI elements
set guioptions-=m
set guioptions-=T
set guioptions-=t
set guioptions-=r
set guioptions-=L
" TODO: This font won't be available everywhere.
set guifont=Inconsolata\ Medium\ 12
" Default size should be nice and big
set columns=100
set lines=50
" Anything was better than this agony!
" Anything was more tolerable than this derision!
" I felt that I must scream or die! and now - again!
" hark! louder! louder! louder! louder!
"
" Disable cursor blink to prevent mental breakdown
:set guicursor+=a:blinkon0
endif
" Regular tabbing settings
" Investigate whether different filetypes need different tab settings
set tabstop=4
set softtabstop=4
set shiftwidth=4
set smarttab
set expandtab
" Substitutions should replace all occurrences
set gdefault
" Text width, sometimes filetype dependent
set colorcolumn=+1 "Color the column after textwidth
" Better scrolling (at 4 above margin)
set scrolloff=4
" Show invisible characters
set list
set listchars=tab:▸\ ,eol:¬
" Multiple buffer support?
set hidden
" Simplify compile/run cycle
" ftplugins or compiler plugins should create buffer-local commands
set autowrite
nmap <Leader>m :Make<CR>
nmap <F9> <Leader>m
nmap <Leader>r :Run<CR>
nmap <F10> <Leader>r
command -nargs=* Make FileMake <args>
command -nargs=* Run FileRun <args>
" Disable arrow keys to force me to use hjkl
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>