From 7fbf4a822abb9d4d559f20c464cf3895333e0ea7 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 15 Apr 2018 17:37:39 +0200 Subject: Refactoring: See 'convenience' section --- vimrc-full | 98 +++++++++++++++++++++++++------------------------------------- 1 file changed, 40 insertions(+), 58 deletions(-) diff --git a/vimrc-full b/vimrc-full index 1a1b201..c6dc9d8 100644 --- a/vimrc-full +++ b/vimrc-full @@ -1,4 +1,4 @@ -" vim: noai:ts=2:sw=2:sts=2 iskeyword+=\:,\!,\<,\>,\-,\& +" vim: noai:ts=2:sw=2:sts=2 iskeyword+=\:,\!,\<,\>,\-,\& number "======================================================================================================================= " GENERAL: @@ -9,6 +9,7 @@ set ts=4 sts=4 sw=4 expandtab | " better done with a modeline or local exrc set virtualedit=all | " virtual edit should be default behaviour, because I don't see any reason against set nonumber norelativenumber | " do not show numbers by default, because that causes a performance loss, instead activate them on a file type basis set ignorecase smartcase hlsearch | " 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) +set cindent cinoptions+=(0 | " indent at parentheses set path+=** | " allow recursive searches for files @@ -258,7 +259,6 @@ set sessionoptions+=winsize " set nocindent smartindent | " use smart indent rather then cindent set noautoindent set nosmartindent -set cindent cinoptions+=(0 | " indent at parentheses set noshiftround | " indent/un-indent sna=ps to multiple of shiftwidths set noequalalways | " do not evenly size windows when opening new or closing old @@ -321,7 +321,6 @@ if has("autocmd") " set omnifunc=syntaxcomplete#Complete augroup set_window_title " { - " autocmd BufWinEnter quickfix setl statusline=%t " autocmd BufEnter * let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]" autocmd CursorHold * let &titlestring = "%t %y ".$USER."@".hostname().":%{expand(\"%:~:.:h\")}" set title @@ -413,35 +412,6 @@ if has("autocmd") " use the shada/viminfo file to return the cursor to where it was... autocmd BufReadPost * call setpos(".", getpos("'\"")) - - augroup ToggleQuickFix - function! ToggleQuickFix() - if exists("g:qwindow") - lclose - unlet g:qwindow - else - try - lopen 10 - let g:qwindow = 1 - catch - echo "No Errors found!" - endtry - endif - endfunction - function! QFixToggle(forced) - if exists("g:qfix_win") && a:forced == 0 - cclose - unlet g:qfix_win - else - copen 10 - let g:qfix_win = bufnr("$") - endif - endfunction - - nmap