Hyprland-dotfiles/vim/.vimrc

64 lines
1.4 KiB
VimL
Raw Normal View History

2023-02-09 10:39:52 -05:00
" Add line numbers
set number
" Disable compatibility with vi which can cause unexpected issues.
set nocompatible
" Enable type file detection. Vim will be able to try to detect the type of file in use.
filetype on
" Enable plugins and load plugin for the detected file type.
filetype plugin on
" Load an indent file for the detected file type.
filetype indent on
" Turn syntax highlighting on.
syntax on
" Set shift width to 4 spaces.
set shiftwidth=4
" Set tab width to 4 columns.
set tabstop=4
" Use space characters instead of tabs.
set expandtab
" Do not save backup files.
set nobackup
" Do not let cursor scroll below or above N number of lines when scrolling.
set scrolloff=10
2023-02-11 11:22:33 -05:00
" Set Mouse support
set mouse=a
2023-02-09 10:39:52 -05:00
" Do not wrap lines. Allow long lines to extend as far as the line goes.
2023-02-11 11:22:33 -05:00
" set nowrap
2023-02-09 10:39:52 -05:00
" While searching though a file incrementally highlight matching characters as you type.
set incsearch
" Ignore capital letters during search.
set ignorecase
" Override the ignorecase option if searching for capital letters.
" This will allow you to search specifically for capital letters.
set smartcase
" Show partial command you type in the last line of the screen.
set showcmd
" Show the mode you are on the last line.
set showmode
" Show matching words during a search.
set showmatch
" Use highlighting when doing a search.
set hlsearch
" Set the commands to save in history default number is 20.
set history=1000