Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- syntax on
- set noerrorbells
- set tabstop=4 softtabstop=4
- set shiftwidth=4
- set expandtab
- set mouse=a
- set smartindent
- set number
- set relativenumber
- set ignorecase
- set smartcase
- set nobackup
- set undodir=~/.vim/undodir
- set undofile
- set incsearch
- set mouse=a
- set scrolloff=3
- set langmenu=en_GB
- let $LANG = 'en_GB'
- command Focus set foldcolumn=5
- command NoFocus set foldcolumn=0
- nnoremap <SPACE> <Nop>
- let mapleader=" "
- set colorcolumn=80
- highlight ColorColumn ctermbg=0 guibg=lightgray
- nnoremap <C-h> <C-w>h
- nnoremap <C-j> <C-w>j
- nnoremap <C-k> <C-w>k
- nnoremap <C-l> <C-w>l
- nnoremap <M-h> :vertical resize -3<CR>
- nnoremap <M-l> :vertical resize +3<CR>
- nnoremap <M-k> :resize +3<CR>
- nnoremap <M-j> :resize -3<CR>
- nnoremap <F3> :setlocal spell! spelllang=pl,en_gb,de<CR>
- nnoremap <leader><leader> /%-%<CR>:noh<CR>v2lc
- inoremap . .<c-g>u
- inoremap ? ?<c-g>u
- inoremap ! !<c-g>u
- inoremap , ,<c-g>u
- inoremap ; ;<c-g>u
- tnoremap <Esc> <C-\><C-n>
- nnoremap <leader>w :w<CR>
- " map <C-o> :NERDTreeToggle<CR>
- autocmd BufNewFile,BufRead *.tex nnoremap <F5> :!latexmk -pdf '<C-R>%'<CR>
- autocmd BufNewFile,BufRead *.tex,*.txt setlocal spell! spelllang=pl,en_gb,de
- autocmd BufNewFile *.tex 0r ~/.vim/templates/basic-latex.tex
- autocmd BufNewFile *.cpp 0r ~/.vim/templates/basic-cpp.cpp
- set background=dark
- call plug#begin('~/.vim/plugged')
- Plug 'morhetz/gruvbox'
- " Plug 'preservim/nerdtree'
- Plug 'preservim/nerdcommenter'
- " Plug 'neoclide/coc.nvim', {'branch': 'release'}
- Plug 'itchyny/lightline.vim'
- " Plug 'jiangmiao/auto-pairs'
- Plug 'tmsvg/pear-tree'
- Plug 'lervag/vimtex'
- Plug 'joshdick/onedark.vim'
- " Plug 'ycm-core/YouCompleteMe'
- " Plug 'mhinz/vim-startify'
- call plug#end()
- colorscheme gruvbox
- let g:tex_flavor='latex'
- let g:vimtex_view_automatic=0
- let g:python3_host_prog='/usr/local/bin/python3'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement