]> code.delx.au - dotfiles/blob - .vim/commands.vim
Vim config improvements
[dotfiles] / .vim / commands.vim
1 " Python Calculator
2 command! -nargs=+ Calc :r! python -c "from math import *; print <args>"
3
4 " Unhighlight search results
5 map <C-l> :nohlsearch<CR>:redraw!<CR>
6
7 " Map Y to be consistent with D, C, etc
8 noremap Y y$
9
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>
13
14