From abdffecf5d984f5de8de1cdf4b10550a0af3ea1b Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Wed, 5 Jul 2017 21:25:56 +0200 Subject: Enabled code-folding, virtualedit and exrc files Also improved file name handling in config-files --- vimrc-full | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'vimrc-full') 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 set nocursorcolumn | " turn visual cursor column off (improves performance) set nocursorline | " turn visual cursor line off (improves performance) set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers -set nofoldenable | " disable code folding. I hate code folding +set foldenable | " explicitly enable code folding, since this config makes it usable +set exrc | " enable exrc, a specific .exrc per project, which can contain usual .vimrc commands set noequalalways | " do not evenly size windows when opening new or closing old set foldmethod=syntax | " foldlevel: syntax, indent, manual 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 " set colorcolumn= | " not used, because we have a :match directive for textwidth set updatetime=80 | " updates the screen more often set viminfo+=% | " restore buffer list +set virtualedit=all | " virtual edit should be default behaviour, because I don't see any reason against set writedelay=0 set wildmenu | " use a menu in the command line set wildmode=longest:full | " do not preselect any entry and show all possible @@ -573,6 +575,9 @@ if has("autocmd") autocmd FileType c,cpp setlocal breakat-=- " autocmd FileType c,cpp setlocal iskeyword-=_ + " the following helps to make file=/etc/something work with gf, but disallows filenames with an equal sign in them + autocmd FileType conf setlocal isfname-== + " keyboard mapping for xml alike languages " Alt-Up : Move cursor up one tag " Alt-Down: Move cursor down one tag -- cgit v1.2.3