-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
54 lines (39 loc) · 1.43 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
" All system-wide defaults are set in $VIMRUNTIME/archlinux.vim (usually just
" /usr/share/vim/vimfiles/archlinux.vim) and sourced by the call to :runtime
" you can find below. If you wish to change any of those settings, you should
" do it in this file (/etc/vimrc), since archlinux.vim will be overwritten
" everytime an upgrade of the vim packages is performed. It is recommended to
" make changes after sourcing archlinux.vim since it alters the value of the
" 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages.
runtime! archlinux.vim
" If you prefer the old-style vim functionalty, add 'runtime! vimrc_example.vim'
" Or better yet, read /usr/share/vim/vim80/vimrc_example.vim or the vim manual
" and configure vim to your own liking!
" do not load defaults if ~/.vimrc is missing
"let skip_defaults_vim=1
" Make clipboard X clipboard
set clipboard=unnamedplus
" Disable swap
set noswapfile
" always highlight sytax
syntax enable
" Enable Hybrid line numbers
set number relativenumber
" Enable wildmenu for file selection
set wildmenu
" enable fuzzy file search
set path+=**
" 2-space tabstop
set tabstop=2
" 2-space tab for >> and <<
set shiftwidth=2
" enter spaces in place of tabs
set expandtab
" enable autoindent
set autoindent
" Stop linewrap from splitting words
set linebreak
" Always display n lines under/above cursor
set scrolloff=5