User Tools

Site Tools


vimrc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vimrc [2025/01/16 23:03] – [Vim config .vimrc] karciovimrc [2025/06/03 22:32] (current) – [Vim config .vimrc] karcio
Line 28: Line 28:
 Plugin 'tmhedberg/SimpylFold' Plugin 'tmhedberg/SimpylFold'
 Plugin 'vim-syntastic/syntastic' Plugin 'vim-syntastic/syntastic'
-Plugin 'nvie/vim-flake8' 
 Plugin 'powerline/powerline' Plugin 'powerline/powerline'
 Plugin 'junegunn/fzf', { 'do': { -> fzf#install() } } Plugin 'junegunn/fzf', { 'do': { -> fzf#install() } }
 Plugin 'junegunn/fzf.vim' Plugin 'junegunn/fzf.vim'
 Plugin 'ycm-core/YouCompleteMe' Plugin 'ycm-core/YouCompleteMe'
 +Plugin 'lervag/vimtex'
 +Plugin 'vim-autoformat/vim-autoformat'
 call vundle#end()            " required call vundle#end()            " required
 filetype plugin indent on    " required filetype plugin indent on    " required
Line 41: Line 42:
 let g:jedi#use_tabs_not_buffers = 0 let g:jedi#use_tabs_not_buffers = 0
  
-let g:ale_linters = {'python': ['pylint', 'flake8']} +let g:ale_linters = {'python': ['pylint']} 
-let g:ale_fix_on_save = 1 +let g:ale_fix_on_save = 1 
-" let b:ale_fixers = ['prettier', 'eslint'+
-let b:ale_fixers = ['prettier', 'autopep8']+
 let g:formatdef_latexindent = '"latexindent -"' let g:formatdef_latexindent = '"latexindent -"'
 +let g:ale_fixers = {'python': ['autopep8']}
 +let g:ale_sign_error = '>>'
 +let g:ale_echo_msg_error_str = 'E' 
 +let g:ale_echo_msg_warning_str = 'W' 
 +let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'
  
 nnoremap <leader>n :NERDTreeFocus<CR> nnoremap <leader>n :NERDTreeFocus<CR>
Line 119: Line 123:
 nnoremap <F10> :YcmCompleter FixIt<CR> nnoremap <F10> :YcmCompleter FixIt<CR>
  
-let g:ycm_use_clangd = 1 +let g:ycm_use_clangd = 1 
 + 
 +" run python script 
 +nnoremap <F5> :echo system('python3 "' . expand('%') . '"')<cr> 
 + 
 +"vim latex 
 +let g:vimtex_view_method = 'zathura' 
 +let g:vimtex_compiler_method = 'latexrun' 
 +let maplocalleader = "," 
 </code> </code>
  
 ==== Install formatters ==== ==== Install formatters ====
 <code> <code>
-sudo apt-get install python-autopep8+sudo apt install python3-autopep8
 </code> </code>
  
 ==== Install linter === ==== Install linter ===
 <code> <code>
-sudo apt install python3-flake8+sudo apt install pylint
 </code> </code>
  
Line 163: Line 176:
 cd ~/.vim/bundle/YouCompleteMe  cd ~/.vim/bundle/YouCompleteMe 
 python3 install.py python3 install.py
 +</code>
 +
 +=== For Latex plugin support - vim-tex - latexrun is not executable! ===
 +
 +<code> 
 +git clone https://github.com/aclements/latexrun.git
 +cd latexrun
 +sudo cp latexrun/latexrun /usr/local/bin/
 </code> </code>
vimrc.1737068622.txt.gz · Last modified: by karcio