From f3b136d9a3217993bfa6b4f795f9100f7d3694c5 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Sat, 15 Oct 2016 11:38:15 +0200 Subject: [PATCH] Added vimrc --- make-links.sh | 1 + vimrc | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 vimrc diff --git a/make-links.sh b/make-links.sh index 6cdf627..b15760f 100755 --- a/make-links.sh +++ b/make-links.sh @@ -8,6 +8,7 @@ function make_link { } make_link zshrc .zshrc +make_link vimrc .vimrc make_link init.vim .config/nvim/init.vim make_link awesome .config/awesome make_link gitconfig .gitconfig diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..ac67b24 --- /dev/null +++ b/vimrc @@ -0,0 +1,104 @@ +" Pas de compatibilité a VI ! +set nocompatible + +" PLUGNIS ######################################################## +filetype off " required +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() +" Vundle +Plugin 'VundleVim/Vundle.vim' +" I don't know what this is +Plugin 'othree/html5.vim' +" Generate doc for typescript functions +Plugin 'https://gogs.tforgione.fr/tforgione/typescript-doc.git' +call vundle#end() " required +filetype plugin indent on " required + +" Line numbers and syntaxic coloration +" set nu +" syntax on + +" Highlight bad spaces (not working...) +" highlight BadWhitespace ctermbg=red guibg=red +" match BadWhitespace / \| \+\t/ + +" COLOR #############################################################{{{ +set background=dark +syntax enable +colorscheme peachpuff +" }}} + +" INDENTATION #######################################################{{{ +set expandtab +set tabstop=4 +set shiftwidth=4 +set autoindent +" }}} + +" UI CONFIG #########################################################{{{ +set number +set showcmd +set wildmenu +set lazyredraw +set encoding=utf8 +let g:airline_powerline_fonts=1 +set clipboard=unnamedplus +set updatecount=50 +set mouse=a +set ttymouse=sgr +" Espaces insécables grrrr +set list +set listchars=tab:  ,trail:·,extends:>,precedes:<,nbsp:¬ +" Remove trailing spaces +autocmd BufWritePre * :%s/\s\+$//e +" Compile on F12 +nnoremap :wa \| !make-client.sh +inoremap :wa \|!make-client.sh +vnoremap :wa \|!make-client.sh +" Escape on F1 +map +imap +" }}} + +" SEARCHING #########################################################{{{ +set title +set showmatch +set hlsearch +set noincsearch +" }}} + +" NERDTREE ##########################################################{{{ +let NERDTreeIgnore = ['\.pyc$','__pycache__'] +set shell=sh +let g:NERDTreeIndicatorMapCustom = { + \ "Modified" : "✹", + \ "Staged" : "✚", + \ "Untracked" : "✭", + \ "Renamed" : "➜", + \ "Unmerged" : "═", + \ "Deleted" : "✖", + \ "Dirty" : "✗", + \ "Clean" : "✔︎", + \ "Unknown" : "?" + \ } +let g:WebDevIconsNerdTreeGitPluginForceVAlign = 1 +" }}} + +" BACKUPS ###########################################################{{{ +autocmd BufWritePost * :silent execute ':w! ' ."$HOME/.vim/backups/" . escape(substitute(expand('%:p'), "/", "%", "g"), "%") + +if exists('+undofile') + set undofile + set undolevels=1000 + set undoreload=10000 + if exists('+undodir') + set undodir=$HOME/.vim/undo + endif +endif +" }}} + + +" MARKDOWN PREVIEW ##################################################{{{ +set nobackup +let g:markdown_composer_browser = 'firefox' +" }}}