Kevin Berridge  committed 69b396d

added insert and delete line mappings

  • Participants
  • Parent commits 45d03d8

Comments (0)

Files changed (1)

 set si
 " shows line numbers
-set number
+set relativenumber
 " shows matches as you type
 set incsearch
 nmap <leader>nt :NERDTreeToggle<cr>
 " shortcut for alt-tabbing buffers
-nmap <leader>sw :b#<cr>
+nmap <leader><leader> :b#<cr>
 " fuzzy finder mappings
 noremap <Leader>f :FufCoverageFile<CR>
+" insert and delete blank lines from normal mode
+nnoremap <silent><leader>S m`:silent +g/\m^\s*$/d<CR>``:noh<CR>
+nnoremap <silent><leader>W m`:silent -g/\m^\s*$/d<CR>``:noh<CR>
+nnoremap <silent><leader>s :set paste<CR>m`o<Esc>``:set nopaste<CR>
+nnoremap <silent><leader>w :set paste<CR>m`O<Esc>``:set nopaste<CR>
 " set any autocmds (make sure they are only set once)
 if !exists("autocommands_loaded")
   let autocommands_loaded = 1
 imap <silent> <F1> <ESC>:call OnlineDoc()<CR>
-let g:ruby_path = 'C:\ruby192\bin'
+let g:ruby_path = 'C:\ruby192\bin'