2024-03-08 21:28:32 +01:00
|
|
|
set nocompatible
|
|
|
|
filetype off
|
2019-10-13 16:04:12 +02:00
|
|
|
|
2024-03-08 21:28:32 +01:00
|
|
|
" Set the runtime path to include Vundle and initialize
|
|
|
|
set rtp+=~/.vim/bundle/Vundle.vim
|
2019-10-13 16:04:12 +02:00
|
|
|
|
2024-03-08 21:28:32 +01:00
|
|
|
" Download plug-ins to the ~/.vim/plugged/ directory
|
|
|
|
call vundle#begin('~/.vim/plugged')
|
2019-10-13 16:04:12 +02:00
|
|
|
|
2024-03-08 21:28:32 +01:00
|
|
|
" Let Vundle manage Vundle
|
|
|
|
Plugin 'VundleVim/Vundle.vim'
|
|
|
|
Plugin 'sheerun/vim-polyglot'
|
|
|
|
Plugin 'scheakur/vim-scheakur'
|
|
|
|
Plugin 'preservim/nerdtree'
|
2019-10-13 16:04:12 +02:00
|
|
|
|
2024-03-08 21:28:32 +01:00
|
|
|
call vundle#end()
|
|
|
|
filetype plugin indent on
|
2019-10-13 16:04:12 +02:00
|
|
|
|
|
|
|
" 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
|
|
|
|
|
|
|
|
" For regular expressions turn magic on
|
|
|
|
set magic
|
|
|
|
|
|
|
|
" Enable syntax highlighting
|
2024-03-08 21:28:32 +01:00
|
|
|
syntax on
|
2019-10-13 16:04:12 +02:00
|
|
|
|
2024-03-08 21:28:32 +01:00
|
|
|
set background=dark " dark or light
|
|
|
|
colorscheme scheakur " Your favorite color scheme's name
|
2019-10-13 16:04:12 +02:00
|
|
|
|
2024-03-08 21:28:32 +01:00
|
|
|
""""""""""""""""""""""""""""""""""""""
|
|
|
|
" NERDTree
|
|
|
|
""""""""""""""""""""""""""""""""""""""
|
|
|
|
let NERDTreeShowBookmarks = 1 " Show the bookmarks table
|
|
|
|
let NERDTreeShowHidden = 1 " Show hidden files
|
|
|
|
let NERDTreeShowLineNumbers = 0 " Hide line numbers
|
|
|
|
let NERDTreeMinimalMenu = 1 " Use the minimal menu (m)
|
|
|
|
let NERDTreeWinPos = "left" " Panel opens on the left side
|
|
|
|
let NERDTreeWinSize = 31 " Set panel width to 31 columns
|
2019-10-13 16:04:12 +02:00
|
|
|
|
2024-03-08 21:28:32 +01:00
|
|
|
nmap <F2> :NERDTreeToggle<CR>
|
2019-10-13 16:04:12 +02:00
|
|
|
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" => Text, tab and indent related
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" Use spaces instead of tabs
|
|
|
|
"set expandtab
|
|
|
|
|
|
|
|
" Be smart when using tabs ;)
|
|
|
|
set smarttab
|
|
|
|
|
|
|
|
" 1 tab == 4 spaces
|
|
|
|
set shiftwidth=4
|
|
|
|
set tabstop=4
|
|
|
|
|
|
|
|
set number
|
|
|
|
|
|
|
|
set listchars=eol:$,space:·,tab:>-,trail:~,extends:>,precedes:<
|
|
|
|
set list
|
|
|
|
|
|
|
|
set colorcolumn=80
|
|
|
|
|
|
|
|
" Linebreak on 500 characters
|
|
|
|
set lbr
|
|
|
|
set tw=500
|
|
|
|
|
|
|
|
set ai "Auto indent
|
|
|
|
set si "Smart indent
|
|
|
|
set wrap "Wrap lines
|
|
|
|
|
|
|
|
|
2024-03-08 21:28:32 +01:00
|
|
|
set termwinsize=12x0 " Set terminal size
|
|
|
|
set splitbelow " Always split below
|
|
|
|
set ttymouse=xterm2
|
|
|
|
set mouse=a " Enable mouse drag on window splits
|