diff options
author | Max Christian Pohle | 2017-07-05 21:25:56 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-07-05 21:25:56 +0200 |
commit | abdffecf5d984f5de8de1cdf4b10550a0af3ea1b (patch) | |
tree | 550ccaf28e0076a320edb36327f749c14dcd283a | |
parent | 16fc627d9a82889119ddb528e53a44d5c64ed850 (diff) | |
download | vim-karlmarks-abdffecf5d984f5de8de1cdf4b10550a0af3ea1b.tar.bz2 vim-karlmarks-abdffecf5d984f5de8de1cdf4b10550a0af3ea1b.zip |
Enabled code-folding, virtualedit and exrc files
Also improved file name handling in config-files
-rw-r--r-- | vimrc-full | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -36,7 +36,8 @@ set mousemodel=popup | " only in gvim: right click opens a popup-menu | |||
36 | set nocursorcolumn | " turn visual cursor column off (improves performance) | 36 | set nocursorcolumn | " turn visual cursor column off (improves performance) |
37 | set nocursorline | " turn visual cursor line off (improves performance) | 37 | set nocursorline | " turn visual cursor line off (improves performance) |
38 | set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers | 38 | set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers |
39 | set nofoldenable | " disable code folding. I hate code folding | 39 | set foldenable | " explicitly enable code folding, since this config makes it usable |
40 | set exrc | " enable exrc, a specific .exrc per project, which can contain usual .vimrc commands | ||
40 | set noequalalways | " do not evenly size windows when opening new or closing old | 41 | set noequalalways | " do not evenly size windows when opening new or closing old |
41 | set foldmethod=syntax | " foldlevel: syntax, indent, manual | 42 | set foldmethod=syntax | " foldlevel: syntax, indent, manual |
42 | set foldcolumn=1 | " if code folding gets used display it in the clutter bar, where line numbers live | 43 | set 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 |
72 | set updatetime=80 | " updates the screen more often | 73 | set updatetime=80 | " updates the screen more often |
73 | set viminfo+=% | " restore buffer list | 74 | set viminfo+=% | " restore buffer list |
75 | set virtualedit=all | " virtual edit should be default behaviour, because I don't see any reason against | ||
74 | set writedelay=0 | 76 | set writedelay=0 |
75 | set wildmenu | " use a menu in the command line | 77 | set wildmenu | " use a menu in the command line |
76 | set wildmode=longest:full | " do not preselect any entry and show all possible | 78 | set 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 |