]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/ftplugin/c/alt.vim
.c/.h switcher
[dotfiles.git] / vim / .vim / ftplugin / c / alt.vim
diff --git a/vim/.vim/ftplugin/c/alt.vim b/vim/.vim/ftplugin/c/alt.vim
new file mode 100644 (file)
index 0000000..609f37d
--- /dev/null
@@ -0,0 +1 @@
+nnoremap <buffer> <C-^> :execute "edit %<." . {"c": "h", "h": "c", "cc": "hh", "hh": "cc"}[expand("%:e")]<CR>