-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
87 lines (79 loc) · 3.4 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
"-> Visual settings?
"set background=dark
colorscheme tokyonight
filetype plugin on
set number " set numbered lines
set numberwidth=2 " set number column width to 2 {default 4}
set cursorline " highlight the current line
set signcolumn=auto " always show the sign column otherwise it would shift the text each time
set title " set the title of window to the value of the titlestring
set backup " creates a backup file
set clipboard=unnamedplus " allows neovim to access the system clipboard
set cmdheight=1 " more space in the neovim command line for displaying messages
"set completeopt="menue" "{"menue" "noselect" "preview" "noinsert" "longest" "menuone" "noselect" "preview"}
set completeopt=menu,menuone,noselect
set conceallevel=2 " so that `` is visible in markdown files
set fileencoding=utf-8 " the encoding written to a file
set encoding=utf-8
set nocompatible
"set foldmethod "manual" " folding set to "expr" for treesitter based folding
set foldmethod=expr
"set foldexpr "" " set to "nvim_treesitter#foldexpr()" for treesitter based folding
"set foldexpr "nvim_treesitter#foldexpr()"
set foldlevelstart=99
set foldlevel=99
set foldenable
set guifont=mospace:h17 " the ft used in graphical neovim applicatis
set hidden " required to keep multiple buffers and open multiple buffers
set mouse=a " allow the mouse to be used in neovim
set mousehide " hide mouse pointer while typing
set pumheight=10 " pop up menu height
" set noshowmode " we d't need to see things like " INSERT " anymore
set showtabline=4 " always show tabs
set smarttab
set smartindent " make indenting smarter again
set breakindent " Every wrapped line will ctinue visually indented
set wrap " display lines as e lg line
set linebreak " wrap lg lines at a blank
set splitbelow " force all horiztal splits to go below current window
set splitright " force all vertical splits to go to the right of current window
"set swapfile=off " creates a swapfile
set timeoutlen=500 " time to wait for a mapped sequence to complete (in millisecds)
"set undodir undodir " set an undo directory
set undofile " enable persistent undo
set updatetime=500 " faster completi
" set writebackup=off " if a file is being edited by another program (or was written to file while editing with another program) it is not allowed to be edited
set nobackup
set expandtab " cvert tabs to spaces
set shiftwidth=4 " the number of spaces inserted for each indentati
set tabstop=4 " insert 2 spaces for a tab
set scrolloff=8 " minimal number of screen lines to keep above and below the cursor.
set sidescrolloff=8 " minimal number of screen lines to keep left and right of the cursor.
" set noshowcmd
set noruler
set laststatus=2
set autochdir
set shell=/usr/bin/zsh
"-> Search Settings
set nohlsearch " highlight all matches previous search pattern
set incsearch
set ignorecase " ignore case in search patterns
set smartcase " smart case
"set list
"set listchars=tab:\|·,trail:·,extends:≫,precedes:≪,eol:⏎,nbsp:␣
set fillchars=vert:\ ,
set wildmode=longest,list,full
set wildmenu
syntax on
"set termguicolors " set term gui colors (most terminals support this)
hi NonText ctermbg=none
hi Normal guibg=NONE ctermbg=NONE
"highlight Normal cterm=NONE ctermbg=NONE ctermfg=NONE gui=NONE guibg=NONE guifg=NONE
augroup vimrc-incsearch-highlight
autocmd!
autocmd CmdlineEnter /\? :set hlsearch
autocmd CmdlineLeave /\? :set nohlsearch
augroup END
if v:version >= 900
set smoothscroll
endif