-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_vimrc.tmpl
More file actions
49 lines (46 loc) · 1.27 KB
/
dot_vimrc.tmpl
File metadata and controls
49 lines (46 loc) · 1.27 KB
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
" vim-plug self-install
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" plugs install
call plug#begin('~/.vim/plugged')
Plug 'chriskempson/vim-tomorrow-theme'
{{- if eq .chezmoi.os "linux" }}
Plug 'jasonccox/vim-wayland-clipboard'
{{- end }}
Plug 'junegunn/vim-easy-align'
Plug 'lambdalisue/vim-suda'
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-sleuth'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'rhysd/vim-healthcheck'
call plug#end()
" My Own Config
colorscheme Tomorrow-Night-Eighties
let g:airline_powerline_fonts = 1
let g:airline_theme='tomorrow'
let g:ycm_global_ycm_extra_conf = "~/.ycm_extra_conf.py"
let g:ycm_show_diagnostics_ui = 0
map <C-n> :NERDTreeToggle<CR>
map <F8> :call ToggleMouse()<CR>
set clipboard=unnamedplus,unnamed
set encoding=utf-8
set mouse=a
set number
set pastetoggle=<F9>
set termencoding=utf-8
" My Own Function
function! ToggleMouse()
" check if mouse is enabled
if &mouse == 'a'
" disable mouse
set mouse=
else
" enable mouse everywhere
set mouse=a
endif
endfunc