diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-28 21:47:05 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-28 21:52:10 +1300 |
commit | 8b156457b45ae6fa971362d68141fb177974b218 (patch) | |
tree | 16c6c85b080daaa18a8b8ac72e41accb1b2214a9 | |
parent | Move wildmenu .vimrc config into subfile (diff) | |
download | dotfiles-8b156457b45ae6fa971362d68141fb177974b218.tar.gz dotfiles-8b156457b45ae6fa971362d68141fb177974b218.zip |
Move windows .vimrc config into subfile
Not the operating system; Vim editor windows.
-rw-r--r-- | vim/config/windows.vim | 27 | ||||
-rw-r--r-- | vim/vimrc | 28 |
2 files changed, 27 insertions, 28 deletions
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 @@ -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 |