summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <dcariotti24@gmail.com>2020-04-23 16:49:14 +0200
committerGitHub <noreply@github.com>2020-04-23 16:49:14 +0200
commit5db37ca72b16392cf7660bbc3fd4c5343f35c6b0 (patch)
tree35f1938ae74e11bca366a2d116c8a5d62c8295fa
parent4de533bfc684a3b96fee2d68a80dfe66db5caaf3 (diff)
Update .vimrc
-rwxr-xr-x.vimrc42
1 files changed, 19 insertions, 23 deletions
diff --git a/.vimrc b/.vimrc
index 79b8f32..957cd2b 100755
--- a/.vimrc
+++ b/.vimrc
@@ -1,18 +1,13 @@
-set number
-set tabstop=4
-set shiftwidth=4
-set expandtab
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
-Plugin 'rust-lang/rust.vim'
-Plugin 'airblade/vim-gitgutter'
-"Plugin 'itchyny/lightline.vim'
-Plugin 'vim-airline/vim-airline'
-Plugin 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} | Plugin 'junegunn/fzf.vim'
-Plugin 'luochen1990/rainbow'
-Plugin 'dense-analysis/ale'
+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 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} | Plugin 'junegunn/fzf.vim' " fuzzy finder
+Plugin 'luochen1990/rainbow' " color parentheses
+Plugin 'dense-analysis/ale' " checker syntax
augroup remember_folds
autocmd!
@@ -20,26 +15,27 @@ augroup remember_folds
autocmd BufWinEnter * silent! loadview
augroup END
-"let g:netrw_banner = 0
-"let g:netrw_liststyle = 3
-"let g:netrw_browse_split = 4
-"let g:netrw_altv = 1
-"let g:netrw_winsize = 20
-
-set ai
+set number " number of the current line
+set relativenumber " relative number, ..-2 -1 x 1 2, where x is current line
+set mouse=a " click with mouse
+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 wrap
-set hlsearch
-set incsearch
+set hlsearch " highlight search
+set incsearch " highlight search while type
set nowritebackup
set laststatus=2
set cursorline
-set ruler
-set list
+set list " spaces as characters
set listchars=eol:⏎,tab:»·,trail:ˑ,nbsp:⎵
+set textwidth=80
+set colorcolumn=80
nnoremap tn :tabnew<CR>
nnoremap ve :Vexplore<CR>
@@ -68,4 +64,4 @@ syntax on
colorscheme miramare
"colorscheme gruvbox-hard
-set showcmd
+set showcmd " show commands at bottom