]> www.ljiriste.work Git - dotfiles.git/commitdiff
Add set colorscheme, textwidth, wildmenu, vimwiki
authorLukáš Jiřiště <redacted>
Sun, 25 Jan 2026 14:28:57 +0000 (15:28 +0100)
committerLukáš Jiřiště <redacted>
Sun, 25 Jan 2026 14:28:57 +0000 (15:28 +0100)
Colorscheme for unified colors.
Textwidth causes more problems than it solves. Particularly nasty in
configs, maybe would be better to specify for source code.

vim/.vimrc

index 7748a0e5498b190a8a4ae7dd8b336886d85fb0b4..65662466063f0efdf05a5dfebb8179cf8bb99117 100644 (file)
@@ -1,11 +1,15 @@
-"" Plugins will be downloaded under the specified directory.
-"" The Plugin manager project is on https://github.com/junegunn/vim-plug
-"call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
-"
-"Plug 'vim-latex/vim-latex'
-"
-"" List ends here. Plugins become visible to Vim after this call.
-"call plug#end()
+" Plugins will be downloaded under the specified directory.
+" The Plugin manager project is on https://github.com/junegunn/vim-plug
+call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
+
+" Declare the list of plugins.
+
+Plug 'vim-latex/vim-latex'
+
+Plug 'vimwiki/vimwiki'
+
+" List ends here. Plugins become visible to Vim after this call.
+call plug#end()
 
 " May be useful for vim-latex?
 let g:tex_flavor='latex'
@@ -13,19 +17,27 @@ let g:tex_flavor='latex'
 set nocompatible
 set tabstop=4
 set shiftwidth=0
-set textwidth=80
 set number relativenumber
 set incsearch
 set autoindent
 set splitright
+colorscheme desert
 
 set belloff=all
 
+" Add visual menu
+
+set wildmode=longest:full,full
+set wildmenu
+
 " Add every subfolder of the vim root folder to path for find command
 set path+=**
 
-" Add visual menu
-set wildmenu
+" Source the vimwiki wikis if there are any
+try
+       source ~/.vimwiki_list
+catch
+endtry
 
 syntax on
 filetype plugin indent on " redundant after syntax on