]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add shortcuts for fixing fake tabs/spaces
authormartin f. krafft <madduck@madduck.net>
Tue, 16 Oct 2007 11:12:12 +0000 (12:12 +0100)
committermartin f. krafft <madduck@madduck.net>
Mon, 22 Oct 2007 14:16:00 +0000 (16:16 +0200)
.vimrc

diff --git a/.vimrc b/.vimrc
index 61342a8ea2e94f2dfec7e3d266d9895847a06ddb..4651236064d141d373a86e47935c31193e3bfbae 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -1483,6 +1483,13 @@ imap <Leader>-- –
 imap <Leader>--- —
 imap <Leader>... …
 
 imap <Leader>--- —
 imap <Leader>... …
 
+" replace fake tab chars with real ones
+map <Leader>ft :%s,⇝·*,     ,g<CR>:nohlsearch<CR>``
+" replace fake spaces with real ones
+map <Leader>ft :%s,·, ,g<CR>:nohlsearch<CR>``
+
+map <Leader>sy :echo synIDattr(synID(line("."), col("."), 1), "name")<CR>
+
 iab sgf Sehr geehrte Frau
 iab sgh Sehr geehrter Herr
 iab lf Liebe Frau
 iab sgf Sehr geehrte Frau
 iab sgh Sehr geehrter Herr
 iab lf Liebe Frau