aboutsummaryrefslogtreecommitdiff
path: root/vim/config/search.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/search.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/search.vim')
-rw-r--r--vim/config/search.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/config/search.vim b/vim/config/search.vim
index 66b81ab0..0f10eea5 100644
--- a/vim/config/search.vim
+++ b/vim/config/search.vim
@@ -3,11 +3,11 @@ if has('extra_search')
" Searching as I enter my pattern, \i toggles this
set incsearch
- nnoremap <leader>i :setlocal incsearch! incsearch?<CR>
+ nnoremap <Leader>i :setlocal incsearch! incsearch?<CR>
" Highlight search results, \h toggles this
set hlsearch
- nnoremap <leader>h :setlocal hlsearch! hlsearch?<CR>
+ nnoremap <Leader>h :setlocal hlsearch! hlsearch?<CR>
" Pressing ^L will clear highlighting until the next search-related
" operation; quite good because the highlighting gets distracting after