Browse files

Use noremap for leader bindings

  • Loading branch information...
1 parent 223ab6e commit ed0d3d9ece1b70cd6460bdd2687e75b8218140fa @jmitchener committed Apr 11, 2012
Showing with 17 additions and 17 deletions.
  1. +17 −17 skel/dot.vimrc
@@ -30,32 +30,32 @@ set sw=4
set expandtab
" Maintain selection when fixing indentation
-vmap > >gv
-vmap < <gv
-vmap = =gv
+vnoremap > >gv
+vnoremap < <gv
+vnoremap = =gv
" Horizontal scrolling
-map <C-L> zl
-map <C-H> zh
+noremap <C-L> zl
+noremap <C-H> zh
" Nerd Tree
-nmap <Leader>nt :NERDTree<CR>
+nnoremap <Leader>nt :NERDTree<CR>
" Fuzzy Finder
-nmap <Leader>fc :FufCoverageFile<CR>
-nmap <Leader>fr :FufRenewCache<CR>
-nmap <Leader>fb :FufBuffer<CR>
-nmap <Leader>fl :FufLine<CR>
+nnoremap <Leader>fc :FufCoverageFile<CR>
+nnoremap <Leader>fr :FufRenewCache<CR>
+nnoremap <Leader>fb :FufBuffer<CR>
+nnoremap <Leader>fl :FufLine<CR>
" Extensions for Fuf to skip in coverage-file mode
let g:fuf_coveragefile_exclude = '\v\~$|\.(o|exe|dll|bak|orig|swp|class|jar)$|(^|[/\\])((\.(hg|git|bzr|svn))|(target|dist|build))($|[/\\])'
" Fugitive (git front-end)
-nmap <Leader>gs :Gstatus<CR>
-nmap <Leader>gc :Gcommit<CR>
-nmap <Leader>gb :Gblame<CR>
-nmap <Leader>gg :Ggrep<CR>
-nmap <Leader>gd :Gdiff<CR>
+nnoremap <Leader>gs :Gstatus<CR>
+nnoremap <Leader>gc :Gcommit<CR>
+nnoremap <Leader>gb :Gblame<CR>
+nnoremap <Leader>gg :Ggrep<CR>
+nnoremap <Leader>gd :Gdiff<CR>
" Allow . support for surround and other plugins
silent! call repeat#set("\<Plug>MyWonderfulMap", v:count)
@@ -66,8 +66,8 @@ filetype plugin on
" Use 2 space tabs for certain languages
autocmd FileType ruby,eruby,python,javascript,html set sw=2 sts=2 et
-" Make VIM recognize actionscript files
-autocmd BufNewFile,BufRead *.as setf actionscript
+" Use javascript syntax for ActionScript
+au BufNewFile,BufRead *.as setf javascript
" Ruby/Rails Completion
autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete

0 comments on commit ed0d3d9

Please sign in to comment.