7 "==========================================================
9 "==========================================================
10 call plug#begin('~/.vim/plugged')
11 Plug 'jreybert/vimagit'
12 Plug 'morhetz/gruvbox'
13 Plug 'itchyny/lightline.vim'
14 Plug 'itchyny/vim-gitbranch'
15 Plug 'airblade/vim-gitgutter'
16 Plug 'ap/vim-css-color'
17 Plug 'tibabit/vim-templates'
20 "==========================================================
21 " Tabs & Invisible characters
22 "==========================================================
24 set listchars=tab:>-,nbsp:␣,trail:.
33 "==========================================================
35 "==========================================================
40 setf dosini "Syntax for system files
41 let g:gruvbox_contrast_dark='hard'
44 "hi LineNr ctermbg=235
45 hi SpecialKey ctermfg=67
46 hi CursorLineNr ctermfg=15
47 hi VertSplit ctermfg=8 ctermbg=0
48 "hi Statement ctermfg=3
49 set splitbelow splitright
50 set wildmode=longest,list,full
52 "==========================================================
54 "==========================================================
55 "copy to global clipboard
56 vnoremap <C-c> :w !xclip -i -sel c<CR><CR>
58 "Move lines up and down with controle + k or j
59 nnoremap <silent> <C-j> :move +1 <CR>
60 nnoremap <silent> <C-k> :move -2 <CR>
61 inoremap <C-j> <Esc> :move +1 <CR>
62 inoremap <C-k> <Esc> :move -2 <CR>
64 " Move to end of line and begin of line
67 "imap <C-l> <Esc><End>a
68 "imap <C-h> <Esc><Home>i
70 "set mouse=nicr "Enable mouse scrole
71 "Disable arrow keys in Normal mode
77 "Disable arrow keys in Insert mode
84 nnoremap <silent><CR> :set paste<CR>m`o<Esc>``:set nopaste<CR>
86 " Run scripts (Controle Shift r)
87 autocmd FileType python nnoremap <C-S-r> <Esc>:w<CR>:!clear;python %<CR>
88 autocmd FileType sh nnoremap <C-S-r> <Esc>:w<CR>:!clear;sh %<CR>
89 autocmd FileType c nnoremap <C-S-r> <Esc>:w<CR>:!clear;make;./%:r<CR>
91 " Commment lines (Controle /)
92 autocmd FileType python nnoremap <buffer> <C-_> <Home>i# <esc>
93 autocmd FileType sh nnoremap <buffer> <C-_> <Home>i# <esc>
94 autocmd FileType c nnoremap <buffer> <C-_> <Home>i// <esc>
95 autocmd FileType cpp nnoremap <buffer> <C-_> <Home>i// <esc>
96 autocmd FileType vim nnoremap <buffer> <C-_> <Home>i" <esc>
99 nnoremap <silent> <Leader>= :vertical resize +5<CR>
100 nnoremap <silent> <Leader>- :vertical resize -5<CR>
102 "==========================================================
104 "==========================================================
107 \'left':[['mode', 'paste'],['gitbranch','readonly','filename','modified']],
108 \'right':[['lineinfo'],['filetype'],['fileencoding'],['fileformat']]},
109 \'component_function':{'gitbranch': 'gitbranch#name'},
112 "==========================================================
114 "==========================================================
115 let g:tmpl_search_paths = ['/mnt/data/dev/templates']
119 " Splits open at the bottom and right, which is non-retarded, unlike vim defaults.
120 "set splitbelow splitright
122 "filetype plugin indent on