[2024-08-14] Clean up .vimrc and init.vim

This commit is contained in:
Andrew Conlin 2024-08-14 11:03:47 +01:00 committed by Andrew Conlin
parent 69b3e94577
commit 89e99d1128
2 changed files with 22 additions and 38 deletions

View file

@ -5,6 +5,10 @@ filetype indent on
syntax on
set cursorline
set cursorcolumn
set nospell
" disable wrapping
set nowrap
" relative line numbers
set number
@ -12,20 +16,30 @@ set relativenumber
" colours
set termguicolors
colo tokyonight
set bg=dark
colo quiet
highlight Keyword gui=bold
highlight Comment gui=italic
highlight Constant guifg=#999999
highlight NormalFloat guibg=#333333
highlight CursorLineNr guibg=NONE gui=bold
""" MARKDOWN
" have j and k navigate visual lines rather than logical ones in markdown
autocmd FileType markdown nmap <buffer> j gj
autocmd FileType markdown nmap <buffer> k gk
" wrap text and split on words
" turn spell check on
autocmd FileType markdown
\nmap <buffer> j gj|
\nmap <buffer> k gk|
\setlocal wrap|
\setlocal linebreak|
\setlocal nolist|
\setlocal spell|
\setlocal spelllang=en_gb|
" use H and L for beginning/end of line
map H ^
map L $
" wrap text and split on words
set wrap
set linebreak
set nolist
set shiftwidth=4
set tabstop=4