Commit 8beb5e26 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add vim-express and an expression for switching spaces

`<Leader>n` to switch all spaces in a selection to non-breaking-spaces
`<Leader>b` to do the inverse
parent e8ccf417
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -61,3 +61,6 @@
[submodule "/home/dom/.vim/bundle/vim-jinja2"]
	path = /home/dom/.vim/bundle/vim-jinja2
	url = https://github.com/Glench/Vim-Jinja2-Syntax.git
[submodule "/home/dom/.vim/bundle/vim-express"]
	path = /home/dom/.vim/bundle/vim-express
	url = https://github.com/tommcdo/vim-express.git

vim-express @ 2cbe706b

Original line number Diff line number Diff line
Subproject commit 2cbe706b4940dd567596b892e2d6af829b096b4b
+4 −0
Original line number Diff line number Diff line
@@ -229,6 +229,10 @@ set undofile undodir=~/.vim/undo/

" === MISC COMMANDS ===

" Convert spaces to non-breaking-spaces and vice-versa
au VimEnter * MapSubpress <Leader>n /\ / /g
au VimEnter * MapSubpress <Leader>b /\%u00a0/\ /g

" A homemade command to copy the unamed register up to tmux's buffers
map tp :call s:pasteup()<CR><ESC>
func! s:pasteup()