Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 1 | let mapleader = "," |
| 2 | set whichwrap=b,s,<,>,[,] |
Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 3 | |
| 4 | vnoremap // y/\V<C-R>=escape(@",'/\')<CR><CR> |
| 5 | |
| 6 | fun! SetupCommandAlias(from, to) |
| 7 | exec 'cnoreabbrev <expr> '.a:from |
| 8 | \ .' ((getcmdtype() is# ":" && getcmdline() is# "'.a:from.'")' |
| 9 | \ .'? ("'.a:to.'") : ("'.a:from.'"))' |
| 10 | endfun |
| 11 | |
| 12 | command W w |
| 13 | command Wq wq |
| 14 | call SetupCommandAlias("git","Git") |
| 15 | |
| 16 | set ignorecase |
| 17 | set smartcase |
| 18 | |
| 19 | set expandtab |