Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Re:Uh, actually...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Re:Uh, actually...
Authored by: riceran on May 13, '04 12:11:49PM

That is precisely what the .vimrc, as mentioned above, is for. Just include your map commands in the vimrc, though your syntax will be a bit different than for your environment variable. I am pasting several of my mappings (just as they appear in my vimrc) below. It should be noted that <ESC> is actually what you type (literally) where you want an escape character. Same thing with <CR> for a carriage return. The syntax of <C-x>, where x may be replace with any letter, is what should be entered in order to obtain a control-ed character. There are similar <somethings> for the arrow keys and such.

map <C-S> :%s/\s\+/\t/g<CR>:%!align -s t<CR>

map <Leader>s <Esc>:!aspell -c --dont-backup "%"<CR>:e! "%"<CR><CR>

nmap <TAB> <C-W><C-W><C-W><C-_>



[ Reply to This | # ]