Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

f4 Gstatus, f5 Gcommit

  • Loading branch information...
commit a188ddd623b0fd3c3ccce9fefa7725e1196da624 1 parent 79c90e7
@pbjorklund authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 vimrc
View
13 vimrc
@@ -59,8 +59,6 @@ let mapleader=','
"Fold remapping
nnoremap <silent> <Space> @=(foldlevel('.')?'za':"\<Space>")<CR>
vnoremap <Space> zf
-nnoremap <F2> :set invpaste paste?<CR>
-set pastetoggle=<F2>
map <leader>v :e $MYVIMRC<CR>
map <leader>s :vs ~/Dropbox/todo.txt<CR>
inoremap jj <Esc>
@@ -88,8 +86,6 @@ map <C-h> <C-w><Left>
" Set options for Zen Coding
let g:use_zen_complete_tag = 1
-" No Help, please
-nmap <F1> <Esc>
" Switch easily between light and dark background. Useful for solarized
function! ToggleBackgroundColor()
@@ -100,4 +96,13 @@ function! ToggleBackgroundColor()
endif
endfunction
+" Function keys
+nmap <F1> <Esc> "No help
+
+nnoremap <F2> :set invpaste paste?<CR> "Toggle paste mode
+set pastetoggle=<F2>
+
nmap <F3> :call ToggleBackgroundColor()<CR>
+
+nmap <F4> :Gstatus<CR>
+nmap <F5> :Gcommit<CR>
Please sign in to comment.
Something went wrong with that request. Please try again.