Last active
February 9, 2024 07:43
-
-
Save aschwinwester/0a06a72913fb82da305dc8e5b9cfab6b to your computer and use it in GitHub Desktop.
personal vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """"""""" | |
| " 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 | |
| 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: | |
| " 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 | |
| """""" | |
| " I still have doubts between badwolf or dracula | |
| " for dracula use also 'color dracula' | |
| call plug#begin('~/.vim/plugged') | |
| "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' | |
| " 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() | |
| " need to perform :PlugInstall afterwards | |
| colorscheme dracula | |
| " on macos the following works | |
| set clipboard^=unnamed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment