-
Notifications
You must be signed in to change notification settings - Fork 4
/
options_modeless.vimrc
62 lines (40 loc) · 1.13 KB
/
options_modeless.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
56
57
58
59
60
61
62
#!/bin/sh
"Lines that start with quotation marks are comments."
"The first line tricks the editor into using shell script syntax highlighting."
"Options for modeless vim."
"Note that some of these options will overwrite"
" the options set by `options_basic.vimrc`."
"General options."
"Disable modeline"
set nomodeline
"Set the command window height to just 1 line"
set cmdheight=1
"Display line numbers on the left"
set number
"Encoding that is shown"
set encoding=utf-8
"Encoding that is written"
set fileencoding=utf-8
"Ensure that file ends with <EOL>"
set fixendofline
set endofline
"Always use LF, never use CRLF"
set ff=unix
set ffs=
"Indentation options."
"Enable the indent plugin"
filetype plugin indent on
"When opening a new line and no filetype-specific indenting is enabled, keep the same indent as the line you're currently on."
set autoindent
"Wrap long lines (only affects display)"
set wrap
"Every wrapped line will continue visually indented"
set breakindent
set breakindentopt=shift:2
"Start in insertmode"
set insertmode
"Do not show mode text"
set showmode!
"Keybinds"
"F2: Toggle pastemode."
set pastetoggle=<F2>