Skip to content

Commit

Permalink
,er to expand current filename without extension.
Browse files Browse the repository at this point in the history
Useful when switching between to files with same name, but different
extensions, e.g. script.md and script.otl
  • Loading branch information
nelstrom committed Feb 15, 2011
1 parent e43a2fe commit 084246a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vimrc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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>es :sp <C-R>=expand("%:p:h") . "/" <CR>
map <leader>ev :vsp <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>et :tabe <C-R>=expand("%:p:h") . "/" <CR>
map <leader>er :e <C-R>=expand("%:r")."."<CR>
" Shortcuts for visual selections {{{2 " Shortcuts for visual selections {{{2
nmap gV `[v`] nmap gV `[v`]
" Alignment commands {{{1 " Alignment commands {{{1
Expand Down

0 comments on commit 084246a

Please sign in to comment.