Advertisement
-nodo-

My .vimrc

Aug 16th, 2020 (edited)
1,058
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.92 KB | None | 0 0
  1. syntax on
  2. set noerrorbells
  3. set tabstop=4 softtabstop=4
  4. set shiftwidth=4
  5. set expandtab
  6. set mouse=a
  7. set smartindent
  8. set number
  9. set relativenumber
  10. set ignorecase
  11. set smartcase
  12. set nobackup
  13. set undodir=~/.vim/undodir
  14. set undofile
  15. set incsearch
  16. set mouse=a
  17. set scrolloff=3
  18.  
  19. set langmenu=en_GB
  20. let $LANG = 'en_GB'
  21.  
  22. command Focus set foldcolumn=5
  23. command NoFocus set foldcolumn=0
  24.  
  25. nnoremap <SPACE> <Nop>
  26. let mapleader=" "
  27.  
  28. set colorcolumn=80
  29. highlight ColorColumn ctermbg=0 guibg=lightgray
  30.  
  31. nnoremap <C-h>       <C-w>h
  32. nnoremap <C-j>       <C-w>j
  33. nnoremap <C-k>       <C-w>k
  34. nnoremap <C-l>       <C-w>l
  35.  
  36. nnoremap <M-h>       :vertical resize -3<CR>
  37. nnoremap <M-l>       :vertical resize +3<CR>
  38. nnoremap <M-k>       :resize +3<CR>
  39. nnoremap <M-j>       :resize -3<CR>
  40. nnoremap <F3>        :setlocal spell! spelllang=pl,en_gb,de<CR>
  41. nnoremap <leader><leader>   /%-%<CR>:noh<CR>v2lc
  42.  
  43. inoremap .      .<c-g>u
  44. inoremap ?      ?<c-g>u
  45. inoremap !      !<c-g>u
  46. inoremap ,      ,<c-g>u
  47. inoremap ;      ;<c-g>u
  48. tnoremap <Esc>  <C-\><C-n>
  49.  
  50. nnoremap <leader>w   :w<CR>
  51.  
  52. " map <C-o>            :NERDTreeToggle<CR>
  53.  
  54. autocmd BufNewFile,BufRead *.tex nnoremap <F5>  :!latexmk -pdf '<C-R>%'<CR>
  55. autocmd BufNewFile,BufRead *.tex,*.txt setlocal spell! spelllang=pl,en_gb,de
  56. autocmd BufNewFile *.tex 0r ~/.vim/templates/basic-latex.tex
  57. autocmd BufNewFile *.cpp 0r ~/.vim/templates/basic-cpp.cpp
  58.  
  59. set background=dark
  60.  
  61. call plug#begin('~/.vim/plugged')
  62.  
  63. Plug 'morhetz/gruvbox'
  64. " Plug 'preservim/nerdtree'
  65. Plug 'preservim/nerdcommenter'
  66. " Plug 'neoclide/coc.nvim', {'branch': 'release'}
  67. Plug 'itchyny/lightline.vim'
  68. " Plug 'jiangmiao/auto-pairs'
  69. Plug 'tmsvg/pear-tree'
  70. Plug 'lervag/vimtex'
  71. Plug 'joshdick/onedark.vim'
  72. " Plug 'ycm-core/YouCompleteMe'
  73. " Plug 'mhinz/vim-startify'
  74.  
  75. call plug#end()
  76.  
  77. colorscheme gruvbox
  78.  
  79. let g:tex_flavor='latex'
  80. let g:vimtex_view_automatic=0
  81. let g:python3_host_prog='/usr/local/bin/python3'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement