dotfiles/.vimrc

59 lines
1.9 KiB
VimL
Raw Normal View History

2020-12-17 10:02:50 +01:00
set number
set showbreak=+++
set textwidth=100
set showmatch
2020-12-17 12:10:07 +01:00
set virtualedit=onemore
2020-12-17 10:02:50 +01:00
set visualbell
set hlsearch
set smartcase
set gdefault
set ignorecase
set incsearch
set autoindent
set smartindent
set smarttab
set softtabstop=4
set ruler
set undolevels=1000
set backspace=indent,eol,start
2021-05-27 12:30:15 +02:00
set nocompatible
filetype off
" Set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
" Download plug-ins to the ~/.vim/plugged/ directory
call vundle#begin('~/.vim/plugged')
" Let Vundle manage Vundle
Plugin 'VundleVim/Vundle.vim'
Plugin 'sheerun/vim-polyglot'
Plugin 'lifepillar/vim-solarized8'
Plugin 'Yggdroot/indentLine'
Plugin 'tpope/vim-fugitive'
Plugin 'jiangmiao/auto-pairs'
Plugin 'preservim/nerdtree'
" install mit vim +PluginInstall +qall
call vundle#end()
filetype plugin indent on
let g:AutoPairsShortcutToggle = '<C-P>' "The auto-pairs plug-in provides a variable specifically for this, which we can set in .vimrc: Pair completion is now toggled whenever we press Ctrl+P in normal mode.
set nu " Enable line numbers
syntax on " Enable syntax highlighting
" How many columns of whitespace a \t is worth
set tabstop=4
" How many columns of whitespace a level of indentation is worth
set shiftwidth=4
" Use spaces when tabbing
set expandtab
set incsearch " Enable incremental search
set hlsearch " Enable highlight search
set termwinsize=12x0 " Set terminal size
set splitbelow " Always split below
set mouse=a " Enable mouse drag on window splits
set background=light " dark or light
colorscheme solarized8 " Your favorite color scheme's name
let NERDTreeShowHidden = 1 " Show hidden files
let NERDTreeShowLineNumbers = 0 " Hide line numbers
let NERDTreeMinimalMenu = 1 " Use the minimal menu (m)
let NERDTreeWinSize = 31 " Set panel width to 31 columns
nmap <F2> :NERDTreeToggle<CR> " nmap <F2> :NERDTreeToggle<CR>