cleanup: init.vim
nvim comes with sane defaults, no need to set them again :)
This commit is contained in:
parent
4e9bad0ebb
commit
c2c902da6e
@ -44,9 +44,6 @@ let g:indent_guides_enable_on_vim_startup=1
|
|||||||
|
|
||||||
"" General
|
"" General
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Set how many lines VIM has to remember
|
|
||||||
set history=500
|
|
||||||
|
|
||||||
" Set vim update time (milliseconds)
|
" Set vim update time (milliseconds)
|
||||||
set updatetime=250
|
set updatetime=250
|
||||||
|
|
||||||
@ -65,9 +62,6 @@ let mapleader = " "
|
|||||||
" Remove the pause when leaving insert mode
|
" Remove the pause when leaving insert mode
|
||||||
set ttimeoutlen=10
|
set ttimeoutlen=10
|
||||||
|
|
||||||
" Set utf8 as standard encoding
|
|
||||||
set encoding=utf-8
|
|
||||||
|
|
||||||
" No netrw history
|
" No netrw history
|
||||||
let g:netrw_dirhistmax=0
|
let g:netrw_dirhistmax=0
|
||||||
|
|
||||||
@ -85,18 +79,9 @@ set relativenumber
|
|||||||
" A buffer becomes hidden when abandonned
|
" A buffer becomes hidden when abandonned
|
||||||
set hid
|
set hid
|
||||||
|
|
||||||
" Highlights search results
|
|
||||||
set hlsearch
|
|
||||||
|
|
||||||
" Searches before hitting ENTER
|
|
||||||
set incsearch
|
|
||||||
|
|
||||||
" Shows matching brackets when cursor is over them
|
" Shows matching brackets when cursor is over them
|
||||||
set showmatch
|
set showmatch
|
||||||
|
|
||||||
" Shows the command that's being typed
|
|
||||||
set showcmd
|
|
||||||
|
|
||||||
" Splits to the right
|
" Splits to the right
|
||||||
set splitright
|
set splitright
|
||||||
|
|
||||||
@ -115,9 +100,6 @@ colorscheme polyjuice
|
|||||||
" Do not use spaces instead of tabs
|
" Do not use spaces instead of tabs
|
||||||
set noexpandtab
|
set noexpandtab
|
||||||
|
|
||||||
" But be smart with tabs
|
|
||||||
set smarttab
|
|
||||||
|
|
||||||
" 1 tab = 4 spaces
|
" 1 tab = 4 spaces
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
@ -142,7 +124,6 @@ autocmd BufWritePre * %s/\s\+$//e
|
|||||||
"" Status line
|
"" Status line
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
"Always show the status line
|
"Always show the status line
|
||||||
set laststatus=2
|
|
||||||
set noshowmode
|
set noshowmode
|
||||||
|
|
||||||
source $XDG_CONFIG_HOME/nvim/statusline.vim
|
source $XDG_CONFIG_HOME/nvim/statusline.vim
|
||||||
|
Reference in New Issue
Block a user