-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
82 lines (56 loc) · 1.84 KB
/
vimrc
File metadata and controls
82 lines (56 loc) · 1.84 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
" Disable compatibility with vi which can cause unexpected issues.
set nocompatible
" Helps force plugins to load correctly when it is turned back on below.
filetype off
" TODO: Load plugins here (pathogen or vundle, we recommend vundle)
" Enable plugins and load plugin for the detected file type.
filetype plugin indent on
set omnifunc=syntaxcomplete#Complete
set omnifunc=ccomplete#Complete
" Turn syntax highlighting on.
syntax on
" Highlight cursor line underneath the cursor horizontally.
"set cursorline
" Highlight cursor line underneath the cursor vertically.
"set cursorcolumn
" Show line numbers.
set number
"set relativenumber
" Show file stats.
set ruler
" Blink cursor on error instead of beeping.
set visualbell
" Encoding.
set encoding=utf-8
" Security.
set modelines=0
" Show color column at 80 characters width, visual reminder of keepingcode line within a popular line width.
"set colorcolumn=80
"Wraps text instead of forcing a horizontal scroll
set wrap
"Reacts to the syntax/style of the code you are editing
set smartindent
"Makes sure that spaces are used for indenting lines, even when you press the "Tab" key
set expandtab
"This will insert spaces for a line indent
set tabstop=4
"Manages the indentation when you use the ">>" or "<<" operators to add or remove indentation to an already existing line/block of code
set shiftwidth=4
"The previous commands can be combined into a single line
"set tabstop=2 shiftwidth=2 expandtab
"Enable auto completion menu after pressing TAB.
set wildmenu
" Make wildmenu behave like similar to Bash completion.
set wildmode=list:longest
" Allow hidden buffers.
set hidden
" Rendering.
set ttyfast
" Status bar.
set laststatus=2
"Show what mode you are currently editing in
set showmode
"Shows partial commands in the last line of the screen
set showcmd
" highlight matching braces
set showmatch