-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.vimrc
89 lines (67 loc) · 1.96 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
" ░█░█░▀█▀░█▄█
" ░▀▄▀░░█░░█░█
" ░░▀░░▀▀▀░▀░▀
" ------Global configs:
set number relativenumber
set spell spelllang=es,en_us
set wildmenu
set autoread wildmode=longest,list,full
set mouse=a
set cursorline cursorcolumn
syntax on
set showmatch
runtime! debian.vim
" ------Keybindings:
"Enter normal mode:
imap fd <Esc>
vmap fd <Esc>
"Toggle Goyo:
nmap <Space> :Goyo <CR>
"Vim-like movement between splits:
nnoremap <C-h> <C-W>h
nnoremap <C-j> <C-W>j
nnoremap <C-k> <C-W>k
nnoremap <C-l> <C-W>l
"Primary selection and clipboard copy and paste:
vnoremap <C-c> "+y
map <C-p> "+P
vnoremap <C-c> "*y :let @+=@*<CR>
"Move lines when in visual mode up or down:
xnoremap K :move '<-2<CR>gv-gv
xnoremap J :move '>+1<CR>gv-gv
" ------Plug-ins:
call plug#begin(expand('~/.vim/pluged'))
Plug 'arcticicestudio/nord-vim'
Plug 'junegunn/goyo.vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'airblade/vim-gitgutter'
call plug#end()
" ------Colorschemes:
"Nord
let g:nord_bold = '1'
let g:nord_italic = '1'
let g:nord_underline = '1'
let g:nord_undercurl = '1'
let g:nord_termcolor = '256'
colorscheme nord
"Airline theme:
let g:airline_theme='base16_chalk'
" Inherit terminal's current color scheme:
hi! Normal ctermbg=NONE guibg=NONE
hi! NonText ctermbg=NONE guibg=NONE guifg=NONE ctermfg=NONE
" ------Goyo config:
function! s:goyo_enter()
set noshowmode
set noshowcmd
set nocursorline nocursorcolumn
endfunction
function! s:goyo_leave()
set showmode
set showcmd
set cursorline cursorcolumn
hi! Normal ctermbg=NONE guibg=NONE
hi! NonText ctermbg=NONE guibg=NONE guifg=NONE ctermfg=NONE
endfunction
autocmd! User GoyoEnter nested call <SID>goyo_enter()
autocmd! User GoyoLeave nested call <SID>goyo_leave()