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
|
" Fuzzy file finder
|
||||||
Plug 'ctrlpvim/ctrlp.vim'
|
Plug 'ctrlpvim/ctrlp.vim'
|
||||||
|
|
||||||
" I need thsi for python
|
" I need this for python
|
||||||
Plug 'davidhalter/jedi-vim'
|
Plug 'davidhalter/jedi-vim'
|
||||||
|
|
||||||
" Linter and analyse tool
|
" Linter and analyse tool
|
||||||
|
|
@ -91,6 +91,8 @@ Plug 'vim-airline/vim-airline-themes'
|
||||||
" Shows vertical lines to make indents more visible
|
" Shows vertical lines to make indents more visible
|
||||||
Plug 'Yggdroot/indentLine'
|
Plug 'Yggdroot/indentLine'
|
||||||
|
|
||||||
|
" Better Javascript indent and syntax support
|
||||||
|
Plug 'pangloss/vim-javascript'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|
@ -252,6 +254,7 @@ map gn :bn<cr>
|
||||||
map gN :bp<cr>
|
map gN :bp<cr>
|
||||||
map gp :bp<cr>
|
map gp :bp<cr>
|
||||||
|
|
||||||
|
|
||||||
" Toggle through splits:
|
" Toggle through splits:
|
||||||
nnoremap <leader>w <C-w>w
|
nnoremap <leader>w <C-w>w
|
||||||
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>
|
map <C-n> :NERDTreeToggle<CR>
|
||||||
let NERDTreeIgnore=['\.git$']
|
let NERDTreeIgnore=['\.git$']
|
||||||
|
|
||||||
|
" nerdcommenter settins
|
||||||
|
let g:NERDCompactSexyComs = 1
|
||||||
|
let g:NERDDefaultAlign = 'left'
|
||||||
|
|
||||||
" airline settings
|
" airline settings
|
||||||
let g:airline#extensions#tabline#enabled = 1 " Show buffers as tabs
|
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_linters = {'python': ['flake8', 'mypy', 'pylint', 'prospector']}
|
||||||
let g:ale_fixers = {'python': ['isort', 'black'],
|
let g:ale_fixers = {'python': ['isort', 'black'],
|
||||||
\'json': ['fixjson'],
|
\'json': ['fixjson'],
|
||||||
|
\'html': ['html-beautify', 'tidy'],
|
||||||
\'xml': ['xmllint'],
|
\'xml': ['xmllint'],
|
||||||
\'java': ['uncrustify'],
|
\'java': ['uncrustify'],
|
||||||
|
\'javascript': ['prettier', 'xo', 'standard', 'eslint'],
|
||||||
\'tex': ['latexindent']}
|
\'tex': ['latexindent']}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
" Run ALEFix shortcut
|
||||||
|
nnoremap <leader>f :ALEFix<CR>
|
||||||
|
|
||||||
" Markdown spellchecking
|
" Markdown spellchecking
|
||||||
" autocmd FileType markdown setlocal spell spelllang=de " not working yet
|
" 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:
|
" Create a mapping (e.g. in your .vimrc) like this:
|
||||||
"nmap <C-W>! <Plug>Kwbd
|
"nmap <C-W>! <Plug>Kwbd
|
||||||
nmap <leader>d <Plug>Kwbd
|
nmap <leader>bd <Plug>Kwbd
|
||||||
|
|
||||||
|
|
||||||
" Load local config if there is one
|
" Load local config if there is one
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue