aboutsummaryrefslogtreecommitdiff
path: root/vimrc-common
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc-common')
-rw-r--r--vimrc-common35
1 files changed, 20 insertions, 15 deletions
diff --git a/vimrc-common b/vimrc-common
index 6f0d7af..6201d4b 100644
--- a/vimrc-common
+++ b/vimrc-common
@@ -4,25 +4,30 @@
4" project-local .vimrc file (activated with exrc setting) 4" project-local .vimrc file (activated with exrc setting)
5"======================================================================================================================= 5"=======================================================================================================================
6 6
7set exrc | " enable exrc, a specific .exrc per project, which can contain usual .vimrc commands
8set modeline | " set variables specific to a file, like indentation by adding a comment
9set textwidth=0 | " better done with modeline or local exrc and not here
10set ts=4 sts=4 sw=4 expandtab | " better done with a modeline or local exrc
11set virtualedit=all | " virtual edit should be default behaviour, because I don't see any reason against
12set number norelativenumber | " do not show numbers by default, because that causes a performance loss, instead activate them on a file type basis
13set ignorecase smartcase | " search with ignore case by default, but use case sensitive search when one capital char is contained and highlight while typing (even though its slower)
14set hlsearch incsearch | " highlight pattern while entering it (performance wise this isn't that good)
15" set cindent cinoptions+=(0 | " indent at parentheses
16
17set path+=** | " allow recursive searches for files
18let &path = &path.",/usr/lib/modules/".substitute(system('uname -r'), "\n", "", "")."/build/include"
19
20filetype on 7filetype on
21filetype plugin on 8filetype plugin on
22filetype indent on 9filetype indent on
23 10
24syntax on | " enable syntax highlighting 11syntax on | " enable syntax highlighting
25syntax sync minlines=60 | " how many preceding lines will be parsed? (has performance impact) 12syntax sync minlines=60 | " how many preceding lines will be parsed? (has performance impact)
13
14set secure | " to ensure, that modelines do not contain executable code
15set noexrc | " exrc was nice, but has too many security problems. Now using editorconfig instead (see plugins)
16set modeline | " set variables specific to a file, like indentation by adding a comment (TODO: should probably be replaced by editorconfig)
17set ts=4 sts=4 sw=4 expandtab textwidth=0 | " better done with a modeline or local exrc
18set virtualedit=all | " virtual edit should be default behaviour, because I don't see any reason against
19set number norelativenumber | " do not show numbers by default, because that causes a performance loss, instead activate them on a file type basis
20set ignorecase smartcase | " search with ignore case by default, but use case sensitive search when one capital char is contained and highlight while typing (even though its slower)
21set hlsearch incsearch | " highlight pattern while entering it (performance wise this isn't that good)
22" set cindent cinoptions+=(0 | " indent at parentheses
23
24
25"=======================================================================================================================
26" PATH -- where to search for includes (e.g. `gf` or `:find`)
27"=======================================================================================================================
28set path+=** | " allow recursive searches for files
29let &path = &path.",/usr/lib/modules/".substitute(system('uname -r'), "\n", "", "")."/build/include" | " TODO: could fail under windows (no uname)
30
26 31
27"======================================================================================================================= 32"=======================================================================================================================
28" SPELL_CHECKING: 33" SPELL_CHECKING:
..