Skip to content

Commit

Permalink
Vim easy
Browse files Browse the repository at this point in the history
  • Loading branch information
sj26 committed Jul 26, 2017
1 parent 6488ef6 commit a53fbca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .vim/rc
Expand Up @@ -33,6 +33,12 @@ colorscheme jellybeans
let mapleader=","
set timeoutlen=500

" Edit vimrc with ,ev
nnoremap <leader>ev :vsplit $MYVIMRC<cr>
" Reload vimrc with ,sv
nnoremap <leader>sv :source $MYVIMRC<cr>
" Inserts the path of the currently edited file into a command
" Command mode: Ctrl+P
cmap <C-P> <C-R>=expand("%:p:h") . "/" <CR>
Expand Down

0 comments on commit a53fbca

Please sign in to comment.