Browse Source

lazygit

dev
Gregory Leeman 1 week ago
parent
commit
68c31a29d4
  1. 2
      ftplugin/python.vim
  2. 12
      syntax/csv.vim
  3. 4
      vimrc

2
ftplugin/python.vim

@ -1,4 +1,4 @@
let g:ale_python_flake8_options = '--ignore=E501,E402'
let g:ale_python_flake8_options = '--extend-ignore=E203,E501,E701 --extend-select=B950 --max-line-length=80'
let g:ale_linters = {
\ 'python': ['flake8'],

12
syntax/csv.vim

@ -1,14 +1,10 @@
runtime! syntax/sep.vim
syn match Ttrue / \zsTRUE\s*\ze\( \|$\)/
hi def link Ttrue greenbg
syn match Tfalse / \zsFALSE\s*\ze\( \|$\)/
hi def link Tfalse redbg
syn match Tna / \zsNA\s*\ze\( \|$\)/
hi def link Tna bluebg
syn match Ttrue / \zs1\s*\ze\( \|$\)/
hi def link Ttrue base2bg
" syn match Tfalse / \zs0\s*\ze\( \|$\)/
" hi def link Tfalse redbg
syn match Tcolumn6 /.\{-}\(,\|$\)/ nextgroup=Tcolumn0 contains=Ttrue,Tfalse,Tna
syn match Tcolumn5 /.\{-}\(,\|$\)/ nextgroup=Tcolumn6 contains=Ttrue,Tfalse,Tna

4
vimrc

@ -113,8 +113,8 @@ vmap <C-X> <nop>
nnoremap <leader>gn :GitGutterNextHunk<CR>
nnoremap <leader>gp :GitGutterPrevHunk<CR>
nnoremap <leader>gv :Gvdiffsplit<CR>
nnoremap <leader>an :ALENext<CR>
nnoremap <leader>ap :ALEPrevious<CR>
nnoremap <leader>n :ALENext<CR>
nnoremap <leader>p :ALEPrevious<CR>
inoremap <expr> <CR> (pumvisible() ? "\<c-y>\<cr>" : "\<CR>")
nnoremap <Tab> n
nnoremap <S-Tab> N

Loading…
Cancel
Save