summaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'nvim')
-rw-r--r--nvim/init.vim39
1 files changed, 22 insertions, 17 deletions
diff --git a/nvim/init.vim b/nvim/init.vim
index 080625e..9b952d3 100644
--- a/nvim/init.vim
+++ b/nvim/init.vim
@@ -42,31 +42,30 @@ set showmatch " Highlight matching brace
set number
set relativenumber
-colorscheme BlackSea
+"colorscheme CandyPaper
+colorscheme SlateDark
-set hlsearch " Highlight all search results
-set smartcase " Enable smart-case search
-set incsearch " Searches for strings incrementally
+set hlsearch " Highlight all search results
+set smartcase " Enable smart-case search
+set incsearch " Searches for strings incrementally
-set expandtab " Use spaces instead of tabs
-set shiftwidth=2 " Number of auto-indent spaces
-set smartindent " Enable smart-indent
-set smarttab " Enable smart-tabs
-set softtabstop=2 " Number of spaces per Tab
+set noexpandtab " Use spaces instead of tabs
+set shiftwidth=4 " Number of auto-indent spaces
+set smartindent " Enable smart-indent
+set nosmarttab " Enable smart-tabs
+"set softtabstop=2 " Number of spaces per Tab
+set tabstop=4
+
"" Advanced
-set ruler " Show row and column ruler information
-set undolevels=1000 " Number of undo levels
+set ruler " Show row and column ruler information
+set undolevels=1000 " Number of undo levels
set backspace=indent,eol,start " Backspace behaviour
filetype plugin indent on
"" GUI Config
set guifont=mononoki\ Nerd\ Font\ Mono:h12
-hi Normal guibg=NONE ctermbg=NONE
-hi NonText guibg=NONE ctermbg=NONE
-set background=dark
-
set foldmethod=marker
set conceallevel=2
@@ -187,11 +186,17 @@ autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif
" custom augroup {{{
augroup custom
autocmd!
- au BufEnter *.tex :LLPStartPreview
+ " au BufEnter *.tex :LLPStartPreview
au BufEnter *.md :set textwidth=80
au BufEnter *.ms :set textwidth=80
+ " au BufEnter *.c :colo DevC++
+ " au BufEnter *.h :colo DevC++
+ " au BufEnter *.cc :colo DevC++
+ " au BufEnter *.hh :colo DevC++
+ " au BufEnter *.cpp :colo DevC++
+ " au BufEnter *.hpp :colo DevC++
au BufWritePost init.vim :source %
- au BufWritePost *.tex :make
+ " au BufWritePost *.tex :make
au BufWritePost *sxhkdrc* :!pkill -USR1 -x sxhkd
au BufWritePost .Xresources :!xrdb ~/.Xresources
au BufWritePost .gitignore :!git add .gitignore