-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
36 lines (24 loc) · 779 Bytes
/
.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
" Tell vim to not pretend to be vi
set nocompatible
" Syntax highlighting
syntax enable
" Turn on plugs-ins, including indent control
filetype plugin indent on
" TAB = 4 spaces
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
" Use literal TAB charaters, if writing Golang
autocmd Filetype go setlocal expandtab!
" Left-hand line numbers show distance from current line.
set relativenumber
" Search through all subdirectories
set path+=**
" Highlight all search results by default.
" Unhighlight after the fact with :nohl
set hlsearch
" Adds fzf for fuzzy-file finding
set rtp+=~/projects/repos/fzf
" Allow faster scrolling
nnoremap <C-e> 3<C-e>
nnoremap <C-y> 3<C-y>
" See the whitespace characters
set listchars=tab:>-,trail:␣,extends:␣,precedes:␣