-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
43 lines (32 loc) · 1.02 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
syntax enable
" Fix backspace issues
set backspace=indent,eol,start
" We need to make sure that vim is not attempting to retain compatibility with vi, its predecessor. This is a vundle requirement. When vim attempts to be compatible, it disables most of the features that make it worth using over vi.
set nocompatible
" Tabs
set tabstop=4 " columns taken by tab character
set softtabstop=4 " fixes backspace issue
set shiftwidth=4 " equivalent spaces when pressing tab key
set expandtab " convert tab to spaces
" Indents
set autoindent
set cindent
" Show cmd
set showcmd
" Indent based on filetype
filetype indent on
set incsearch " search as characters are entered
set hlsearch " highlight matches
" highlight last inserted text
nnoremap gV `[v`]
" backup files
set backup
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set backupskip=/tmp/*,/private/tmp/*
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set writebackup
" Disable arrow keys
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>