aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-30 22:05:19 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-30 22:22:39 +1300
commit75a1a8dee95854f0bcc6bb7b0f2b0cca1b8155e0 (patch)
tree8abc6cf11ec5ae10d936c00f7fed4a7e890e6e7e
parentToggle 'wrap' and related Vim options locally (diff)
downloaddotfiles-75a1a8dee95854f0bcc6bb7b0f2b0cca1b8155e0.tar.gz
dotfiles-75a1a8dee95854f0bcc6bb7b0f2b0cca1b8155e0.zip
Rearrange two options for clarity
It makes more sense to discuss how something wraps after configuring whether it wraps at all.
-rw-r--r--vim/config/wrap.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/config/wrap.vim b/vim/config/wrap.vim
index e8caff66..94a3163a 100644
--- a/vim/config/wrap.vim
+++ b/vim/config/wrap.vim
@@ -1,12 +1,12 @@
+" Don't wrap by default, but use \w to toggle it on or off quickly
+set nowrap
+nnoremap <leader>w :setlocal wrap!<CR>
+
" When wrapping text, if a line is so long that not all of it can be shown on
" the screen, show as much as possible anyway; by default Vim fills the left
" column with @ symbols instead, which I don't find very helpful
set display=lastline
-" Don't wrap by default, but use \w to toggle it on or off quickly
-set nowrap
-nnoremap <leader>w :setlocal wrap!<CR>
-
" When wrapping, j and k should move by screen row, and not to the same
" column number in the previous logical line, which feels very clumsy and is
" seldom particularly helpful; you can use n| to jump to the nth column in a