Created
April 16, 2018 16:17
-
-
Save draganczukp/0894b36a209db0c5404fa18224ddb004 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('~/.local/share/nvim/plugged') | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'tpope/vim-sensible' | |
Plug 'tpope/vim-fugitive' | |
" Plug 'tpope/vim-surround' | |
Plug 'tpope/vim-commentary' | |
Plug 'scrooloose/syntastic' | |
" Plug 'mattn/emmet-vim' | |
Plug 'flazz/vim-colorschemes' | |
" Plug 'vim-airline/vim-airline' | |
" Plug 'vim-airline/vim-airline-themes' | |
Plug 'itchyny/lightline.vim' | |
" Plug 'valloric/youcompleteme' | |
" Plug 'plasticboy/vim-markdown' | |
Plug 'ctrlpvim/ctrlp.vim' | |
" Plug 'flazz/vim-colorschemes' | |
Plug 'ntpeters/vim-better-whitespace' | |
Plug 'farmergreg/vim-lastplace' | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
" Plug 'roman/golden-ratio' | |
Plug 'tfnico/vim-gradle' | |
" Plug 'artur-shaik/vim-javacomplete2' | |
" Plug 'rcabralc/monokai-airline.vim' | |
" Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
" Plug 'zchee/deoplete-clang' | |
" Plug 'landaire/deoplete-d' | |
" Plug 'wokalski/autocomplete-flow' | |
" Plug 'xuhdev/vim-latex-live-preview' | |
Plug 'roxma/nvim-completion-manager' | |
" Track the engine. | |
"Plug 'SirVer/ultisnips' | |
" Snippets are separated from the engine. Add this if you want them: | |
"Plug 'honza/vim-snippets' | |
"Plug 'roxma/ncm-clang' | |
Plug 'Shougo/neoinclude.vim' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'lervag/vimtex' | |
" Plug 'sassanh/nvim-cm-eclim' | |
Plug 'vim-pandoc/vim-pandoc' | |
Plug 'vim-pandoc/vim-pandoc-syntax' | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'roxma/nvim-cm-tern', {'do': 'npm install'} | |
Plug 'luochen1990/rainbow' | |
" Plugj 'w0rp/ale' | |
"Plug 'majutsushi/tagbar' | |
"Plug 'draganczukp/factorus' | |
" Plug 'vim-scripts/refactor' | |
Plug 'bling/vim-bufferline' | |
call plug#end() | |
"Syntastic | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_java_checkers=['javac'] | |
let g:syntastic_java_javac_config_file_enabled = 1 | |
let g:syntastic_tex_checkers=['lacheck'] | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_error_symbol='✗' | |
let g:syntastic_warning_symbol='⚠' | |
let g:syntastic_style_error_symbol = '✗' | |
let g:syntastic_style_warning_symbol = '⚠' | |
let g:syntastic_aggregate_errors = 1 | |
let g:lightline = { | |
\ 'colorscheme': 'one', | |
\ 'active': { | |
\ 'left':[ [ 'mode', 'paste' ], | |
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] | |
\ ] | |
\ }, | |
\ 'component': { | |
\ 'lineinfo': ' %3l:%-2v', | |
\ }, | |
\ 'component_function': { | |
\ 'gitbranch': 'fugitive#head', | |
\ } | |
\ } | |
let g:lightline.separator = { | |
\ 'left': '', 'right': '' | |
\} | |
let g:lightline.subseparator = { | |
\ 'left': '', 'right': '' | |
\} | |
let g:lightline.tabline = { | |
\ 'left': [ ['tabs'] ], | |
\ 'right': [ ['close'] ] | |
\ } | |
set showtabline=2 " Show tabline | |
set guioptions-=e " Don't use GUI tabline | |
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. | |
let g:UltiSnipsExpandTrigger="<tab>" | |
let g:UltiSnipsJumpForwardTrigger="<c-b>" | |
let g:UltiSnipsJumpBackwardTrigger="<c-z>" | |
" If you want :UltiSnipsEdit to split your window. | |
let g:UltiSnipsEditSplit="vertical" | |
let g:rainbow_active = 1 | |
augroup my_cm_setup | |
autocmd! | |
autocmd User CmSetup call cm#register_source({ | |
\ 'name' : 'vimtex', | |
\ 'priority': 8, | |
\ 'scoping': 1, | |
\ 'scopes': ['tex'], | |
\ 'abbreviation': 'tex', | |
\ 'cm_refresh_patterns': g:vimtex#re#ncm, | |
\ 'cm_refresh': {'omnifunc': 'vimtex#complete#omnifunc'}, | |
\ }) | |
augroup END | |
set encoding=utf-8 | |
let g:airline_powerline_fonts = 1 | |
let g:airline_theme='badwolf' | |
let g:airline#extensions#syntastic#enabled = 1 | |
let g:airline_skip_empty_sections = 1 | |
let g:airline#extensions#tabline#enabled = 1 | |
colorscheme badwolf | |
" golden ratio | |
" let g:golden_ratio_exclude_nonmodifiable = 1 | |
" latex | |
autocmd Filetype tex setl updatetime=1 | |
au BufReadPost *.tex setlocal spell spelllang=pl " Spellcheck | |
au BufRead,BufNewFile *.tex set filetype=tex | |
let g:livepreview_previewer = 'sumatra' | |
set number | |
let g:python3_host_prog = 'C:\Python36\python.exe' | |
"Indent with tabs | |
set shiftwidth=2 | |
set tabstop=2 | |
set autoread | |
set ruler | |
set cursorline " highlight current line | |
set cursorcolumn " highlight current column | |
" Highlight search results | |
set hlsearch | |
" Makes search act like search in modern browsers | |
set incsearch | |
" Don't redraw while executing macros (good performance config) | |
set lazyredraw | |
" For regular expressions turn magic on | |
set magic | |
" Configure backspace so it acts as it should act | |
set backspace=eol,start,indent | |
set whichwrap+=<,>,h,l | |
" No annoying sound on errors | |
set noerrorbells | |
set novisualbell | |
set t_vb= | |
set tm=500 | |
set nobackup | |
set nowb | |
set noswapfile | |
" Be smart when using tabs ;) | |
set smarttab | |
" Linebreak on 500 characters | |
set lbr | |
set tw=500 | |
set ai "Auto indent | |
set si "Smart indent | |
set wrap "Wrap lines | |
"Move between windows | |
map <C-j> <C-W>j | |
map <C-k> <C-W>k | |
map <C-h> <C-W>h | |
map <C-l> <C-W>l | |
" Resize with arrows | |
nnoremap <S-Left> :vertical resize -1<CR> | |
nnoremap <S-Right> :vertical resize +1<CR> | |
nnoremap <S-Up> :resize -1<CR> | |
nnoremap <S-Down> :resize +1<CR> | |
" More natural splits | |
set splitbelow | |
set splitright | |
cnoreabbrev W! w! | |
cnoreabbrev Q! q! | |
cnoreabbrev Qall! qall! | |
cnoreabbrev Wq wq | |
cnoreabbrev Wa wa | |
cnoreabbrev wQ wq | |
cnoreabbrev WQ wq | |
cnoreabbrev W w | |
cnoreabbrev Q q | |
cnoreabbrev Qall qall | |
map <Leader>f :NERDTreeToggle<CR> | |
map <Leader>g mggg=G`g:StripWhitespace<CR> | |
map <Leader>o :CtrlPMixed<CR> | |
map <Leader>/ :Commentary<CR> | |
map <Leader>bn :bn<CR> | |
map <Leader>bb :bp<CR> | |
map <Leader>x :FMExtractMethod<SPACE> | |
map <Leader>v "*p | |
map <Leader>V "*P |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment