Skip to content

Instantly share code, notes, and snippets.

@aschwinwester
Last active February 9, 2024 07:43
Show Gist options
  • Select an option

  • Save aschwinwester/0a06a72913fb82da305dc8e5b9cfab6b to your computer and use it in GitHub Desktop.

Select an option

Save aschwinwester/0a06a72913fb82da305dc8e5b9cfab6b to your computer and use it in GitHub Desktop.

Revisions

  1. aschwinwester revised this gist Feb 9, 2024. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -116,4 +116,7 @@ Plug 'preservim/nerdtree'
    call plug#end()

    " need to perform :PlugInstall afterwards
    colorscheme dracula
    colorscheme dracula

    " on macos the following works
    set clipboard^=unnamed
  2. aschwinwester revised this gist Feb 9, 2024. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -115,4 +115,5 @@ Plug 'preservim/nerdtree'
    " Plug 'puremourning/vimspector'
    call plug#end()

    color dracula
    " need to perform :PlugInstall afterwards
    colorscheme dracula
  3. aschwinwester revised this gist Feb 14, 2023. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -93,8 +93,14 @@ endif
    " Manage plugins using vim-plug
    """"""

    " I still have doubts between badwolf or dracula
    " for dracula use also 'color dracula'

    call plug#begin('~/.vim/plugged')
    Plug 'sjl/badwolf'
    "Plug 'sjl/badwolf'
    " I still have doubts between badwolf or dracula
    " for dracula use also 'color dracula'
    Plug 'dracula/vim'
    " Plug 'altercation/vim-colors-solarized'
    " Plug 'vim-airline/vim-airline'
    " Plug 'vim-airline/vim-airline-themes'
    @@ -109,3 +115,4 @@ Plug 'preservim/nerdtree'
    " Plug 'puremourning/vimspector'
    call plug#end()

    color dracula
  4. aschwinwester revised this gist Feb 14, 2023. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -65,6 +65,10 @@ set showcmd
    """"""
    set visualbell

    set backspace=indent,eol,start

    set autoread " When a file is changed outside of Vim, just reload it rather than asking what to do.

    " Use a line cursor within insert mode and a block cursor everywhere else.
    "
    " Reference chart of values:
  5. aschwinwester created this gist Feb 14, 2023.
    107 changes: 107 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,107 @@
    """""""""
    " Personal settings
    " Don't put any lines in your vimrc that you don't understand.
    """""""""
    "
    "
    """"""""
    " resources
    " https://github.com/amix/vimrc/tree/master/vimrcs
    " https://dougblack.io/words/a-good-vimrc.html
    """"""""

    " Enable filetype plugins
    filetype plugin on
    filetype indent on

    """"""""
    " searching
    """'""""

    " Ignore case when searching
    set ignorecase

    " When searching try to be smart about cases
    set smartcase

    " Highlight search results
    set hlsearch

    " Makes search act like search in modern browsers
    set incsearch

    " Don't redraw while executing macros (good performance config)
    set lazyredraw
    set undofile

    " prevents security exploits dealing with modelines in files
    set modelines=0
    syntax enable

    """""""
    " tab settings
    """""""

    " tabs are spaces
    set expandtab

    set shiftwidth=0
    set softtabstop=-1

    " nr of visuals spaces
    set tabstop=4

    """""""
    " UI config
    """""""
    set encoding=utf-8
    set scrolloff=3
    set autoindent
    set showmode
    set showcmd

    """"""
    " errors
    """"""
    set visualbell

    " Use a line cursor within insert mode and a block cursor everywhere else.
    "
    " Reference chart of values:
    " Ps = 0 -> blinking block.
    " Ps = 1 -> blinking block (default).
    " Ps = 2 -> steady block.
    " Ps = 3 -> blinking underline.
    " Ps = 4 -> steady underline.
    " Ps = 5 -> blinking bar (xterm).
    " Ps = 6 -> steady bar (xterm).
    let &t_SI = "\e[6 q"
    let &t_EI = "\e[2 q"

    " Automatic installation of vim-plug
    if empty(glob('~/.vim/autoload/plug.vim'))
    silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
    \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
    endif

    """"""
    " Manage plugins using vim-plug
    """"""

    call plug#begin('~/.vim/plugged')
    Plug 'sjl/badwolf'
    " Plug 'altercation/vim-colors-solarized'
    " Plug 'vim-airline/vim-airline'
    " Plug 'vim-airline/vim-airline-themes'
    " Plug 'dense-analysis/ale'
    " Plug 'machakann/vim-highlightedyank'
    " Plug 'tpope/vim-commentary'
    " Plug 'tpope/vim-fugitive'
    " Plug 'tpope/vim-surround'
    " Plug 'airblade/vim-gitgutter'
    " Plug 'sheerun/vim-polyglot'
    Plug 'preservim/nerdtree'
    " Plug 'puremourning/vimspector'
    call plug#end()