set nocompatible " be iMproved, required if has('win32') || has ('win64') let $VIMHOME = $HOME."/vimfiles" set backupdir=$TEMP// set directory=$TEMP// else let $VIMHOME = $HOME."/.vim" endif let g:vimtex_view_method = 'mupdf' let g:vimtex_latexmk_options = '-pdf -pdflatex="xelatex -synctex=1 \%S \%O" -verbose -file-line-error -interaction=nonstopmode' set mouse=a let g:tmpl_search_paths = [ $VIMHOME.'/templates' ] call plug#begin($VIMHOME.'/plugged') Plug 'terryma/vim-multiple-cursors' Plug 'thinca/vim-localrc' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'rafi/awesome-vim-colorschemes' Plug 'lervag/vimtex' Plug 'ctrlpvim/ctrlp.vim' Plug 'tpope/vim-surround' Plug 'airblade/vim-gitgutter' Plug 'tpope/vim-commentary' Plug 'tibabit/vim-templates' Plug 'Shougo/deoplete.nvim' Plug 'roxma/nvim-yarp' Plug 'roxma/vim-hug-neovim-rpc' " load local plugins if filereadable("~/.local-plugins.vimrc") source "~/.local-plugins.vimrc" endif call plug#end() set colorcolumn=80,120 set t_Co=256 " " My own config " " one time settings if !exists("g:running") " " Conemu specific settings " if !has('gui_running') && !has('nvim') " set term=xterm " inoremap " nnoremap " let &t_AB="\e[48;5;%dm" " let &t_AF="\e[38;5;%dm" " inoremap [62~ " inoremap [63~ " nnoremap [62~ " nnoremap [63~ " endif if has('gui_running') set guifont=Fira_Code_Medium:h9:cANSI:qDRAFT set guioptions= set columns=200 set lines=58 colorscheme tender endif endif let g:running = 1 " UTF-8 support if has("multi_byte") if &termencoding == "" let &termencoding = &encoding endif set enc=utf-8 set encoding=utf-8 setglobal fileencoding=utf-8 " setglobal bomb " set fileencodings=ucs-bom,utf-8,latin1 endif " i like to have ctrl-x menu set shortmess-=c " Required for operations modifying multiple buffers like rename. set hidden set splitbelow set shellslash " set backspace=2 set autoindent " tabs set expandtab set tabstop=4 set shiftwidth=4 " syntax syntax on set number " disable bells set noeb vb t_vb= let &t_SI = "\[6 q" let &t_SR = "\[6 q" let &t_EI = "\[2 q" " filetypes " autocmd FileType c,cpp :compiler cl au FileType asm :set ft=masm au FileType tex :set tw=120 " airline let g:airline_powerline_fonts = 1 let g:airline_theme = "tender" let g:airline#extensions#tabline#enabled = 1 " ctrlp let g:ctrlp_switch_buffer = 'Et' " ycm config let g:ycm_confirm_extra_conf = 0 " no arrows nnoremap nnoremap nnoremap nnoremap set completeopt=longest,menuone " remapings nnoremap YY :%y+ nnoremap :nohlsearch noremap y "*y noremap Y "*Y noremap p "*p noremap P "*P nnoremap gT nnoremap gt nnoremap a ggVG vnoremap > >gv vnoremap < :SetCwd map :set rnu! map :source ~/.vimrc vnoremap gO "py:e p vnoremap gT "py:tabe p nmap \\ :CtrlP " local settings if filereadable("~/.local.vimrc") source "~/.local.vimrc" endif