Permalink
Browse files

,er to expand current filename without extension.

Useful when switching between to files with same name, but different
extensions, e.g. script.md and script.otl
  • Loading branch information...
1 parent e43a2fe commit 084246a8a5393b757e1c0642a34ba98d6fb3e6d7 @nelstrom committed Feb 15, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 vimrc
View
1 vimrc
@@ -183,6 +183,7 @@ map <leader>ew :e <C-R>=expand("%:p:h") . "/" <CR>
map <leader>es :sp <C-R>=expand("%:p:h") . "/" <CR>
map <leader>ev :vsp <C-R>=expand("%:p:h") . "/" <CR>
map <leader>et :tabe <C-R>=expand("%:p:h") . "/" <CR>
+map <leader>er :e <C-R>=expand("%:r")."."<CR>
" Shortcuts for visual selections {{{2
nmap gV `[v`]
" Alignment commands {{{1

0 comments on commit 084246a

Please sign in to comment.