├── index.js ├── README.md ├── .profile ├── init_windows.vim ├── init.vim └── .bashrc /index.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NeoVim-Settings 2 | NeoVim Personal Settings [feel free to use it] 3 | -------------------------------------------------------------------------------- /.profile: -------------------------------------------------------------------------------- 1 | #Bek Brace / Amir Bekhit @ 30.11.2022 2 | # ~/.profile: executed by the command interpreter for login shells. 3 | # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login 4 | # exists. 5 | # see /usr/share/doc/bash/examples/startup-files for examples. 6 | # the files are located in the bash-doc package. 7 | 8 | # the default umask is set in /etc/profile; for setting the umask 9 | # for ssh logins, install and configure the libpam-umask package. 10 | #umask 022 11 | 12 | # if running bash 13 | if [ -n "$BASH_VERSION" ]; then 14 | # include .bashrc if it exists 15 | if [ -f "$HOME/.bashrc" ]; then 16 | . "$HOME/.bashrc" 17 | fi 18 | fi 19 | 20 | # set PATH so it includes user's private bin if it exists 21 | if [ -d "$HOME/bin" ] ; then 22 | PATH="$HOME/bin:$PATH" 23 | fi 24 | 25 | # set PATH so it includes user's private bin if it exists 26 | if [ -d "$HOME/.local/bin" ] ; then 27 | PATH="$HOME/.local/bin:$PATH" 28 | fi 29 | 30 | export LESS="$LESS -R -Q" 31 | -------------------------------------------------------------------------------- /init_windows.vim: -------------------------------------------------------------------------------- 1 | "Plugins 2 | 3 | call plug#begin() 4 | 5 | Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw) 6 | Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc 7 | Plug 'https://github.com/preservim/nerdtree' ", {'on': 'NERDTreeToggle'} 8 | Plug 'https://github.com/vim-airline/vim-airline' " Status bar 9 | Plug 'https://github.com/ryanoasis/vim-devicons' " Developer Icons 10 | Plug 'https://github.com/tc50cal/vim-terminal' " Vim Terminal 11 | Plug 'https://github.com/RRethy/nvim-base16' " Base16 Color Schemes 12 | Plug 'https://github.com/rafi/awesome-vim-colorschemes' " Retro Scheme 13 | Plug 'https://github.com/preservim/tagbar', {'on': 'TagbarToggle'} " Tagbar for code navigation 14 | Plug 'https://github.com/dkarter/bullets.vim' 15 | Plug 'https://github.com/junegunn/fzf.vim' " Fuzzy Finder, Needs Silversearcher-ag for :Ag 16 | Plug 'https://github.com/junegunn/fzf' 17 | Plug 'https://github.com/glepnir/dashboard-nvim' 18 | Plug 'https://github.com/davidhalter/jedi-vim' 19 | Plug 'github/copilot.vim' 20 | Plug 'https://github.com/mbbill/undotree' 21 | Plug 'https://github.com/numirias/semshi' 22 | Plug 'https://github.com/tpope/vim-fugitive' 23 | 24 | call plug#end() 25 | 26 | " General Configuration 27 | 28 | set number 29 | set relativenumber 30 | set mouse=a 31 | set autoindent 32 | set tabstop=4 33 | set softtabstop=4 34 | set shiftwidth=4 35 | set smarttab 36 | set encoding=UTF-8 37 | 38 | :colorscheme base16-onedark 39 | let g:airline_theme='onedark' 40 | 41 | " NERDTree Configuration 42 | 43 | let g:NERDTreeDirArrowExpandable="+" 44 | let g:NERDTreeDirArrowCollapsible="~" 45 | let g:python_highlight_all = 1 46 | 47 | nnoremap :NERDTreeFocus 48 | nnoremap :NERDTree 49 | nnoremap :NERDTreeToggle 50 | nnoremap :UndotreeToggle 51 | 52 | " VIM AIRLINE CONFIGURATION 53 | 54 | let g:airline_powerline_fonts = 1 55 | 56 | if !exists('g:airline_symbols') 57 | let g:airline_symbols = {} 58 | endif 59 | 60 | let g:bullets_enabled_file_types = [ 61 | \ 'markdown', 62 | \ 'text' 63 | \] 64 | 65 | let g:airline_left_sep = '' 66 | let g:airline_left_alt_sep = '' 67 | let g:airline_right_sep = '' 68 | let g:airline_right_alt_sep = '' 69 | let g:airline_symbols.branch = '' 70 | let g:airline_symbols.readonly = '' 71 | let g:airline_symbols.linenr = '' 72 | 73 | " Tagbar 74 | 75 | nmap :TagbarToggle 76 | 77 | " Dashboard 78 | 79 | let g:dashboard_default_executive ='fzf' 80 | 81 | " Semshi Custom Highlightss 82 | 83 | function MyCustomHighlights() 84 | hi semshiGlobal ctermfg=blue guifg=#61afef 85 | hi semshiImported ctermfg=red guifg=#d28fd7 cterm=bold gui=bold 86 | hi semshiBuiltin ctermfg=yellow guifg=#f5d08b 87 | hi semshiSelected ctermfg=white guifg=#dddddd ctermbg=gray guibg=#454c5a 88 | endfunction 89 | autocmd FileType python call MyCustomHighlights() 90 | -------------------------------------------------------------------------------- /init.vim: -------------------------------------------------------------------------------- 1 | "Bek Brace @ 30.11.2022 2 | :set number 3 | :set autoindent 4 | :set tabstop=4 5 | :set shiftwidth=4 6 | :set smarttab 7 | :set softtabstop=4 8 | :set mouse=a 9 | 10 | call plug#begin() 11 | 12 | Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw) 13 | Plug 'https://github.com/preservim/nerdtree' " NerdTree 14 | Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc 15 | Plug 'https://github.com/vim-airline/vim-airline' " Status bar 16 | Plug 'https://github.com/lifepillar/pgsql.vim' " PSQL Pluging needs :SQLSetType pgsql.vim 17 | Plug 'https://github.com/ap/vim-css-color' " CSS Color Preview 18 | Plug 'https://github.com/rafi/awesome-vim-colorschemes' " Retro Scheme 19 | Plug 'https://github.com/neoclide/coc.nvim' " Auto Completion 20 | Plug 'https://github.com/ryanoasis/vim-devicons' " Developer Icons 21 | Plug 'https://github.com/tc50cal/vim-terminal' " Vim Terminal 22 | Plug 'https://github.com/preservim/tagbar' " Tagbar for code navigation 23 | Plug 'https://github.com/terryma/vim-multiple-cursors' " CTRL + N for multiple cursors 24 | Plug 'https://github.com/rstacruz/vim-closer' " For brackets autocompletion 25 | 26 | 27 | " Auto-completion For Javascript 28 | Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'} " this is for auto complete, prettier and tslinting 29 | 30 | let g:coc_global_extensions = ['coc-tslint-plugin', 'coc-tsserver', 'coc-css', 'coc-html', 'coc-json', 'coc-prettier'] " list of CoC extensions needed 31 | 32 | Plug 'jiangmiao/auto-pairs' "this will auto close ( [ { 33 | 34 | " these two plugins will add highlighting and indenting to JSX and TSX files. 35 | Plug 'yuezk/vim-js' 36 | Plug 'HerringtonDarkholme/yats.vim' 37 | Plug 'maxmellon/vim-jsx-pretty' 38 | 39 | set encoding=UTF-8 40 | 41 | call plug#end() 42 | 43 | nnoremap :NERDTreeFocus 44 | nnoremap :NERDTree 45 | nnoremap :NERDTreeToggle 46 | nnoremap :call CocActionAsync('jumpDefinition') 47 | 48 | nmap :TagbarToggle 49 | 50 | :set completeopt-=preview " For No Previews 51 | 52 | :colorscheme jellybeans 53 | 54 | let g:NERDTreeDirArrowExpandable="+" 55 | let g:NERDTreeDirArrowCollapsible="~" 56 | 57 | " --- Just Some Notes --- 58 | " :PlugClean :PlugInstall :UpdateRemotePlugins 59 | " 60 | " :CocInstall coc-python 61 | " :CocInstall coc-clangd 62 | " :CocInstall coc-snippets 63 | " :CocCommand snippets.edit... FOR EACH FILE TYPE 64 | 65 | " air-line 66 | let g:airline_powerline_fonts = 1 67 | 68 | if !exists('g:airline_symbols') 69 | let g:airline_symbols = {} 70 | endif 71 | 72 | " airline symbols 73 | let g:airline_left_sep = '' 74 | let g:airline_left_alt_sep = '' 75 | let g:airline_right_sep = '' 76 | let g:airline_right_alt_sep = '' 77 | let g:airline_symbols.branch = '' 78 | let g:airline_symbols.readonly = '' 79 | let g:airline_symbols.linenr = '' 80 | 81 | inoremap pumvisible() ? coc#_select_confirm() : "" 82 | -------------------------------------------------------------------------------- /.bashrc: -------------------------------------------------------------------------------- 1 | # ~/.bashrc: executed by bash(1) for non-login shells. 2 | # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) 3 | # for examples 4 | 5 | # If not running interactively, don't do anything 6 | case $- in 7 | *i*) ;; 8 | *) return;; 9 | esac 10 | 11 | # don't put duplicate lines or lines starting with space in the history. 12 | # See bash(1) for more options 13 | HISTCONTROL=ignoreboth 14 | 15 | # append to the history file, don't overwrite it 16 | shopt -s histappend 17 | 18 | # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) 19 | HISTSIZE=1000 20 | HISTFILESIZE=2000 21 | 22 | # check the window size after each command and, if necessary, 23 | # update the values of LINES and COLUMNS. 24 | shopt -s checkwinsize 25 | 26 | # If set, the pattern "**" used in a pathname expansion context will 27 | # match all files and zero or more directories and subdirectories. 28 | #shopt -s globstar 29 | 30 | # make less more friendly for non-text input files, see lesspipe(1) 31 | [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" 32 | 33 | # set variable identifying the chroot you work in (used in the prompt below) 34 | if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then 35 | debian_chroot=$(cat /etc/debian_chroot) 36 | fi 37 | 38 | # set a fancy prompt (non-color, unless we know we "want" color) 39 | case "$TERM" in 40 | xterm-color|*-256color) color_prompt=yes;; 41 | esac 42 | 43 | # uncomment for a colored prompt, if the terminal has the capability; turned 44 | # off by default to not distract the user: the focus in a terminal window 45 | # should be on the output of commands, not on the prompt 46 | #force_color_prompt=yes 47 | 48 | if [ -n "$force_color_prompt" ]; then 49 | if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then 50 | # We have color support; assume it's compliant with Ecma-48 51 | # (ISO/IEC-6429). (Lack of such support is extremely rare, and such 52 | # a case would tend to support setf rather than setaf.) 53 | color_prompt=yes 54 | else 55 | color_prompt= 56 | fi 57 | fi 58 | 59 | if [ "$color_prompt" = yes ]; then 60 | PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' 61 | else 62 | PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' 63 | fi 64 | unset color_prompt force_color_prompt 65 | 66 | # If this is an xterm set the title to user@host:dir 67 | case "$TERM" in 68 | xterm*|rxvt*) 69 | PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" 70 | ;; 71 | *) 72 | ;; 73 | esac 74 | 75 | # enable color support of ls and also add handy aliases 76 | if [ -x /usr/bin/dircolors ]; then 77 | test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" 78 | alias ls='ls --color=auto' 79 | #alias dir='dir --color=auto' 80 | #alias vdir='vdir --color=auto' 81 | 82 | alias grep='grep --color=auto' 83 | alias fgrep='fgrep --color=auto' 84 | alias egrep='egrep --color=auto' 85 | fi 86 | 87 | # colored GCC warnings and errors 88 | #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' 89 | 90 | # some more ls aliases 91 | alias ll='ls -alF' 92 | alias la='ls -A' 93 | alias l='ls -CF' 94 | 95 | # Add an "alert" alias for long running commands. Use like so: 96 | # sleep 10; alert 97 | alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' 98 | 99 | # Alias definitions. 100 | # You may want to put all your additions into a separate file like 101 | # ~/.bash_aliases, instead of adding them here directly. 102 | # See /usr/share/doc/bash-doc/examples in the bash-doc package. 103 | 104 | if [ -f ~/.bash_aliases ]; then 105 | . ~/.bash_aliases 106 | fi 107 | 108 | # enable programmable completion features (you don't need to enable 109 | # this, if it's already enabled in /etc/bash.bashrc and /etc/profile 110 | # sources /etc/bash.bashrc). 111 | if ! shopt -oq posix; then 112 | if [ -f /usr/share/bash-completion/bash_completion ]; then 113 | . /usr/share/bash-completion/bash_completion 114 | elif [ -f /etc/bash_completion ]; then 115 | . /etc/bash_completion 116 | fi 117 | fi 118 | 119 | cd /mnt/c/users/flori/Desktop 120 | 121 | alias pydir="cd /mnt/c/users/flori/Desktop/Programming/Python" 122 | alias godir="cd /mnt/c/users/flori/Desktop/Programming/Go" 123 | alias unidir="cd /mnt/c/users/flori/Desktop/University/3rd\ Semester" 124 | alias neuraldir="cd /mnt/c/users/flori/Desktop/Programming/Python/NeuralNine" 125 | alias desk="cd /mnt/c/users/flori/Desktop" 126 | alias ncdir="cd ~/.config/nvim" 127 | alias ncf="nvim ~/.config/nvim/init.vim" 128 | alias brc="nvim ~/.bashrc" 129 | alias nv="nvim" 130 | alias vg="valgrind" 131 | alias vgall="valgrind -s --leak-check=full --show-leak-kinds=all --track-origins=yes" 132 | 133 | PATH=/usr/bin/node:$PATH 134 | PATH=$PATH:/usr/local/go/bin 135 | 136 | export DISPLAY=localhost:0.0 # XMING Server 137 | --------------------------------------------------------------------------------