Permalink
Browse files

mapping tweaks for adding blank lines

  • Loading branch information...
1 parent 6414761 commit 07765b3b7c3498d5385dcfa15335949e8cec68b9 @cengebretson committed Apr 1, 2013
Showing with 5 additions and 6 deletions.
  1. +5 −6 vimrc
View
@@ -257,13 +257,11 @@ nmap <silent> <leader>O :call FindProjectRoot()<CR>:! open .<cr><cr>
nmap <silent> <leader>x :call OpenTerminal(expand("%:p:h"))<CR>
nmap <silent> <leader>X :call FindProjectRoot()<CR>:call OpenTerminal(getcwd())<CR>
-" mapping for loading local .lvimrc file
-nmap <silent> <leader>ll :call LoadLocalVimrc()<CR>
-
" Insert newlines
-nnoremap <C-CR> m`o<Esc>``
-nnoremap <C-D-CR> m`O<Esc>``
-
+nmap <C-CR> m`O<Esc>``
+nmap <C-D-CR> m`o<Esc>``
+imap <C-CR> <Esc>m`O<Esc>``l<Esc>
+imap <C-D-CR> <Esc>m`o<Esc>``l<Esc>
" remapping ESC to be a toggle for insert/normal mode
nnoremap <Esc> i
@@ -299,6 +297,7 @@ nmap <Leader>jc :call JsonConcealToggle()<CR>
" git history for file
nmap <Leader>gh :call GitHistory()<cr>
+" cycle over git changes
nmap <silent> ]h :<C-U>execute v:count1 . "GitGutterNextHunk"<CR>
nmap <silent> [h :<C-U>execute v:count1 . "GitGutterPrevHunk"<CR>

0 comments on commit 07765b3

Please sign in to comment.