From 33d17425955a2c196e58fbb06bfa14269008db69 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Fri, 11 Dec 2020 09:26:53 +0100 Subject: vimrc: cmap, wildmenu and editconfig plugin --- vim/.vimrc | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index 809d8ee..66a732a 100755 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -13,15 +13,19 @@ Plugin 'luochen1990/rainbow' " color parentheses Plugin 'dense-analysis/ale' " checker syntax Plugin 'leafOfTree/vim-vue-plugin' Plugin 'terryma/vim-multiple-cursors' -Plugin 'junegunn/goyo.vim' " ignore numbers and center text Plugin 'tpope/vim-fugitive' " git extension for commit logs and etc. Plugin 'neoclide/coc.nvim', {'branch': 'release'} +Plugin 'editorconfig/editorconfig-vim' 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 @@ -36,6 +40,7 @@ set expandtab " convert tabs in spaces set ai " auto indent set autoread + set encoding=utf-8 set history=1000 set wildignore+=*.pyc @@ -45,7 +50,9 @@ set incsearch set nowritebackup set laststatus=2 + set cursorline + set list " spaces as characters set listchars=eol:⏎,tab:»·,trail:ˑ,nbsp:⎵ @@ -76,9 +83,12 @@ augroup END " ------------ " MAPS " ----------- +nnoremap j gj +nnoremap k gk + nnoremap tn :tabnew nnoremap ve :Vexplore -nnoremap :rt :RainbowToggle +cnoremap rt RainbowToggle " buffers nnoremap ]b :bnext @@ -99,18 +109,14 @@ nnoremap ,o :only " 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 +cnoremap ff Files . +cnoremap co Commits +cnoremap gf GFiles +cnoremap gs GFiles? +cnoremap gd Git diff nnoremap :pa :set paste nnoremap :npa :set nopaste -nnoremap :go :Goyo -nnoremap :!go :Goyo! - - -nmap de (coc-definition) +nmap (coc-definition) let g:airline_theme='onedark' -- cgit v1.2.3-18-g5258