nixpkgs/home/programs/neovim/init.vim
Daniel Siepmann c856a38eab
Auto select first autocomplete item in Neovim.
As this is most of the time what I need.
I can deselect and type freely to narrow down anyway.
2022-03-17 10:12:35 +01:00

52 lines
1.2 KiB
VimL

set background=dark
set t_Co=256
colorscheme smyckblue
set timeoutlen=1000
set ttimeoutlen=1000
set nonumber
set cursorline
set foldcolumn=0
set foldmethod=indent
set foldlevelstart=1
set laststatus=2
" Don't jump to first line, e.g. on buffer switch
set nostartofline
" Extend completion using spelling if enabled for buffer.
set complete+=kspell
set completeopt=menu,menuone
" Allow syntax highlighting and other file / language specific things
syntax enable
" Activate filetype detection and auto indent
filetype plugin indent on
" Show command in bottom of the screen
set showcmd
set showmode
" More useful command-line completion
set wildmenu
" Auto-completion menu
set wildmode=longest,list:full
" Adjust splitting
set splitbelow
set splitright
" Disable wrap of line
set nowrap
" Test line for wrapping: This should be a very long line with many characters and words so I can test whether this Line get's wrapped or not and how other settings like sidescroll are applied.
set sidescrolloff=5
" Show current line in middle of screen
set scrolloff=1000
" Custom highlighting
" Highlight whitespace at end of line as error
" match Error /\s\+$/
match Todo /TODO\|NOTE\|todo\|TASK/
match ERROR /♥/
" match ERROR /!.*!/