|
@@ -0,0 +1,134 @@
|
|
1
|
+"
|
|
2
|
+" General Options
|
|
3
|
+"
|
|
4
|
+" Disable compatibility mode
|
|
5
|
+"set nocp
|
|
6
|
+
|
|
7
|
+"
|
|
8
|
+" Indent Options
|
|
9
|
+"
|
|
10
|
+" New lines inherit the indentation of previous lines.
|
|
11
|
+set autoindent
|
|
12
|
+" Convert tabs to spaces.
|
|
13
|
+set expandtab
|
|
14
|
+" Enable indentation rules that are file-type specific.
|
|
15
|
+"set filetype indent on
|
|
16
|
+" When shifting lines, round the indentation to the nearest multiple of "shiftwidth."
|
|
17
|
+set shiftround
|
|
18
|
+" When shifting, indent using four spaces.
|
|
19
|
+set shiftwidth=4
|
|
20
|
+" Insert "tabstop" number of spaces when the "tab" key is pressed.
|
|
21
|
+set smarttab
|
|
22
|
+" Indent using four spaces.
|
|
23
|
+set tabstop=4
|
|
24
|
+
|
|
25
|
+"
|
|
26
|
+" Search Options
|
|
27
|
+"
|
|
28
|
+" Enable search highlighting.
|
|
29
|
+set hlsearch
|
|
30
|
+" Ignore case when searching.
|
|
31
|
+set ignorecase
|
|
32
|
+" Incremental search that shows partial matches.
|
|
33
|
+set incsearch
|
|
34
|
+" Automatically switch search to case-sensitive when search query contains an uppercase letter.
|
|
35
|
+set smartcase
|
|
36
|
+
|
|
37
|
+"
|
|
38
|
+" Performance Options
|
|
39
|
+"
|
|
40
|
+" Limit the files searched for auto-completes.
|
|
41
|
+"set complete-=i
|
|
42
|
+" Don't update screen during macro and script execution.
|
|
43
|
+"set lazyredraw
|
|
44
|
+
|
|
45
|
+"
|
|
46
|
+" Text Rendering Options
|
|
47
|
+"
|
|
48
|
+" Always try to show a paragraph's last line.
|
|
49
|
+set display+=lastline
|
|
50
|
+" Use an encoding that supports unicode.
|
|
51
|
+set encoding=utf-8
|
|
52
|
+" Avoid wrapping a line in the middle of a word.
|
|
53
|
+set linebreak
|
|
54
|
+" The number of screen lines to keep above and below the cursor.
|
|
55
|
+set scrolloff=1
|
|
56
|
+" The number of screen columns to keep to the left and right of the cursor.
|
|
57
|
+set sidescrolloff=5
|
|
58
|
+" Enable syntax highlighting.
|
|
59
|
+syntax enable
|
|
60
|
+" Enable line wrapping.
|
|
61
|
+set wrap
|
|
62
|
+
|
|
63
|
+"
|
|
64
|
+" User Interface Options
|
|
65
|
+"
|
|
66
|
+" Always display the status bar.
|
|
67
|
+set laststatus=2
|
|
68
|
+" Always show cursor position.
|
|
69
|
+set ruler
|
|
70
|
+" Display command line's tab complete options as a menu.
|
|
71
|
+"set wildmenu
|
|
72
|
+" Maximum number of tab pages that can be opened from the command line.
|
|
73
|
+"set tabpagemax=50
|
|
74
|
+" Change color scheme.
|
|
75
|
+"set colorscheme wombat256mod
|
|
76
|
+" Highlight the line currently under cursor.
|
|
77
|
+set cursorline
|
|
78
|
+" Show line numbers on the sidebar.
|
|
79
|
+set number
|
|
80
|
+" Show line number on the current line and relative numbers on all other lines.
|
|
81
|
+"set relativenumber
|
|
82
|
+" Disable beep on errors.
|
|
83
|
+set noerrorbells
|
|
84
|
+" Flash the screen instead of beeping on errors.
|
|
85
|
+set visualbell
|
|
86
|
+" Enable mouse for scrolling and resizing.
|
|
87
|
+set mouse=a
|
|
88
|
+" Set the window's title, reflecting the file currently being edited.
|
|
89
|
+set title
|
|
90
|
+" Use colors that suit a dark background.
|
|
91
|
+"set background=dark
|
|
92
|
+
|
|
93
|
+"
|
|
94
|
+" Code Folding Options
|
|
95
|
+"
|
|
96
|
+" Fold based on indention levels.
|
|
97
|
+"set foldmethod=indent
|
|
98
|
+" Only fold up to three nested levels.
|
|
99
|
+"set foldnestmax=3
|
|
100
|
+" Disable folding by default.
|
|
101
|
+"set nofoldenable
|
|
102
|
+
|
|
103
|
+"
|
|
104
|
+" Miscellaneous Options
|
|
105
|
+"
|
|
106
|
+" Automatically re-read files if unmodified inside Vim.
|
|
107
|
+"set autoread
|
|
108
|
+" Allow backspacing over indention, line breaks and insertion start.
|
|
109
|
+"set backspace=indent,eol,start
|
|
110
|
+" Directory to store backup files.
|
|
111
|
+set backupdir=~/.cache/vim
|
|
112
|
+" Display a confirmation dialog when closing an unsaved file.
|
|
113
|
+set confirm
|
|
114
|
+" Directory to store swap files.
|
|
115
|
+set dir=~/.cache/vim
|
|
116
|
+" Delete comment characters when joining lines.
|
|
117
|
+"set formatoptions+=j
|
|
118
|
+" Hide files in the background instead of closing them.
|
|
119
|
+"set hidden
|
|
120
|
+" Increase the undo limit.
|
|
121
|
+set history=1000
|
|
122
|
+" Ignore file's mode lines; use vimrc configurations instead.
|
|
123
|
+"set nomodeline
|
|
124
|
+" Disable swap files.
|
|
125
|
+"set noswapfile
|
|
126
|
+" Interpret octal as decimal when incrementing numbers.
|
|
127
|
+"set nrformats-=octal
|
|
128
|
+" The shell used to execute commands.
|
|
129
|
+"set shell
|
|
130
|
+" Enable spellchecking.
|
|
131
|
+"set spell
|
|
132
|
+" Ignore files matching these patterns when opening files based on a glob pattern.
|
|
133
|
+"set wildignore+=.pyc,.swp
|
|
134
|
+
|