diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 19:11:22 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 19:11:22 +1300 |
commit | 1834c083aa436d59713b0054566e06648d67ac1e (patch) | |
tree | c49418442110da13aef79acfb7af29eee95ab4b1 /vim/config/search.vim | |
parent | Move viminfo conf from spell.vim into new subfile (diff) | |
download | dotfiles-1834c083aa436d59713b0054566e06648d67ac1e.tar.gz dotfiles-1834c083aa436d59713b0054566e06648d67ac1e.zip |
Apply name conventions, scoping to Vim identifiers
The Google VimScript Style Guide says
<https://google.github.io/styleguide/vimscriptguide.xml#Naming>:
>In general, use plugin-names-like-this, FunctionNamesLikeThis,
>CommandNamesLikeThis, augroup_names_like_this,
>variable_names_like_this.
Adjusted variable, function, and `augroup` names accordingly, including
setting script scope for some of the functions and their calls (`s:` and
`<SID>` prefixes).
Initially I tried using `prefix#`, but it turns out that this is a
namespacing contention for publically callable functions like
`pathogen#infect`, and none of these functions need to be publically
callable.
Diffstat (limited to 'vim/config/search.vim')
-rw-r--r-- | vim/config/search.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/config/search.vim b/vim/config/search.vim index ed71bff8..56a461b3 100644 --- a/vim/config/search.vim +++ b/vim/config/search.vim @@ -17,7 +17,7 @@ if has('extra_search') " Clear search highlighting as soon as I enter insert mode, and restore it " once I leave it if has('autocmd') - augroup highlight + augroup dotfiles_highlight autocmd! silent! autocmd InsertEnter * set nohlsearch silent! autocmd InsertLeave * set hlsearch |