mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-01 02:11:30 +01:00
Compare commits
7 Commits
master
...
20201207-2
Author | SHA1 | Date | |
---|---|---|---|
|
25eb757af3 | ||
|
56f0a4d6d4 | ||
|
5241e825d2 | ||
|
029a867a74 | ||
|
b48649e1d6 | ||
|
b2f76856e6 | ||
|
4b2b598ed1 |
|
@ -86,36 +86,21 @@ let g:gitgutter_sign_modified_removed = 'x'
|
||||||
" highlight DiffDelete cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
|
" highlight DiffDelete cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
|
||||||
" highlight DiffChange cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
|
" highlight DiffChange cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
|
||||||
" highlight DiffText cterm=bold ctermfg=10 ctermbg=88 gui=none guifg=bg guibg=Red
|
" highlight DiffText cterm=bold ctermfg=10 ctermbg=88 gui=none guifg=bg guibg=Red
|
||||||
|
set laststatus=2
|
||||||
" Lightline config from amix's vimrc " TODO: this could be improved
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
let g:lightline = {
|
let g:airline_theme='gruvbox'
|
||||||
\ 'colorscheme': 'wombat',
|
" default is '☰' and it sucks
|
||||||
\ 'active': {
|
let g:airline_symbols.linenr = ''
|
||||||
\ 'left': [ ['mode', 'paste'],
|
" powerline symbols
|
||||||
\ ['fugitive', 'readonly', 'filename', 'modified'] ],
|
let g:airline_left_sep = ''
|
||||||
\ 'right': [ [ 'lineinfo' ], ['percent'] ]
|
let g:airline_left_alt_sep = ''
|
||||||
\ },
|
let g:airline_right_sep = ''
|
||||||
\ 'component': {
|
let g:airline_right_alt_sep = ''
|
||||||
\ 'readonly': '%{&filetype=="help"?"":&readonly?"¿":""}',
|
let g:airline_symbols.branch = ''
|
||||||
\ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}',
|
let g:airline_symbols.readonly = ''
|
||||||
\ 'fugitive': '%{exists("*FugitiveHead")?FugitiveHead():""}'
|
" let g:airline_symbols.linenr = '☰'
|
||||||
\ },
|
" let g:airline_symbols.maxlinenr = ''
|
||||||
\ 'component_visible_condition': {
|
let g:airline_symbols.dirty='⚡'
|
||||||
\ 'readonly': '(&filetype!="help"&& &readonly)',
|
|
||||||
\ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))',
|
|
||||||
\ 'fugitive': '(exists("*FugitiveHead") && ""!=FugitiveHead())'
|
|
||||||
\ },
|
|
||||||
\ 'separator': { 'left': ' ', 'right': ' ' },
|
|
||||||
\ 'subseparator': { 'left': ' ', 'right': ' ' }
|
|
||||||
\ }
|
|
||||||
|
|
||||||
let g:lightline.component_expand = {
|
|
||||||
\ 'linter_checking': 'lightline#ale#checking',
|
|
||||||
\ 'linter_infos': 'lightline#ale#infos',
|
|
||||||
\ 'linter_warnings': 'lightline#ale#warnings',
|
|
||||||
\ 'linter_errors': 'lightline#ale#errors',
|
|
||||||
\ 'linter_ok': 'lightline#ale#ok',
|
|
||||||
\ }
|
|
||||||
|
|
||||||
" These are the default mappings for vim-multi-cursor
|
" These are the default mappings for vim-multi-cursor
|
||||||
let g:multi_cursor_start_word_key = '<C-n>'
|
let g:multi_cursor_start_word_key = '<C-n>'
|
||||||
|
|
|
@ -21,10 +21,9 @@ Plug 'https://github.com/tpope/vim-fugitive'
|
||||||
Plug 'https://github.com/tpope/vim-commentary'
|
Plug 'https://github.com/tpope/vim-commentary'
|
||||||
" Browse file system
|
" Browse file system
|
||||||
Plug 'https://github.com/scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
Plug 'https://github.com/scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
||||||
" Minimal status line
|
" status line
|
||||||
Plug 'https://github.com/itchyny/lightline.vim'
|
Plug 'vim-airline/vim-airline'
|
||||||
" Lightline status for ALE
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
Plug 'maximbaz/lightline-ale'
|
|
||||||
" Insert parentheses in pairs
|
" Insert parentheses in pairs
|
||||||
Plug 'https://github.com/jiangmiao/auto-pairs'
|
Plug 'https://github.com/jiangmiao/auto-pairs'
|
||||||
Plug 'https://github.com/amix/open_file_under_cursor.vim'
|
Plug 'https://github.com/amix/open_file_under_cursor.vim'
|
||||||
|
@ -39,6 +38,7 @@ Plug 'https://github.com/maxbrunsfeld/vim-yankstack'
|
||||||
" Mark indentation level
|
" Mark indentation level
|
||||||
Plug 'https://github.com/nathanaelkane/vim-indent-guides'
|
Plug 'https://github.com/nathanaelkane/vim-indent-guides'
|
||||||
|
|
||||||
|
Plug 'https://github.com/majutsushi/tagbar'
|
||||||
" snipmate
|
" snipmate
|
||||||
Plug 'https://github.com/MarcWeber/vim-addon-mw-utils'
|
Plug 'https://github.com/MarcWeber/vim-addon-mw-utils'
|
||||||
Plug 'https://github.com/tomtom/tlib_vim'
|
Plug 'https://github.com/tomtom/tlib_vim'
|
||||||
|
@ -56,6 +56,7 @@ Plug 'https://github.com/mgedmin/coverage-highlight.vim'
|
||||||
Plug 'https://github.com/rust-lang/rust.vim'
|
Plug 'https://github.com/rust-lang/rust.vim'
|
||||||
Plug 'https://github.com/vim-scripts/nginx.vim'
|
Plug 'https://github.com/vim-scripts/nginx.vim'
|
||||||
Plug 'https://github.com/plasticboy/vim-markdown'
|
Plug 'https://github.com/plasticboy/vim-markdown'
|
||||||
|
Plug 'https://github.com/cespare/vim-toml'
|
||||||
|
|
||||||
Plug 'epheien/termdbg'
|
Plug 'epheien/termdbg'
|
||||||
|
|
||||||
|
|
|
@ -11,15 +11,18 @@ command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
||||||
|
|
||||||
"Reload vimrc on config change
|
"Reload vimrc on config change
|
||||||
map <leader>e :e! ~/.vimrc<CR>
|
map <leader>e :e! ~/.vimrc<CR>
|
||||||
map <leader>` :ALELint<CR>
|
|
||||||
" FIXME: This results in some weird conflict with lightline
|
" FIXME: This results in some weird conflict with lightline
|
||||||
autocmd! bufwritepost ~/.vimrc source ~/.vimrc
|
autocmd! bufwritepost ~/.vimrc source ~/.vimrc
|
||||||
|
autocmd! bufwritepost $DOTFILES/vim/* source ~/.vimrc
|
||||||
|
|
||||||
" Quickly open a markdown buffer for scribble
|
" Quickly open a markdown buffer for scribble
|
||||||
map <leader>x :e ~/buffer.md<CR>
|
map <leader>x :e ~/buffer.md<CR>
|
||||||
" Toggle paste mode on and off
|
" Toggle paste mode on and off
|
||||||
nmap <leader>pp :setlocal paste!<CR>
|
nmap <leader>pp :setlocal paste!<CR>
|
||||||
|
|
||||||
|
" Re-select the text block just pasted
|
||||||
|
nnoremap <Leader>vv V`]
|
||||||
|
|
||||||
" open quickfix
|
" open quickfix
|
||||||
nmap <leader>cc :botright cope<CR>
|
nmap <leader>cc :botright cope<CR>
|
||||||
" close quickfix (also see <leader>C below)
|
" close quickfix (also see <leader>C below)
|
||||||
|
@ -65,6 +68,7 @@ nmap <leader>A :ALEGoToDefinition<CR>
|
||||||
nmap <leader>n :ALEFindReferences<CR>
|
nmap <leader>n :ALEFindReferences<CR>
|
||||||
nmap <leader>h :ALEHover<CR>
|
nmap <leader>h :ALEHover<CR>
|
||||||
nmap <leader>r :ALERename<CR>
|
nmap <leader>r :ALERename<CR>
|
||||||
|
map <leader>` :ALELint<CR>
|
||||||
|
|
||||||
" call ack when pressing gv in visual
|
" call ack when pressing gv in visual
|
||||||
vnoremap <silent> gv :call VisualSelection('gv', '')<CR>
|
vnoremap <silent> gv :call VisualSelection('gv', '')<CR>
|
||||||
|
@ -106,3 +110,6 @@ noremap <Leader>P "+p
|
||||||
|
|
||||||
" A friggin python breakpoint. Invoke with @b "FIXME: make this decent
|
" A friggin python breakpoint. Invoke with @b "FIXME: make this decent
|
||||||
let @b = 'A
breakpoint()ýajkj0'
|
let @b = 'A
breakpoint()ýajkj0'
|
||||||
|
|
||||||
|
" Tagbar
|
||||||
|
nmap <F8> :TagbarToggle<CR>
|
||||||
|
|
|
@ -16,7 +16,7 @@ set relativenumber number
|
||||||
set foldlevelstart=3 foldmethod=syntax nofoldenable "without nofoldenable all folds are closed at startup"
|
set foldlevelstart=3 foldmethod=syntax nofoldenable "without nofoldenable all folds are closed at startup"
|
||||||
set ttymouse=xterm2 " fix mouse when used in tmux/byobu https://unix.stackexchange.com/q/50733
|
set ttymouse=xterm2 " fix mouse when used in tmux/byobu https://unix.stackexchange.com/q/50733
|
||||||
|
|
||||||
set nobackup nowb noswapfile " no need for backups of every file
|
set nobackup nowb noswapfile " no need for backups of every file
|
||||||
set history=10000
|
set history=10000
|
||||||
|
|
||||||
set list listchars=tab:›\ ,trail:•,extends:#,nbsp:.
|
set list listchars=tab:›\ ,trail:•,extends:#,nbsp:.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user