From 4f070005de1e8de35a66fe4679a478b6c4001a2e Mon Sep 17 00:00:00 2001 From: zachir Date: Thu, 8 Feb 2024 21:51:15 -0600 Subject: nvim: Expand tabs to spaces We're switching back to the objectively correct method of using spaces instead of tabs. --- nvim/init.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'nvim/init.vim') diff --git a/nvim/init.vim b/nvim/init.vim index 59332e9..1f877ed 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -51,12 +51,12 @@ set hlsearch " Highlight all search results set smartcase " Enable smart-case search set incsearch " Searches for strings incrementally -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 +set autoindent " Enable auto-indent +"set smartindent " Enable smart-indent +"set nosmarttab " Enable smart-tabs +set expandtab " Use spaces instead of tabs +set tabstop=2 " Number of spaces per tab +set shiftwidth=2 " Number of auto-indent spaces "" Advanced -- cgit v1.2.3 From 1802af2caf8f26820a8c0dfa3149fbfe82afe4c3 Mon Sep 17 00:00:00 2001 From: zachir Date: Thu, 8 Feb 2024 21:52:00 -0600 Subject: nvim: reorganize init.vim to have better comment alignment This is purely for my OCD. --- nvim/init.vim | 60 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'nvim/init.vim') diff --git a/nvim/init.vim b/nvim/init.vim index 1f877ed..211452e 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -1,34 +1,34 @@ " vimplugs {{{ call plug#begin('~/.config/nvim/plugged') " colorschemes {{{ -Plug 'tomasiser/vim-code-dark' " codedark color scheme -Plug 'flazz/vim-colorschemes' " meta-color scheme package -Plug 'ZachIndigo/vim-preglow' " my old color scheme +Plug 'tomasiser/vim-code-dark' " codedark color scheme +Plug 'flazz/vim-colorschemes' " meta-color scheme package +Plug 'ZachIndigo/vim-preglow' " my old color scheme " }}} " language support {{{ -Plug 'axvr/org.vim' " basic org markup language implementation -Plug 'ziglang/zig.vim' " zig programming language -Plug 'jdonaldson/vaxe' " haxe programming language +Plug 'axvr/org.vim' " basic org markup language implementation +Plug 'ziglang/zig.vim' " zig programming language +Plug 'jdonaldson/vaxe' " haxe programming language Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' } " latex live preview support -Plug 'waycrate/swhkd-vim' " swhkd syntax highlighting -Plug 'HiPhish/guile.vim' " guile syntax highlighting +Plug 'waycrate/swhkd-vim' " swhkd syntax highlighting +Plug 'HiPhish/guile.vim' " guile syntax highlighting " }}} " utility {{{ -Plug 'preservim/nerdtree' " directory tree interface -Plug 'Xuyuanp/nerdtree-git-plugin' " git status indicator for nerdtree -Plug 'PhilRunninger/nerdtree-visual-selection' " allows visual selection mode in nerdtree -Plug 'tpope/vim-fugitive' " git command interface -Plug 'junegunn/goyo.vim' " simplify the user interface (distraction-free) [BROKEN] -Plug 'junegunn/limelight.vim' " focus on single paragraph of text at a time -Plug 'vim-airline/vim-airline' " powerline the vim bottom bar -Plug 'nathanaelkane/vim-indent-guides' " indent guides for vim -Plug 'mhinz/vim-signify' " use signs to show diffs -Plug 'tpope/vim-endwise' " auto end functions/if statements -Plug 'tpope/vim-surround' " auto close stuff -Plug 'mattn/emmet-vim' " html css easy formating -Plug 'godlygeek/tabular' " Needed for vim-markdown -Plug 'plasticboy/vim-markdown' " Better markdown support -Plug 'ryanoasis/vim-devicons' " dev icons for nerdtree +Plug 'preservim/nerdtree' " directory tree interface +Plug 'Xuyuanp/nerdtree-git-plugin' " git status indicator for nerdtree +Plug 'PhilRunninger/nerdtree-visual-selection' " allows visual selection mode in nerdtree +Plug 'tpope/vim-fugitive' " git command interface +Plug 'junegunn/goyo.vim' " simplify the user interface (distraction-free) [BROKEN] +Plug 'junegunn/limelight.vim' " focus on single paragraph of text at a time +Plug 'vim-airline/vim-airline' " powerline the vim bottom bar +Plug 'nathanaelkane/vim-indent-guides' " indent guides for vim +Plug 'mhinz/vim-signify' " use signs to show diffs +Plug 'tpope/vim-endwise' " auto end functions/if statements +Plug 'tpope/vim-surround' " auto close stuff +Plug 'mattn/emmet-vim' " html css easy formating +Plug 'godlygeek/tabular' " Needed for vim-markdown +Plug 'plasticboy/vim-markdown' " Better markdown support +Plug 'ryanoasis/vim-devicons' " dev icons for nerdtree " }}} call plug#end() @@ -38,7 +38,7 @@ call plug#end() "" nvimrc: "" General -set showmatch " Highlight matching brace +set showmatch " Highlight matching brace set number set relativenumber @@ -47,9 +47,9 @@ set relativenumber "colorscheme SlateDark colorscheme preglow -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 autoindent " Enable auto-indent "set smartindent " Enable smart-indent @@ -60,9 +60,9 @@ set shiftwidth=2 " Number of auto-indent spaces "" Advanced -set ruler " Show row and column ruler information -set undolevels=1000 " Number of undo levels -set backspace=indent,eol,start " Backspace behaviour +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 -- cgit v1.2.3 From 5bb5ef9ec51f4efced3a06cafcf420aa805a5066 Mon Sep 17 00:00:00 2001 From: zachir Date: Thu, 8 Feb 2024 21:52:42 -0600 Subject: nvim: enable live preview for .tex This re-enables the live preview plugin for .tex files. --- nvim/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nvim/init.vim') diff --git a/nvim/init.vim b/nvim/init.vim index 211452e..cac706f 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -188,7 +188,7 @@ 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++ -- cgit v1.2.3 From c28620857a470ba43b93207c4c339dce43c1df83 Mon Sep 17 00:00:00 2001 From: zachir Date: Thu, 8 Feb 2024 21:53:11 -0600 Subject: nvim: Use DevC++ colo for c/c++ files This uses a colorscheme specifically for c/c++ files when editing c/c++ files. --- nvim/init.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'nvim/init.vim') diff --git a/nvim/init.vim b/nvim/init.vim index cac706f..a28cfc3 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -191,12 +191,12 @@ augroup custom 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 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 *sxhkdrc* :!pkill -USR1 -x sxhkd -- cgit v1.2.3 From 1747bb03f303ce3bd4b61b373f05af836ff0ecbc Mon Sep 17 00:00:00 2001 From: zachir Date: Sat, 23 Mar 2024 18:08:59 -0500 Subject: Set nvim colo and remove C++ auto colo --- nvim/init.vim | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'nvim/init.vim') diff --git a/nvim/init.vim b/nvim/init.vim index a28cfc3..8c0d378 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -43,9 +43,7 @@ set showmatch " Highlight matching brace set number set relativenumber -"colorscheme CandyPaper -"colorscheme SlateDark -colorscheme preglow +colorscheme 256-grayvim set hlsearch " Highlight all search results set smartcase " Enable smart-case search @@ -191,12 +189,12 @@ augroup custom 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 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 *sxhkdrc* :!pkill -USR1 -x sxhkd -- cgit v1.2.3