[UPDATE][VIM] Reorganised vimrc file
I added the `set hidden` option to keep modified buffers open in the background and used that opportunity to modfify the order of my settings and their categorisation.
This commit is contained in:
parent
85319475ab
commit
e735f11afd
38
vim/.vimrc
38
vim/.vimrc
|
@ -9,6 +9,20 @@ set nocompatible
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
set fileencodings=utf-8
|
set fileencodings=utf-8
|
||||||
|
|
||||||
|
" Allow unsaved buffers when switching windows
|
||||||
|
set hidden
|
||||||
|
|
||||||
|
" Allow command completion in command-line
|
||||||
|
set wildmenu
|
||||||
|
|
||||||
|
" Enable syntax high-lighting and file-type specific plugins
|
||||||
|
syntax on
|
||||||
|
filetype plugin indent on
|
||||||
|
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Indentation configuration
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Use space by default
|
" Use space by default
|
||||||
set expandtab
|
set expandtab
|
||||||
" Indent and align to 4 spaces by default
|
" Indent and align to 4 spaces by default
|
||||||
|
@ -22,17 +36,6 @@ set tabstop=8
|
||||||
" Makefiles should use tabs to indent
|
" Makefiles should use tabs to indent
|
||||||
autocmd Filetype make setlocal noexpandtab
|
autocmd Filetype make setlocal noexpandtab
|
||||||
|
|
||||||
" Enable search high-lighting while the search is on-going
|
|
||||||
set hlsearch
|
|
||||||
" Color the 80th column
|
|
||||||
set colorcolumn=80
|
|
||||||
" Show whitespace
|
|
||||||
set list listchars=tab:»·,trail:·
|
|
||||||
|
|
||||||
" Enable syntax high-lighting
|
|
||||||
syntax on
|
|
||||||
filetype plugin indent on
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Plugins
|
" Plugins
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
@ -136,16 +139,25 @@ set number
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
" Enable Doxygen highlighting
|
" Enable Doxygen highlighting
|
||||||
let g:load_doxygen_syntax=1
|
let g:load_doxygen_syntax=1
|
||||||
|
|
||||||
" Make backspace behave as expected
|
" Make backspace behave as expected
|
||||||
set backspace=eol,indent,start
|
set backspace=eol,indent,start
|
||||||
" Disable bell completely
|
" Use the visual bell instead of beeping
|
||||||
set visualbell
|
set visualbell
|
||||||
|
" Disable bell completely by resetting the visual bell's escape sequence
|
||||||
set t_vb=
|
set t_vb=
|
||||||
|
|
||||||
|
" Color the 80th column
|
||||||
|
set colorcolumn=80
|
||||||
|
" Show whitespace
|
||||||
|
set list
|
||||||
|
" Show a tab as an arrow, and spaces as dots
|
||||||
|
set listchars=tab:»·,trail:·
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Search parameters
|
" Search parameters
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Enable search high-lighting while the search is on-going
|
||||||
|
set hlsearch
|
||||||
" Ignore case on search
|
" Ignore case on search
|
||||||
set ignorecase
|
set ignorecase
|
||||||
" Ignore case unless there is an uppercase letter in the pattern
|
" Ignore case unless there is an uppercase letter in the pattern
|
||||||
|
|
Loading…
Reference in a new issue