Permalink
Browse files

Steal some Vim mappings from @nathanaelkane

  • Loading branch information...
1 parent 3f8fac8 commit fc3a9e8a373813b7ae88510d70775f1c8b09e41c @twe4ked committed Apr 7, 2013
Showing with 17 additions and 0 deletions.
  1. +17 −0 vim/keybindings.vim
View
@@ -89,3 +89,20 @@ vnoremap <silent> # :<C-U>
\gvy?<C-R><C-R>=substitute(
\escape(@", '?\.*$^~['), '\_s\+', '\\_s\\+', 'g')<CR><CR>
\gV:call setreg('"', old_reg, old_regtype)<CR>
+
+" select all
+map <Leader>a ggVG
+
+" Toggle word wrap
+map <Leader>W :set wrap!<CR>
+
+" Toggle spell checking
+map <Leader>S :set spell!<CR>
+
+" Movement & wrapped long lines
+" This solves the problem that pressing down jumps your cursor 'over' the
+" current line to the next line
+nnoremap j gj
+nnoremap k gk
+
+nnoremap = v=

0 comments on commit fc3a9e8

Please sign in to comment.