-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvimrc
More file actions
54 lines (41 loc) · 1.45 KB
/
vimrc
File metadata and controls
54 lines (41 loc) · 1.45 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
46
47
48
49
50
51
52
53
54
" vim and gvim config file
" If vim hangs during startup, it is possible (likely) that it is
" processing a very large viminfo file. In that case, delete it:
" rm ~/.cache/vim/viminfo
" Whoever designed the viminfo variable was smoking crack. All we
" want to do is specify the location of the viminfo file, but to do
" so we must also specify the !, ', and % options as well.
" http://vimdoc.sourceforge.net/htmldoc/options.html#'viminfo'
set viminfo=!,%,'20,n~/.cache/vim/viminfo
" Use indents of 4 spaces, and have them copied down lines.
set tabstop=4
set shiftwidth=4
set shiftround
set expandtab
" Although autoindent sounds nice, it totally screws up text pasted
" from other apps. And in vim, I paste more often than creating
" original text.
set noautoindent
set nosmartindent
" Enable syntax highlighting.
if has("syntax")
syntax on
endif
" Print the line number in front of each line.
set number
" Display line number and column number on right side of modeline.
set ruler
" Search for text as you enter it.
set incsearch
" Show matching brackets.
set showmatch
if $COMPUTERNAME == "FDSVBLD01W70085" && has("gui_running")
" Rick, Ashish, and Adam prefer light on dark.
colorscheme desert
" Rick prefers a larger font.
set guifont=Lucida_Console:h14:cANSI
endif
" Quickref.
" To use the system clipboard to copy and paste, prepend "+ to your
" y (yank) or p (paste) command. Use :reg to see the contents of
" the system clipboard.