Update vim an zsh conf.

This commit is contained in:
Jeff Lance 2018-07-02 23:03:41 +02:00
parent 83366d4a79
commit 26c1f1f305
3 changed files with 27 additions and 13 deletions

View File

@ -22,7 +22,7 @@ call plug#begin('~/.vim/plugged')
Plug 'flazz/vim-colorschemes' Plug 'flazz/vim-colorschemes'
Plug 'xero/sourcerer.vim' Plug 'xero/sourcerer.vim'
Plug 'romainl/apprentice' Plug 'romainl/apprentice'
Plug 'dracula/vim' Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'plasticboy/vim-markdown', { 'for': 'markdown' } Plug 'plasticboy/vim-markdown', { 'for': 'markdown' }
Plug 'scrooloose/nerdtree' Plug 'scrooloose/nerdtree'
Plug 'junegunn/goyo.vim' Plug 'junegunn/goyo.vim'

View File

@ -1,9 +1,6 @@
set nocompatible " be iMproved, required set nocompatible " be iMproved, required
filetype off " required filetype off " required
" Installing the Plug plugin manager
source $HOME/.vim/plug.vim
"""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""
@ -31,13 +28,6 @@ set number
" no line wrapping " no line wrapping
set nowrap set nowrap
" start NERDTree if no file is pass as arg
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" close vim if the only window left open is a NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
" Allow saving of files as sudo when I forgot to start vim using sudo. " Allow saving of files as sudo when I forgot to start vim using sudo.
cnoremap w!! w !sudo tee > /dev/null % cnoremap w!! w !sudo tee > /dev/null %
@ -47,6 +37,30 @@ cnoremap w!! w !sudo tee > /dev/null %
"""""""""""""""""""""""""""""""""""""""""""
" ____ _ _ _ ____ ___ _ _ ____
" | _ \| | | | | |/ ___|_ _| \ | / ___|
" | |_) | | | | | | | _ | || \| \___ \
" | __/| |__| |_| | |_| || || |\ |___) |
" |_| |_____\___/ \____|___|_| \_|____/
"
"""""""""""""""""""""""""""""""""""""""""""
" Installing the Plug plugin manager
source $HOME/.vim/plug.vim
" start NERDTree if no file is pass as arg
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" close vim if the only window left open is a NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" ____ _____ _ _____ _ _ ____ _ ___ _ _ _____ " ____ _____ _ _____ _ _ ____ _ ___ _ _ _____
" / ___|_ _|/ \|_ _| | | / ___|| | |_ _| \ | | ____| " / ___|_ _|/ \|_ _| | | / ___|| | |_ _| \ | | ____|

View File

@ -50,8 +50,8 @@ hash -d crs="$HOME/Cours"
hash -d dev="$HOME/Développement" hash -d dev="$HOME/Développement"
hash -d dld="$HOME/Téléchargements" hash -d dld="$HOME/Téléchargements"
hash -d doc="$HOME/Documents" hash -d doc="$HOME/Documents"
hash -d vid="$HOME/Videos" hash -d vid="$HOME/Vidéos"
hash -d dot="$HOME/dotfiles" hash -d dot="$HOME/Dotfiles"
# Editors # Editors
alias ec="emacsclient -t" alias ec="emacsclient -t"