-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
55 lines (42 loc) · 957 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
"powerline stuff
python3 from powerline.vim import setup as powerline_setup
python3 powerline_setup()
python3 del powerline_setup
set t_Co=256
set nocompatible
"attempt to determine the file type
filetype indent plugin on
"syntax highlighting
if &t_Co > 2 || has("gui_running")
syntax on
endif
"command-line completion
set wildmenu
"shows partial commands
set showcmd
"highlight searches
set hlsearch
set vi+=n
"case insensitive search
set ignorecase
set smartcase
set incsearch
"displays cursor position
set ruler
set laststatus=2
"dialogue save changed instead of failing
set confirm
"display relative numbers
set number
set relativenumber
set numberwidth=3
:highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
"use spaces instead of tabs
set shiftwidth=4
set softtabstop=4
set expandtab
"habit breaking
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>