aboutsummaryrefslogtreecommitdiff
path: root/vim/config/wrap.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-03 20:35:23 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-03 20:35:23 +1300
commit3f586a3d48bb04ef9206a202235b54cfcec38859 (patch)
treea397b67d51b09fb8de35eabe004e2bc22693c207 /vim/config/wrap.vim
parentMerge branch 'hotfix/v0.4.2' into develop (diff)
downloaddotfiles-3f586a3d48bb04ef9206a202235b54cfcec38859.tar.gz
dotfiles-3f586a3d48bb04ef9206a202235b54cfcec38859.zip
Use <Leader>/<LocalLeader> correctly in Vim config
From ":help <LocalLeader>": > In a global plugin <Leader> should be used and in a filetype plugin > <LocalLeader>. "mapleader" and "maplocalleader" can be equal.
Diffstat (limited to 'vim/config/wrap.vim')
-rw-r--r--vim/config/wrap.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/config/wrap.vim b/vim/config/wrap.vim
index 0e5866d8..7a442e89 100644
--- a/vim/config/wrap.vim
+++ b/vim/config/wrap.vim
@@ -1,6 +1,6 @@
" Don't wrap by default, but use \w to toggle it on or off quickly
set nowrap
-nnoremap <leader>w :setlocal wrap! wrap?<CR>
+nnoremap <Leader>w :setlocal 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
@@ -58,7 +58,7 @@ if has('linebreak')
endfunction
" Map \b to defined function
- nnoremap <silent> <leader>b :<C-U>call <SID>ToggleBreak()<CR>
+ nnoremap <silent> <Leader>b :<C-U>call <SID>ToggleBreak()<CR>
endif
endif