-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
56 lines (41 loc) · 1 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
" size of a hard tabstop
set tabstop=4
" size of an 'indent'
set shiftwidth=4
" a combination of spaces and tabs are used to simulate tab stops at a width
" other than the (hard)tabstop
set softtabstop=4
" make 'tab' insert indents instead of tabs at the beginning of a line
set smarttab
" always uses spaces instead of tab characters
set expandtab
" max number of tabs
set tabpagemax=100
" syntax coloring
colo slate
syntax on
set autoindent
set mouse=a
set number
if !has('clipboard')
echo "no clipboard!"
endif
" yank to system clipboard
let uname = substitute(system('uname -s'), '\n', '', '')
if uname == "Darwin"
set clipboard=unnamed
elseif uname == "Linux"
set clipboard=unnamedplus
endif
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
" scrolling will turn off when 8 characters from the top or bottom
set scrolloff=8
:imap jk <Esc>
noremap <Up> <Nop>
noremap <Down> <Nop>
noremap <Left> <Nop>
noremap <Right> <Nop>
" Visual Indenting
vmap < <gv
vmap > >gv