sponsor Vim development Vim logo Vim Book Ad

clear_local_maps.vim : Clear buffer-local leader mappings

 script karma  Rating 6/5, Downloaded by 560  Comments, bugs, improvements  Vim wiki

created by
Tom Ryder
 
script type
utility
 
description
This plugin provides an autoload function that clears all buffer-local mappings that begin with maplocalleader. It's intended for use at the start of an augroup that sets up filetype mappings, to clear away existing ones in the buffer first.

https://dev.sanctum.geek.nz/cgit/vim-clear-local-maps.git/
 
install details
Drop autoload/clear_local_maps.vim in your ~/.vim/autoload directory. Add doc/clear_local_maps.txt in ~/.vim/doc if you want the help file. Otherwise, use your favourite Vim plugin package manager.

You might use it in your vimrc like this:

    let g:maplocalleader = '_'
    augroup vimrc_filetype_mappings
      autocmd!
      autocmd FileType * call clear_local_maps#Clear()
      " Filetype-local mappings go here...
    augroup END
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-clear-local-maps-0.2.0.tar.gz 0.2.0 2018-06-26 7.0 Tom Ryder Clear global aux variable after use
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github