Add .vimrc
authorLukáš Jiřiště <gymnazium.jiriste@gmail.com>
Mon, 13 May 2024 20:30:44 +0000 (22:30 +0200)
committerLukáš Jiřiště <gymnazium.jiriste@gmail.com>
Mon, 13 May 2024 20:30:44 +0000 (22:30 +0200)
This repository may not become very useful but I want the vimrc file and
this seems reasonable.

vim/.vimrc [new file with mode: 0644]

diff --git a/vim/.vimrc b/vim/.vimrc
new file mode 100644 (file)
index 0000000..99a32c1
--- /dev/null
@@ -0,0 +1,29 @@
+" Plugins will be downloaded under the specified directory.
+call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
+
+" Declare the list of plugins.
+" 42 Header on F1
+Plug 'https://github.com/42Paris/42header'
+
+" List ends here. Plugins become visible to Vim after this call.
+call plug#end()
+
+" Defining name and email for the 42 header
+let g:user42 = 'ljiriste'
+let g:mail42 = 'ljiriste@student.42prague.com'
+
+set nocompatible
+set tabstop=4
+set shiftwidth=0
+set number relativenumber
+set incsearch
+set autoindent
+syntax on
+" filetype plugin indent on " redundant after syntax on
+set splitright
+
+" Add every subfolder of the vim root folder to path for find command
+set path+=**
+
+" Add visual menu
+set wildmenu