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