New linters, plugins and a great function for keeping windows open when
closing buffers.
This commit is contained in:
parent
b6430263e4
commit
8f6ecbf802
1 changed files with 15 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ Plug 'chauncey-garrett/vim-tasklist'
|
|||
" Fuzzy file finder
|
||||
Plug 'ctrlpvim/ctrlp.vim'
|
||||
|
||||
" I need thsi for python
|
||||
" I need this for python
|
||||
Plug 'davidhalter/jedi-vim'
|
||||
|
||||
" Linter and analyse tool
|
||||
|
|
@ -91,6 +91,8 @@ Plug 'vim-airline/vim-airline-themes'
|
|||
" Shows vertical lines to make indents more visible
|
||||
Plug 'Yggdroot/indentLine'
|
||||
|
||||
" Better Javascript indent and syntax support
|
||||
Plug 'pangloss/vim-javascript'
|
||||
|
||||
call plug#end()
|
||||
|
||||
|
|
@ -252,6 +254,7 @@ map gn :bn<cr>
|
|||
map gN :bp<cr>
|
||||
map gp :bp<cr>
|
||||
|
||||
|
||||
" Toggle through splits:
|
||||
nnoremap <leader>w <C-w>w
|
||||
nnoremap <leader>W <C-w>W
|
||||
|
|
@ -279,6 +282,10 @@ map <leader>t <Plug>TaskList
|
|||
map <C-n> :NERDTreeToggle<CR>
|
||||
let NERDTreeIgnore=['\.git$']
|
||||
|
||||
" nerdcommenter settins
|
||||
let g:NERDCompactSexyComs = 1
|
||||
let g:NERDDefaultAlign = 'left'
|
||||
|
||||
" airline settings
|
||||
let g:airline#extensions#tabline#enabled = 1 " Show buffers as tabs
|
||||
|
||||
|
|
@ -286,11 +293,17 @@ let g:airline#extensions#tabline#enabled = 1 " Show buffers as tabs
|
|||
let g:ale_linters = {'python': ['flake8', 'mypy', 'pylint', 'prospector']}
|
||||
let g:ale_fixers = {'python': ['isort', 'black'],
|
||||
\'json': ['fixjson'],
|
||||
\'html': ['html-beautify', 'tidy'],
|
||||
\'xml': ['xmllint'],
|
||||
\'java': ['uncrustify'],
|
||||
\'javascript': ['prettier', 'xo', 'standard', 'eslint'],
|
||||
\'tex': ['latexindent']}
|
||||
|
||||
|
||||
|
||||
" Run ALEFix shortcut
|
||||
nnoremap <leader>f :ALEFix<CR>
|
||||
|
||||
" Markdown spellchecking
|
||||
" autocmd FileType markdown setlocal spell spelllang=de " not working yet
|
||||
|
||||
|
|
@ -418,7 +431,7 @@ nnoremap <silent> <Plug>Kwbd :<C-u>Kwbd<CR>
|
|||
|
||||
" Create a mapping (e.g. in your .vimrc) like this:
|
||||
"nmap <C-W>! <Plug>Kwbd
|
||||
nmap <leader>d <Plug>Kwbd
|
||||
nmap <leader>bd <Plug>Kwbd
|
||||
|
||||
|
||||
" Load local config if there is one
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue