2 command! -nargs=+ Calc :r! python -c "from math import *; print <args>"
4 " Unhighlight search results
5 map <C-l> :nohlsearch<CR>:redraw!<CR>
7 " Map Y to be consistent with D, C, etc
10 " CTRL-n and CTRL-p to go forwards and backwards through files
11 nnoremap <C-n> :next<CR>
12 nnoremap <C-p> :prev<CR>
14 " Press CTRL-X after pasting something to fix up formatting
15 imap <C-z> <ESC>u:set paste<CR>.:set nopaste<CR>i
17 " Spell checking mode toggle
19 if !exists("s:spell_check") || s:spell_check == 0
22 setlocal spell spelllang=en_au
24 echo "Spell check off"
26 setlocal spell spelllang=
29 map <F8> :call <SID>spell()<CR>
30 imap <F8> <C-o>:call <SID>spell()<CR>