From b8423587d9bc23e9d2945eb381a01248fbf0d573 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Mon, 23 Feb 2015 20:47:47 -0600 Subject: [PATCH] Add Split Different as a vim til. --- vim/split-different.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 vim/split-different.md diff --git a/vim/split-different.md b/vim/split-different.md new file mode 100644 index 0000000..861ac29 --- /dev/null +++ b/vim/split-different.md @@ -0,0 +1,32 @@ +# Split Different + +Vim's defaults for `:split` and `:vsplit` are to open the splits above and +to the left, respectively. I prefer for them to the split below and to the +right, respectively. To get `:split` to split below: + +``` +:set splitbelow +``` + +and to get `:vsplit` to split to the right: + +``` +:set splitright +``` + +Add those two lines to your `.vimrc` to have them set that way all the time. + +If you have them set as such in `.vimrc` and want to temporarily revert the +setting for the current file, type: + +``` +:set nosplitbelow +``` + +or + +``` +:set nosplitright +``` + +as commands.