aboutsummaryrefslogtreecommitdiff
path: root/vimrc-full
diff options
context:
space:
mode:
authorMax Christian Pohle2017-07-05 21:25:56 +0200
committerMax Christian Pohle2017-07-05 21:25:56 +0200
commitabdffecf5d984f5de8de1cdf4b10550a0af3ea1b (patch)
tree550ccaf28e0076a320edb36327f749c14dcd283a /vimrc-full
parent16fc627d9a82889119ddb528e53a44d5c64ed850 (diff)
downloadvim-karlmarks-abdffecf5d984f5de8de1cdf4b10550a0af3ea1b.tar.bz2
vim-karlmarks-abdffecf5d984f5de8de1cdf4b10550a0af3ea1b.zip
Enabled code-folding, virtualedit and exrc files
Also improved file name handling in config-files
Diffstat (limited to 'vimrc-full')
-rw-r--r--vimrc-full7
1 files changed, 6 insertions, 1 deletions
diff --git a/vimrc-full b/vimrc-full
index de22dcc..3fdb399 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -36,7 +36,8 @@ set mousemodel=popup | " only in gvim: right click opens a popup-menu
36set nocursorcolumn | " turn visual cursor column off (improves performance) 36set nocursorcolumn | " turn visual cursor column off (improves performance)
37set nocursorline | " turn visual cursor line off (improves performance) 37set nocursorline | " turn visual cursor line off (improves performance)
38set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers 38set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers
39set nofoldenable | " disable code folding. I hate code folding 39set foldenable | " explicitly enable code folding, since this config makes it usable
40set exrc | " enable exrc, a specific .exrc per project, which can contain usual .vimrc commands
40set noequalalways | " do not evenly size windows when opening new or closing old 41set noequalalways | " do not evenly size windows when opening new or closing old
41set foldmethod=syntax | " foldlevel: syntax, indent, manual 42set foldmethod=syntax | " foldlevel: syntax, indent, manual
42set foldcolumn=1 | " if code folding gets used display it in the clutter bar, where line numbers live 43set foldcolumn=1 | " if code folding gets used display it in the clutter bar, where line numbers live
@@ -71,6 +72,7 @@ set tags+=../tags
71" set colorcolumn= | " not used, because we have a :match directive for textwidth 72" set colorcolumn= | " not used, because we have a :match directive for textwidth
72set updatetime=80 | " updates the screen more often 73set updatetime=80 | " updates the screen more often
73set viminfo+=% | " restore buffer list 74set viminfo+=% | " restore buffer list
75set virtualedit=all | " virtual edit should be default behaviour, because I don't see any reason against
74set writedelay=0 76set writedelay=0
75set wildmenu | " use a menu in the command line 77set wildmenu | " use a menu in the command line
76set wildmode=longest:full | " do not preselect any entry and show all possible 78set wildmode=longest:full | " do not preselect any entry and show all possible
@@ -573,6 +575,9 @@ if has("autocmd")
573 autocmd FileType c,cpp setlocal breakat-=- 575 autocmd FileType c,cpp setlocal breakat-=-
574 " autocmd FileType c,cpp setlocal iskeyword-=_ 576 " autocmd FileType c,cpp setlocal iskeyword-=_
575 577
578 " the following helps to make file=/etc/something work with gf, but disallows filenames with an equal sign in them
579 autocmd FileType conf setlocal isfname-==
580
576 " keyboard mapping for xml alike languages 581 " keyboard mapping for xml alike languages
577 " Alt-Up : Move cursor up one tag 582 " Alt-Up : Move cursor up one tag
578 " Alt-Down: Move cursor down one tag 583 " Alt-Down: Move cursor down one tag
..