added some comments

This commit is contained in:
Marco Thomas
2019-11-25 15:53:30 +01:00
parent 35e0fa4196
commit c75457917d
2 changed files with 37 additions and 48 deletions

View File

@@ -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> " 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:' LS_COLORS=$LS_COLORS:'di=1;32:'
export LS_COLORS export LS_COLORS
# dotfile management # dotfile management
alias dotdrop="~/dotfiles/dotdrop.sh --cfg=~/dotfiles/config.yaml" alias dotdrop="~/dotfiles/dotdrop.sh --cfg=~/dotfiles/config.yaml"
# general shorcuts # shortcuts
alias ..="cd .." alias ..="cd .."
alias ll="ls -l" alias ll="ls -l"
alias la="ls -la" alias la="ls -la"

View File

@@ -1,79 +1,64 @@
" vimrc from Marc " ########################
" ### .vimrc from Marc ###
" ########################
" Coloooooors
" GENERAL
" disables swapfile creation
set noswapfile
" syntax highlighting
syntax on syntax on
" my colorscheme
colorscheme onedark colorscheme onedark
" recognize stuff filetype on
filetype indent plugin on filetype indent plugin on
" show line numbers at the left set colorcolumn=80
" Numbers at the left side
set number set number
:highlight LineNr ctermfg=white :highlight LineNr ctermfg=white "color
" show matching paren " set relativenumber
" Parathesis highlighting
set showmatch set showmatch
set mat=5 set mat=5
" cant quit without saving
set confirm " General
" show editiing mode at the bottom set noswapfile
set showmode set confirm "cant quit wo saving
" shows colored column set showmode " shows editing mode
set colorcolumn=80 set encoding=utf-8
" mouse behavior
set mouse=a set mouse=a
set mouse=c set mouse=c
" encoding set undolevels=1337
set encoding=utf-8
" Indents
" INDENTS
" visual spaces per TAB
set tabstop=4 set tabstop=4
" spaces per tab when editing
set softtabstop=4 set softtabstop=4
" how many columns text is indented
set shiftwidth=4 set shiftwidth=4
" tabs are not spaces set noexpandtab " tabs are not spaces
set noexpandtab " set expandtab " tabs are spaces
" indent source code
set smartindent set smartindent
" Whitespaces
set list
hi SpecialKey ctermbg=White
set listchars=tab:\ \ ,trail:\
" SEARCH " Search
" enable search with /
set incsearch set incsearch
" ignores case in searches
set ignorecase set ignorecase
" only case sensitive search when typing upper case set smartcase " case sens only when capitol letters
set smartcase set hlsearch " highlight all results
" highlight all search matches
set hlsearch
nnoremap<leader><space> :nohlsearch<CR> nnoremap<leader><space> :nohlsearch<CR>
" Macros (cmap old new)
" MACROS (cmap old new)
cmap Wq wq cmap Wq wq
cmap Q q cmap Q q
cmap W w cmap W w
cmap q1 q! cmap q1 q!
" go to line edited, when closed
" WHITESPACES
set list
hi SpecialKey ctermbg=White
set listchars=tab:\ \ ,trail:\
" gose to line edited, when closed
if has("autocmd") if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g'\"" | endif \| exe "normal! g'\"" | endif
endif endif
" no clue " no clue
au BufNewFile,BufRead *.itex set filetype=tex au BufNewFile,BufRead *.itex set filetype=tex