From 72c5fd326cc18a6c467fc75ad29781f3139f20c0 Mon Sep 17 00:00:00 2001 From: Beppe Vanrolleghem Date: Sat, 1 Feb 2020 22:41:11 +0100 Subject: [PATCH] vim --- .gitignore | 4 ++++ .vim/.netrwhist | 6 ++++++ .vimrc | 31 +++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 .vim/.netrwhist create mode 100644 .vimrc diff --git a/.gitignore b/.gitignore index 95ab7ec..01939eb 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,7 @@ !.zshrc !.sshkeys/* !.sshkeys +!.vimrc +!.vim +!.vim/* + diff --git a/.vim/.netrwhist b/.vim/.netrwhist new file mode 100644 index 0000000..733ece0 --- /dev/null +++ b/.vim/.netrwhist @@ -0,0 +1,6 @@ +let g:netrw_dirhistmax =10 +let g:netrw_dirhist_cnt =4 +let g:netrw_dirhist_1='/usr/local/bin' +let g:netrw_dirhist_2='/Users/beppe/git/advancedprogramming/Vue/femtalks/src/components/Views' +let g:netrw_dirhist_3='/Users/beppe/git/advancedprogramming/Vue' +let g:netrw_dirhist_4='/Users/beppe/git/advancedprogramming/Vue/femtalks' diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..8d6e7f2 --- /dev/null +++ b/.vimrc @@ -0,0 +1,31 @@ +set clipboard=unnamed "Enable clipboard +filetype plugin indent on "Enable indent plugin +syntax enable "Enable syntax coloring +syntax on "Turn syntax coloring on +:color desert "Set desert syntax coloring +set nocompatible "Allow Vim-only settings even if they break vi keybindings. +:filetype on "Enable filetype detection +set incsearch "Find as you type +set ignorecase "Ignore case in search +set scrolloff=5 "Number of lines to keep above/below cursor +set smartcase "Only ignore case when all letters are lowercase +set number "Show line numbers +set wildmode=longest,list "Complete longest string, then list alternatives +set fileformats=unix "Use Unix line endings +set smartindent "Smart autoindenting on new line +set smarttab "Respect space/tab settings +set history=300 "Number of commands to remember +set backspace=2 "Use standard backspace behavior +set hlsearch "Highlight matches in search +set ruler "Show line and column number +set formatoptions=1 "Don't wrap text after a one-letter word +set linebreak "Break lines when appropriate +set autoindent "Auto indent based on previous line + + "Prepare tab/space indent settings +set tabstop=4 "Set Tab width to 4 +set shiftwidth=4 "Indents will have width of 4 +set softtabstop=4 "Set the number of columns for tab +set expandtab "Expand tabs to spaces + +execute pathogen#infect()