mkdir -p ~/.vim/bundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
git clone https://github.com/flazz/vim-colorschemes.git ~/.vim/bundle/vim-colorschemes
vim +PluginInstall +qall
Last active
February 12, 2024 20:40
-
-
Save boonya/28049fe2cdbb017a380cf3547b277985 to your computer and use it in GitHub Desktop.
VIM configuration
This file contains 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
syntax enable " syntax highlight | |
filetype off " required | |
" set the runtime path to | |
" include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'flazz/vim-colorschemes' | |
" All of your Plugins must be | |
" added before the following line | |
call vundle#end() " required | |
set mouse=a " Mousepad support | |
set t_Co=256 " set 256 colors | |
colorscheme Benokai " set color scheme | |
" About line numbers https://jeffkreeftmeijer.com/vim-number/ | |
set number relativenumber " show line numbers | |
set nu rnu | |
set ruler | |
set ttyfast " terminal acceleration | |
"set list | |
"set listchars=eol:↓,tab:␉·,trail:␠,space:·,nbsp:⎵ | |
set tabstop=2 " 2 whitespaces for tabs visual presentation | |
set shiftwidth=2 " shift lines by 2 spaces | |
set smarttab " set tabs for a shifttabs logic | |
set expandtab " expand tabs into spaces | |
set paste " Don't add indentation when pasting text -> https://vim.fandom.com/wiki/Toggle_auto-indenting_for_code_paste | |
set noautoindent " noindent when moving to the next line while writing code | |
set cursorline " shows line under the cursor's line | |
set showmatch " shows matching part of bracket pairs (), [], {} | |
set enc=utf-8 " utf-8 by default | |
set encoding=utf-8 " Default files encoding | |
set fileencodings=utf8,cp1251 | |
set nobackup " no backup files | |
set nowritebackup " only in case you don't want a backup file while editing | |
set noswapfile " no swap files | |
set backspace=indent,eol,start " backspace removes all (indents, EOLs, start) What is start? | |
set scrolloff=10 " let 10 lines before/after cursor during scroll | |
set clipboard=unnamed " use system clipboard | |
set exrc " enable usage of additional .vimrc files from working directory | |
set secure " prohibit .vimrc files to execute shell, create files, etc... | |
"" Search settings | |
"===================================================== | |
set incsearch " incremental search | |
set hlsearch " highlight search results | |
"===================================================== | |
filetype plugin indent on | |
set nocompatible |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment