-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathno_plug.vim
executable file
·71 lines (56 loc) · 1.06 KB
/
no_plug.vim
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
60
61
62
63
64
65
66
67
68
69
70
71
" vimrc in one file
" contents-menus
" general
set nu
set relativenumber
syntax enable
set backspace=indent,eol,start
set hlsearch
set incsearch
set smarttab
set smartindent
set showmatch
set smartcase
set showtabline=1
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set noswapfile
set nofoldenable
set t_CO=256
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
set guioptions-=e
set guioptions-=m
set guioptions-=T
hi foldcolumn guibg=bg
set guifont=Hack:h20
set t_CO=258
hi vertsplit guifg=bg guibg=bg
hi split guifg=bg guibg=bg
set splitbelow
set splitright
" keymappings
let mapleader=','
map <Leader><space> :nohlsearch<cr>
nmap <Leader>ev :edit $MYVIMRC<cr>
nmap <Leader>n :tabnew<cr>
nmap <Leader>[ :tabnext<cr>
nmap <Leader>] :tabprevious<cr>
nmap <Leader>w :tabclose<cr>
nmap <C-\> :vsp<cr>
nmap <C-]> :sp<cr>
nmap <C-j> <C-w><C-j>
nmap <C-k> <C-w><C-k>
nmap <C-h> <C-w><C-h>
nmap <C-l> <C-w><C-l>
nmap j jzz
nmap k kzz
" auto-commands
augroup autosourcing
autocmd!
autocmd BufWritePost $MYVIMRC source %
augroup END