Navigation Menu

Skip to content

Commit

Permalink
added some to vimrc and templates
Browse files Browse the repository at this point in the history
Added NERDTree maps, let <Leader> map to ','
and modified the ruby template file
  • Loading branch information
dimiro1 committed Jan 19, 2009
1 parent 77a2872 commit ceb49ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion vim/templates/ruby
@@ -1,6 +1,5 @@
#!/usr/bin/env ruby

require 'rubygems'

<++>

8 changes: 6 additions & 2 deletions vimrc
Expand Up @@ -6,6 +6,7 @@ endtry
runtime debian.vim

set nocompatible " We're running Vim, not Vi!
let mapleader = "," " set <Leader> to ','

"======================== Indenting ==================================
set ai " Automatically set the indent of a new line (local to buffer)
Expand Down Expand Up @@ -65,8 +66,11 @@ set backspace=2 " allow backspacing over everything in insert mode
set shiftwidth=4 " numbers of spaces to (auto)indent

"========================== Mappings ==================================
map ,y "*y
map ,p "*p
map <Leader>y "*y
map <Leader>p "*p
" the correct is use the command :NERDTreeToggle but doest work well
nmap <F9> :NERDTree<CR>
nmap <F8> :NERDTreeClose<CR>
" reload vimrc
nnoremap <F12> :source $HOME/.vimrc<BAR> echo "reloaded vimrc!"<CR>
Expand Down

0 comments on commit ceb49ad

Please sign in to comment.