-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
35 lines (29 loc) · 1.38 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
" Use ref: http://vimdoc.sourceforge.net/htmldoc/options.html#option-summary
" Tell VIM to be more VIM-like, instead of strict VI-compatibility
" Used to Fix Arrow Key Behavior
" Actually unnecessary when a .vimrc is even PRESENT per ':h nocompatible', but here as a reminder
set nocompatible
" Allow mouse selection and positioning!
set mouse&
set mouse=a
" Modify indent behavior
set expandtab " Expand an entered Tab to spaces
set autoindent " Copy indent from current line when starting a new line
set smarttab
set tabstop=2 " Indent is 2 spaces
set smartindent " C-style indenting, but looser - for example, indent after {
" Improve search
set hlsearch " Highlight search results
set incsearch " Search as you type, not just when you hit enter
" Enable powerline and always show a statusline if vim
if has("python3")
python3 from powerline.vim import setup as powerline_setup
python3 powerline_setup()
python3 del powerline_setup
set laststatus=2
endif
" Miscellaneous
filetype plugin on " Auto-detect un-labeled filetypes
set title " Set terminal title to the file being edited
set number " Show line numbers
set vb t_vb= " Disable the error bell!