Skip to content

Commit

Permalink
Merge pull request carlhuda#486 from tpope/hanging_percent
Browse files Browse the repository at this point in the history
Remove %% cmap
  • Loading branch information
kalbasit committed Dec 4, 2012
2 parents 1b13852 + 89df0f4 commit e7caa58
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions janus/vim/core/before/plugin/mappings.vim
Expand Up @@ -29,11 +29,10 @@ nmap <silent> <leader>md :!mkdir -p %:p:h<CR>
" Some helpers to edit mode
" http://vimcasts.org/e/14
cnoremap %% <C-R>=expand('%:h').'/'<cr>
map <leader>ew :e %%
map <leader>es :sp %%
map <leader>ev :vsp %%
map <leader>et :tabe %%
nmap <leader>ew :e <C-R>=expand('%:h').'/'<cr>
nmap <leader>es :sp <C-R>=expand('%:h').'/'<cr>
nmap <leader>ev :vsp <C-R>=expand('%:h').'/'<cr>
nmap <leader>et :tabe <C-R>=expand('%:h').'/'<cr>
" Swap two words
nmap <silent> gw :s/\(\%#\w\+\)\(\_W\+\)\(\w\+\)/\3\2\1/<CR>`'
Expand Down

0 comments on commit e7caa58

Please sign in to comment.