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