-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
66 lines (51 loc) · 1.14 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
" pretty syntax
syntax on
" show last command
set showcmd
" line numbers
set number
" highlight cursor position
set cursorcolumn
" show info about line at bottom
set ruler
" replace annoying bell with screenflash
set visualbell
" visual autocomplete for command menu
set wildmenu
" always show status at bottom
set laststatus=2
" highlight open/closing parens
set showmatch
" search as characters entered
set incsearch
" highlight search matches
set hlsearch
" whitespace
set wrap
set textwidth=79
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set noshiftround
" install vim-plug if not already
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd Enter * PlugInstall --sync | source $MYVIMRC
endif
" vim-plug setup
call plug#begin()
Plug 'preservim/nerdtree'
Plug 'junegunn/fzf'
call plug#end()
" Disable Arrow keys in Normal mode
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
" Disable Arrow keys in Insert mode
imap <up> <nop>
imap <down> <nop>
imap <left> <nop>
imap <right> <nop>