-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
104 lines (88 loc) · 2.02 KB
/
.vimrc
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
" mikeris vim config
" -- basic config options --
set fileencoding=utf-8
set gfn=GohuFont\ 10
set encoding=utf-8
set ttimeoutlen=50
set relativenumber
set cursorline
set lazyredraw
set expandtab
set hlsearch
set wildmenu
set undofile
set mouse=a
set sts=4
set ts=4
set sw=4
set ic
set nu
nnoremap <SPACE> <Nop>
let mapleader="\<Space>"
" -- plugins, managed by vim-plug --
call plug#begin('~/.config/nvim/bundle')
Plug 'tpope/vim-commentary'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
Plug 'ervandew/supertab'
Plug 'ap/vim-css-color'
call plug#end()
" -- fzf --
noremap <leader>f :Files<CR>
noremap <leader>b :Buffers<CR>
" -- supertab --
let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
" -- misc config --
set guioptions-=T
set guioptions-=m
set dir=~/.vim/swapfiles//
set undodir=~/.vim/undo//
cnoreabbrev sudow !sudo tee %
cnoreabbrev W w
cnoreabbrev Q q
" syntax on
set laststatus=2
" -- tab/window navigation --
noremap <A-k> <C-w>k
noremap <A-j> <C-w>j
noremap <A-h> gT
noremap <A-l> gt
" -- writing mode --
function! Code()
setlocal nospell
set cursorline
set nolinebreak
unmap j
unmap k
endfunction
function! Text()
setlocal spell spelllang=en_us
set nocursorline
set linebreak
map j gj
map k gk
endfunction
command Text call Text()
command Code call Code()
" -- theme stuff --
colorscheme desert-warm-256
hi SpellBad ctermfg=NONE ctermbg=100
hi ErrorMsg ctermfg=NONE ctermbg=88
hi WarningMsg ctermfg=NONE ctermfg=242 ctermbg=238
hi SignColumn ctermbg=236
hi ColumnLine ctermbg=236
" -- commentary --
setlocal commentstring=#\ %s
" -- airline --
let g:airline_theme='powerlineish'
let g:airline#extensions#coc#enabled = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#buffer_nr_show = 1
let g:airline_section_warning = ''
let g:airline#extensions#tabline#formatter = 'unique_tail'
let g:airline_left_alt_sep=''
let g:airline_right_alt_sep=''
let g:airline_left_sep=''
let g:airline_right_sep=''