-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_vimrc
More file actions
80 lines (55 loc) · 1.91 KB
/
dot_vimrc
File metadata and controls
80 lines (55 loc) · 1.91 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
" Source: https://www.vim.page/vimrc-configuration-guide
" 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)
" See also:
" - https://vimawesome.com/
" - https://deepwiki.com/amix/vimrc/1-overview
" - https://www.freecodecamp.org/news/vimrc-configuration-guide-customize-your-vim-editor/
" Enable plugins and load plugin for the detected file type.
filetype plugin indent on
" Turn syntax highlighting on.
syntax on
" Highlight cursor line underneath the cursor horizontally.
set cursorline
" Highlight cursor line underneath the cursor vertically.
" set cursorcolumn
" Set shift width to 4 spaces.
set shiftwidth=4
" 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=120
"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
"This will insert 2 spaces for a line indent
"Manages the indentation when you use the ">>" or "<<" operators to add or remove indentation to an already existing line/block of code
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