Hacker News new | ask | show | jobs
by bnmrrs 6099 days ago
Most of my .vim folder and .vimrc came from andreiz and tomasr. I have it committed to github for easy download on any server I'm working on. http://github.com/bnmrrs/dotfies if anybody would like to check it out.

  map ,q :q!<CR>
  map ,s :w<CR>
  map ,w :x<CR>
  nmap <silent> <F6> :set number!<CR>
and ctags are especially useful
1 comments

Consider doing this instead:

  let mapleader = ","    " 
  let g:mapleader = ","

  map <Leader>q :q!<CR>
  map <Leader>s :w<CR>
  map <Leader>w :x<CR>
The mapleader is basically used to give your custom keybindings a separate namespace. It looks like that's what your doing here, but using the variable makes it easier to change later f you want.
Good idea, I'll have to add that.