summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2020-12-11 09:26:53 +0100
committerSanto Cariotti <santo@dcariotti.me>2020-12-11 22:01:31 +0100
commit33d17425955a2c196e58fbb06bfa14269008db69 (patch)
treee133cde4904c0cf570751166554bfd6461d825eb
parentb6ec6a10edbdf4213ab3c2c9118f7935aca5dd50 (diff)
vimrc: cmap, wildmenu and editconfig plugin
-rwxr-xr-xvim/.vimrc30
1 files changed, 18 insertions, 12 deletions
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<CR>
nnoremap ve :Vexplore<CR>
-nnoremap :rt :RainbowToggle
+cnoremap rt RainbowToggle<CR>
" buffers
nnoremap ]b :bnext<CR>
@@ -99,18 +109,14 @@ nnoremap ,o :only<CR>
" co = open commits explorer
" gf = open git ls-files
" gs = open git status
-nnoremap :ff :Files .<CR>
-nnoremap :co :Commits<CR>
-nnoremap :gf :GFiles<CR>
-nnoremap :gs :GFiles?<CR>
-nnoremap :gd :Git diff<CR>
+cnoremap ff Files .<CR>
+cnoremap co Commits<CR>
+cnoremap gf GFiles<CR>
+cnoremap gs GFiles?<CR>
+cnoremap gd Git diff<CR>
nnoremap :pa :set paste<CR>
nnoremap :npa :set nopaste<CR>
-nnoremap :go :Goyo<CR>
-nnoremap :!go :Goyo!<CR>
-
-
-nmap <silent> de <Plug>(coc-definition)
+nmap <F2> <Plug>(coc-definition)
let g:airline_theme='onedark'