2021-04-09 20:34:23 +00:00
|
|
|
" Enable syntax highlighting
|
2021-04-09 20:24:04 +00:00
|
|
|
syntax on
|
|
|
|
|
2021-04-09 20:34:23 +00:00
|
|
|
" Need to set this also to see the current line number
|
2021-04-09 20:24:04 +00:00
|
|
|
set number
|
2021-04-09 20:34:23 +00:00
|
|
|
" Use relative line numbers
|
2021-04-09 20:24:04 +00:00
|
|
|
set relativenumber
|
2021-04-09 20:34:23 +00:00
|
|
|
|
|
|
|
" Do not create swapfiles
|
2021-04-09 20:24:04 +00:00
|
|
|
set noswapfile
|
2021-04-09 20:34:23 +00:00
|
|
|
|
2021-04-09 20:24:04 +00:00
|
|
|
set tabstop=3 softtabstop=3
|
|
|
|
set expandtab
|
|
|
|
set smartindent
|
2021-04-09 20:34:23 +00:00
|
|
|
|
|
|
|
" Do not wrap the line
|
2021-04-09 20:24:04 +00:00
|
|
|
set nowrap
|
|
|
|
|
2021-04-09 20:34:23 +00:00
|
|
|
" View a colored column at 80 chars
|
2021-04-09 20:24:04 +00:00
|
|
|
set colorcolumn=80
|
2021-04-09 20:34:23 +00:00
|
|
|
" Color of column
|
2021-04-09 20:24:04 +00:00
|
|
|
highlight ColorColumn ctermbg=0 guibg=lightgrey
|
|
|
|
|
|
|
|
filetype plugin indent on
|
|
|
|
filetype detect
|
|
|
|
autocmd FileType make set noexpandtab
|