From c75457917d261148698de405e049f2f9aac2c35a Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Mon, 25 Nov 2019 15:53:30 +0100 Subject: [PATCH] added some comments --- dotfiles/bashrc | 8 +++-- dotfiles/vimrc | 77 ++++++++++++++++++++----------------------------- 2 files changed, 37 insertions(+), 48 deletions(-) diff --git a/dotfiles/bashrc b/dotfiles/bashrc index 8c3ea14..35b390c 100755 --- a/dotfiles/bashrc +++ b/dotfiles/bashrc @@ -1,14 +1,18 @@ -# bashrc from Marc +######################### +### .bashrc from Marc ### +######################### +# command line export PS1="\[\033[0;32m\]\u\[\033[m\]@\h: \[\033[1;34m\]\w\[\033[m\] \n> " +# colored files LS_COLORS=$LS_COLORS:'di=1;32:' export LS_COLORS # dotfile management alias dotdrop="~/dotfiles/dotdrop.sh --cfg=~/dotfiles/config.yaml" -# general shorcuts +# shortcuts alias ..="cd .." alias ll="ls -l" alias la="ls -la" diff --git a/dotfiles/vimrc b/dotfiles/vimrc index f5e94c4..e678ea3 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -1,79 +1,64 @@ -" vimrc from Marc +" ######################## +" ### .vimrc from Marc ### +" ######################## - -" GENERAL -" disables swapfile creation -set noswapfile -" syntax highlighting +" Coloooooors syntax on -" my colorscheme colorscheme onedark -" recognize stuff +filetype on filetype indent plugin on -" show line numbers at the left +set colorcolumn=80 + +" Numbers at the left side set number -:highlight LineNr ctermfg=white -" show matching paren +:highlight LineNr ctermfg=white "color +" set relativenumber + +" Parathesis highlighting set showmatch set mat=5 -" cant quit without saving -set confirm -" show editiing mode at the bottom -set showmode -" shows colored column -set colorcolumn=80 -" mouse behavior + +" General +set noswapfile +set confirm "cant quit wo saving +set showmode " shows editing mode +set encoding=utf-8 set mouse=a set mouse=c -" encoding -set encoding=utf-8 +set undolevels=1337 - -" INDENTS -" visual spaces per TAB +" Indents set tabstop=4 -" spaces per tab when editing set softtabstop=4 -" how many columns text is indented set shiftwidth=4 -" tabs are not spaces -set noexpandtab -" indent source code +set noexpandtab " tabs are not spaces +" set expandtab " tabs are spaces set smartindent +" Whitespaces +set list +hi SpecialKey ctermbg=White +set listchars=tab:\ \ ,trail:\ -" SEARCH -" enable search with / +" Search set incsearch -" ignores case in searches set ignorecase -" only case sensitive search when typing upper case -set smartcase -" highlight all search matches -set hlsearch +set smartcase " case sens only when capitol letters +set hlsearch " highlight all results nnoremap :nohlsearch - -" MACROS (cmap old new) +" Macros (cmap old new) cmap Wq wq cmap Q q cmap W w cmap q1 q! - -" WHITESPACES -set list -hi SpecialKey ctermbg=White -set listchars=tab:\ \ ,trail:\ - - -" gose to line edited, when closed +" go to line edited, when closed if has("autocmd") au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") \| exe "normal! g'\"" | endif endif - " no clue au BufNewFile,BufRead *.itex set filetype=tex