From 8b156457b45ae6fa971362d68141fb177974b218 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 28 Oct 2017 21:47:05 +1300 Subject: Move windows .vimrc config into subfile Not the operating system; Vim editor windows. --- vim/config/windows.vim | 27 +++++++++++++++++++++++++++ vim/vimrc | 28 ---------------------------- 2 files changed, 27 insertions(+), 28 deletions(-) create mode 100644 vim/config/windows.vim diff --git a/vim/config/windows.vim b/vim/config/windows.vim new file mode 100644 index 00000000..a54b8997 --- /dev/null +++ b/vim/config/windows.vim @@ -0,0 +1,27 @@ +" Configuration for window features +if has('windows') + + " Show the status in a distinct bar above the command line only if there's + " more than one window on the screen or in the current tab + set laststatus=1 + + " Don't resize windows we're not splitting (Tmux-like; think Mondrian) + set noequalalways + + " New split windows appear below or to the right of the existing window, + " not above or to the left per the default + set splitbelow + if has('vertsplit') + set splitright + endif + + " Only show the tab bar if there's more than one tab + if exists('&showtabline') + set showtabline=1 + endif + + " Get rid of visually noisy folding characters + if has('folding') + let &fillchars = 'diff: ,fold: ,vert: ' + endif +endif diff --git a/vim/vimrc b/vim/vimrc index 1442fe80..19dbd482 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -227,34 +227,6 @@ if has('virtualedit') set virtualedit+=block endif -" Configuration for window features -if has('windows') - - " Show the status in a distinct bar above the command line only if there's - " more than one window on the screen or in the current tab - set laststatus=1 - - " Don't resize windows we're not splitting (Tmux-like; think Mondrian) - set noequalalways - - " New split windows appear below or to the right of the existing window, - " not above or to the left per the default - set splitbelow - if has('vertsplit') - set splitright - endif - - " Only show the tab bar if there's more than one tab - if exists('&showtabline') - set showtabline=1 - endif - - " Get rid of visually noisy folding characters - if has('folding') - let &fillchars = 'diff: ,fold: ,vert: ' - endif -endif - " Use the tilde as an operator with motions, rather than just swapping the " case of the character under the cursor set tildeop -- cgit v1.2.3