Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: