blob: 0fc011f1d50d49a0bff59716fd78f8fb33b2bc38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
syntax on
try
colorscheme sorbet
catch
colorscheme slate
endtry
set hlsearch
set number
set shiftwidth=4
set smartindent
set tabstop=4
set foldmethod=indent
set foldlevelstart=20
"Pmenu Settings (Popup Menu)
highlight Pmenu ctermbg=White ctermfg=Black guibg=Gray
"-- Custom keybinds --
"Remap space as leader key
noremap <Space> <Nop>
let mapleader = " "
let maplocalleader = " "
"-- Normal --
"Better window navigation (both hjkl and arrow keys)
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
nnoremap <C-Left> <C-w>h
nnoremap <C-Down> <C-w>j
nnoremap <C-Up> <C-w>k
nnoremap <C-Right> <C-w>l
"Better tab navigation (both hjkl and arrow keys)
nnoremap <S-h> gt
nnoremap <S-l> gt
nnoremap <S-Left> gT
nnoremap <S-Right> gt
"Navigate buffers
nnoremap <S-Down> :bnext<CR>
nnoremap <S-Up> :bprevious<CR>
"Resize with ctrl+shift+arrows
nnoremap <C-S-Up> :resize -2<CR>
nnoremap <C-S-Down> :resize +2<CR>"
nnoremap <C-S-Left> :vertical resize -2<CR>
nnoremap <C-S-Right> :vertical resize +2<CR>
"Buffer Options
"Close buffer without closing window ('b'uffer 'd'elete)
nnoremap <leader>bd :b#<CR>:bd#<CR>
"Workspace Options
"Horizontal split workspace ('s'plit 'h'orizontal)
nnoremap <leader>wsh :split<CR>
"Vertical split workspace ('s'plit 'v'ertical)
nnoremap <leader>wsv :vs<CR>
|