+8
-42
lines changedFilter options
+8
-42
lines changed Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ A collection of language packs for Vim.
11
11
- It is also more secure (scripts loaded for every filetype are generated by vim-polyglot)
12
12
- Best syntax and indentation support (no other features). Hand-selected language packs.
13
13
- Automatically detects indentation (includes performance-optimized version of [vim-sleuth](https://github.com/tpope/vim-sleuth), can be disabled)
14
-
- Includes defaults from [vim-sensible](https://github.com/tpope/vim-sensible), which are usually necessary for editing in any language (can be disabled)
14
+
- Includes some defaults from [vim-sensible](https://github.com/tpope/vim-sensible), which are usually necessary for editing in any language (can be disabled)
15
15
16
16
\*To be completely honest, optimized `ftdetect` script takes around `10ms` to load.
17
17
Original file line number Diff line number Diff line change
@@ -15,23 +15,15 @@ endif
15
15
16
16
" Code taken from https://github.com/tpope/vim-sensible
17
17
" and (mostly comments) from https://github.com/sheerun/vimrc
18
+
"
19
+
" Only settings that matter for proper editing are left
18
20
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sensible')
19
21
" Autoindent when starting new line, or using `o` or `O`.
20
22
set autoindent
21
23
22
24
" Allow backspace in insert mode.
23
25
set backspace=indent,eol,start
24
26
25
-
" Don't scan included files. The .tags file is more performant.
26
-
set complete-=i
27
-
28
-
" Use 'shiftwidth' when using `<Tab>` in front of a line.
29
-
" By default it's used only for shift commands (`<`, `>`).
30
-
set smarttab
31
-
32
-
" Disable octal format for number processing.
33
-
set nrformats-=octal
34
-
35
27
" Allow for mappings including `Esc`, while preserving
36
28
" zero timeout after pressing it manually.
37
29
" (only vim needs a fix for this)
@@ -43,33 +35,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sensible')
43
35
" Enable highlighted case-insensitive incremential search.
44
36
set incsearch
45
37
46
-
" Use <C-L> to clear the highlighting of :set hlsearch.
47
-
if maparg('<C-L>', 'n') ==# ''
48
-
nnoremap <silent> <C-L> :nohlsearch<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
49
-
endif
50
-
51
-
" Always show window statuses, even if there's only one.
52
-
set laststatus=2
53
-
54
-
" Show the line and column number of the cursor position.
55
-
set ruler
56
-
57
-
" Autocomplete commands using nice menu in place of window status.
58
-
" Enable `Ctrl-N` and `Ctrl-P` to scroll through matches.
59
-
set wildmenu
60
-
61
-
" Keep 5 columns next to the cursor when scrolling horizontally.
62
-
if !&scrolloff
63
-
set scrolloff=1
64
-
endif
65
-
if !&sidescrolloff
66
-
set sidescrolloff=5
67
-
endif
68
-
69
-
" When 'wrap' is on, display last line even if it doesn't fit.
70
-
set display+=lastline
71
-
72
-
" Force utf-8 encoding
38
+
" Use utf-8 encoding by default
73
39
set encoding=utf-8
74
40
75
41
" Set default whitespace characters when using `:set list`
@@ -82,10 +48,10 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sensible')
82
48
set formatoptions+=j
83
49
endif
84
50
85
-
" Search upwards for tags file instead only locally
86
-
if has('path_extra')
87
-
setglobal tags-=./tags tags-=./tags; tags^=./tags;
88
-
endif
51
+
" Search upwards for tags file instead only locally
52
+
if has('path_extra')
53
+
setglobal tags-=./tags tags-=./tags; tags^=./tags;
54
+
endif
89
55
90
56
" Fix issues with fish shell
91
57
" https://github.com/tpope/vim-sensible/issues/50
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4