aboutsummaryrefslogtreecommitdiff
path: root/vim/config/whitespace.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-04 02:20:55 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-04 02:20:55 +1300
commit7ed0559c10d4bac62ef315560eaa592d9699ae32 (patch)
tree6667e0567f5f1c0ae619ee10527091425ea6eaad /vim/config/whitespace.vim
parentRename a misnamed variable in big_file.vim (diff)
downloaddotfiles-7ed0559c10d4bac62ef315560eaa592d9699ae32.tar.gz
dotfiles-7ed0559c10d4bac62ef315560eaa592d9699ae32.zip
Use <Plug> prefix, make space strip configurable
This properly abstracts out the StripTrailingWhitespace mapping rather than forcing it to <leader>x within the plugin itself. A bit nicer this way.
Diffstat (limited to 'vim/config/whitespace.vim')
-rw-r--r--vim/config/whitespace.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/vim/config/whitespace.vim b/vim/config/whitespace.vim
new file mode 100644
index 00000000..75ab7173
--- /dev/null
+++ b/vim/config/whitespace.vim
@@ -0,0 +1,2 @@
+" \x strips trailing whitespace via a custom plugin
+nmap <leader>x <Plug>StripTrailingWhitespace