aboutsummaryrefslogtreecommitdiff
path: root/vim/config/wrap.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-05-18 16:13:59 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-05-18 16:15:01 +1200
commit641a96bc1274d4be8dace8e034fc1abbea252c25 (patch)
tree7f0ef16b2e60b366ed746952bb855dbaa3f6fa7d /vim/config/wrap.vim
parentRebind Space in Vim normal mode to scroll (diff)
downloaddotfiles-641a96bc1274d4be8dace8e034fc1abbea252c25.tar.gz
dotfiles-641a96bc1274d4be8dace8e034fc1abbea252c25.zip
Toggle Vim 'list', 'number' and 'wrap' globally
No particular reason beyond preference; I think of these as properties of the window itself, not the window-buffer pair, so it makes more sense to me this way.
Diffstat (limited to 'vim/config/wrap.vim')
-rw-r--r--vim/config/wrap.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/config/wrap.vim b/vim/config/wrap.vim
index a90c2765..a2d442fa 100644
--- a/vim/config/wrap.vim
+++ b/vim/config/wrap.vim
@@ -2,7 +2,7 @@
set nowrap
nnoremap <silent>
\ <Leader>w
- \ :<C-U>setlocal wrap! wrap?<CR>
+ \ :<C-U>set wrap! 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