autocmd! bufwritepost .vimrc source % set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' Plugin 'rust-lang/rust.vim' Plugin 'airblade/vim-gitgutter' " display git status of the file Plugin 'vim-airline/vim-airline' " airline at bottom with insert, name, line etc. Plugin 'vim-airline/vim-airline-themes' Plugin 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} | Plugin 'junegunn/fzf.vim' " fuzzy finder Plugin 'luochen1990/rainbow' " color parentheses Plugin 'dense-analysis/ale' " checker syntax Plugin 'posva/vim-vue' Plugin 'terryma/vim-multiple-cursors' Plugin 'tpope/vim-fugitive' " git extension for commit logs and etc. Plugin 'neoclide/coc.nvim', {'branch': 'release'} Plugin 'editorconfig/editorconfig-vim' Plugin 'ap/vim-css-color' Plugin 'Yggdroot/indentLine' Plugin 'ryanoasis/vim-devicons' call vundle#end() " required set term=screen-256color set clipboard=unnamed set mouse=a " click with mouse set wildmenu set wildmode=longest,list:full set wildignore=*~,*.png,*.jpg,*.gif,Thumbs.db,*.min.js,*.swp,*.o,vendor set number " number of the current line set relativenumber " relative number, ..-2 -1 x 1 2, where x is current line set textwidth=80 set colorcolumn=80 set nowrap set fo-=t set tabstop=4 set shiftwidth=4 set expandtab " convert tabs in spaces set ai " auto indent set autoread set encoding=UTF-8 set history=1000 set wildignore+=*.pyc set hlsearch " highlight search set incsearch set nowritebackup set laststatus=2 set cursorline set list " spaces as characters set listchars=eol:⏎,tab:»·,trail:ˑ,nbsp:⎵ set foldmethod=indent set splitright " split on right side set lazyredraw set ttyfast let g:fzf_preview_window = 'right:70%' let g:ale_fix_on_save = 1 let g:airline_theme='onedark' let g:airline_powerline_fonts = 1 let g:indentLine_char = '¦' let g:vue_pre_processors = ['pug', 'scss'] let g:netrw_liststyle=1 filetype plugin indent on set nocompatible set showcmd " show commands at bottom syntax on colorscheme miramare augroup remember_folds autocmd! autocmd BufWinLeave * mkview autocmd BufWinEnter * silent! loadview augroup END " ------------ " MAPS " ----------- nnoremap j gj nnoremap k gk nnoremap tn :tabnew nnoremap ve :Vexplore nnoremap rt :RainbowToggle " buffers nnoremap ]b :bnext nnoremap [b :bprev nnoremap ,b :Buffers " tabs nnoremap ]t :tabn nnoremap [t :tabp nnoremap ,t :tabs " only one window nnoremap ,o :only " mapping fzf commands " ff = open files explorer " co = open commits explorer " gf = open git ls-files " gs = open git status nnoremap :ff :Files . nnoremap :co :Commits nnoremap :gf :GFiles nnoremap :gs :GFiles? nnoremap :gd :Git diff nnoremap :pa :set paste nnoremap :npa :set nopaste nmap (coc-definition) nmap :cr :!command cargo r nmap :EditorConfigReload