mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
modified some tings
This commit is contained in:
parent
e6d842db36
commit
522e4c513d
6 changed files with 1179 additions and 5 deletions
56
nvim/init.vim
Normal file
56
nvim/init.vim
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
" Plugins will be downloaded under the specified directory.
|
||||
call plug#begin('~/.local/share/nvim/plugged')
|
||||
|
||||
" Declare the list of plugins.
|
||||
Plug 'morhetz/gruvbox'
|
||||
|
||||
" List ends here. Plugins become visible to Vim after this call.
|
||||
call plug#end()
|
||||
|
||||
syntax on
|
||||
set guifont=Monospace\ Bold\ 12
|
||||
colors gruvbox
|
||||
set background=dark
|
||||
|
||||
" Uncomment the following to have Vim jump to the last position when
|
||||
" reopening a file
|
||||
if has("autocmd")
|
||||
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
|
||||
endif
|
||||
|
||||
" Uncomment the following to have Vim load indentation rules and plugins
|
||||
" according to the detected filetype.
|
||||
if has("autocmd")
|
||||
filetype plugin indent on
|
||||
endif
|
||||
|
||||
set showmatch " Show matching brackets.
|
||||
set number " Show the line numbers on the left side.
|
||||
set formatoptions+=o " Continue comment marker in new lines.
|
||||
set expandtab " Insert spaces when TAB is pressed.
|
||||
set tabstop=4 " Render TABs using this many spaces.
|
||||
set shiftwidth=4 " Indentation amount for < and > commands.
|
||||
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J)
|
||||
|
||||
" More natural splits
|
||||
set splitbelow " Horizontal split below current
|
||||
set splitright " Vertical split to right of current.
|
||||
if !&scrolloff
|
||||
set scrolloff=3 " Show next 3 lines while scrolling.
|
||||
endif
|
||||
|
||||
if !&sidescrolloff
|
||||
set sidescrolloff=5 " Show next 5 columns while side-scrolling.
|
||||
endif
|
||||
set nostartofline " Do not jump to first character with page commands.
|
||||
|
||||
" Tell Vim which characters to show for expanded TABs,
|
||||
" trailing whitespace, and end-of-lines. VERY useful!
|
||||
if &listchars ==# 'eol:$'
|
||||
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
|
||||
endif
|
||||
set list " Show problematic characters.
|
||||
|
||||
" Also highlight all tabs and trailing whitespace characters.
|
||||
highlight ExtraWhitespace ctermbg=darkgreen guibg=darkgreen
|
||||
match ExtraWhitespace /\s\+$\|\t/
|
||||
Loading…
Add table
Add a link
Reference in a new issue