-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc.local
67 lines (57 loc) · 1.38 KB
/
vimrc.local
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
set nocompatible
set ruler
set relativenumber
set number
" This shows what you are typing as a command. I love this!
set showcmd
"
" Who doesn't like autoindent?
set autoindent
" Needed for Syntax Highlighting and stuff
filetype on
filetype plugin on
filetype plugin indent on
syntax enable
" Spaces are better than a tab character
set expandtab
set smarttab
" Who wants an 8 character tab? Not me!
set tabstop=4
set shiftwidth=4
set softtabstop=4
" Cool tab completion stuff
set wildmenu
set wildmode=list:longest,full
set ignorecase
set smartcase
set incsearch
set hlsearch
set showmatch
set tags=tags;/
set wrap
set formatoptions=tcrql
set scrolloff=5 " keep at least 5 lines above/below
set sidescrolloff=5 " keep at least 5 lines left/right
set history=200
set backspace=indent,eol,start
set undolevels=1000 " 1000 undos
set updatecount=100 " switch every 100 chars
set complete=.,w,b,u,U,t,i,d " do lots of scanning on tab completion
set ttyfast " we have a fast terminal
set title
set titlelen=20
set laststatus=2
set isfname-==
set dictionary+=/usr/share/dict/american-english
set complete+=k
set undofile
nore ; :
nore , ;
"nnoremap < :tabp<CR>
"nnoremap > :tabn<CR>
command C let @/=""
cnoremap w!! w !sudo tee >/dev/null %
map <C-i> gg=G<CR>
map <C-h> :set hlsearch!<CR>
autocmd Filetype gitcommit setlocal spell textwidth=72
set t_Co=256