aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorNirmal Kumar R <tildezero@gmail.com>2026-05-31 13:28:39 +0530
committerNirmal Kumar R <tildezero@gmail.com>2026-05-31 13:28:39 +0530
commit30109c1c4c20285f15664b10d46aba7901bd7fb6 (patch)
tree6cbd279c1ba70cf403c9d0e8ba37bd97cab01833 /.vimrc
parent7409ed32dc6d973a3f601e390fb79f02979c8e39 (diff)
Update the dotfiles
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc71
1 files changed, 71 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
new file mode 100644
index 0000000..a61c6c9
--- /dev/null
+++ b/.vimrc
@@ -0,0 +1,71 @@
+set nocompatible
+
+set laststatus=2
+set t_Co=256
+set encoding=utf-8
+set autoindent
+set magic
+set number
+set scrolloff=3
+set sidescroll=3
+set ruler
+set cc=80
+set nowrap
+set ignorecase
+set smartcase
+set splitbelow
+set hidden
+set notimeout
+set incsearch
+set showmatch
+set hlsearch
+set mouse=a
+set noswapfile
+set nofoldenable
+set lazyredraw
+
+filetype on
+filetype plugin on
+filetype indent on
+
+syntax enable
+highlight Normal ctermfg=none ctermbg=none
+highlight NonText ctermfg=none ctermbg=none
+highlight EndOfBuffer ctermfg=none ctermbg=none
+highlight TabLineFill ctermfg=none ctermbg=none
+highlight Search ctermbg=12
+highlight NonText ctermfg=darkgrey
+highlight SpecialKey ctermfg=darkgrey
+highlight clear SignColumn
+highlight Comment cterm=bold ctermfg=none
+highlight StatusLine cterm=none ctermbg=none ctermfg=darkgrey
+highlight StatusLineNC cterm=none ctermbg=none ctermfg=darkgrey
+highlight Title cterm=none ctermfg=darkgrey
+highlight TabLineFill cterm=none
+highlight TabLine cterm=none ctermfg=darkgrey ctermbg=none
+highlight ColorColumn ctermbg=darkgrey guibg=lightgrey
+highlight Todo ctermbg=NONE ctermfg=red cterm=bold
+highlight PreProc ctermfg=grey
+highlight String ctermfg=lightblue cterm=italic
+highlight Type ctermfg=cyan
+highlight lineNr ctermfg=grey cterm=italic
+highlight cIncluded ctermfg=NONE cterm=bold
+highlight pythonInclude ctermfg=blue
+highlight pythonConditional ctermfg=darkcyan
+highlight pythonBuiltin ctermfg=darkcyan
+highlight Pmenu ctermbg=white ctermfg=black
+highlight PmenuSel ctermbg=darkcyan ctermfg=black
+
+autocmd FileType markdown setlocal tw=80 et ts=2 sw=2
+autocmd FileType text setlocal tw=80
+autocmd FileType c,cpp set formatoptions+=ro
+autocmd FileType c set omnifunc=ccomplete#Complete
+autocmd FileType html,xhtml,css,xml,xslt set shiftwidth=2 softtabstop=2
+autocmd FileType vim,lua,nginx set shiftwidth=2 softtabstop=2
+autocmd FileType css set omnifunc=csscomplete#CompleteCSS
+autocmd FileType xhtml,html set omnifunc=htmlcomplete#CompleteTags
+autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
+autocmd FileType make set noexpandtab shiftwidth=8 softtabstop=0
+autocmd FileType asm set noexpandtab shiftwidth=8 softtabstop=0 syntax=nasm
+
+set notermguicolors