[2024-05-09] Adding updated nvim config, stripping down .vimrc
This commit is contained in:
parent
a2b0423cc9
commit
762776ef54
6 changed files with 103 additions and 44 deletions
42
.vimrc
42
.vimrc
|
@ -3,43 +3,16 @@ filetype on
|
|||
filetype plugin on
|
||||
filetype indent on
|
||||
syntax on
|
||||
set number
|
||||
set relativenumber
|
||||
set cursorline
|
||||
set cursorcolumn
|
||||
|
||||
" wildmenu
|
||||
set wildmenu
|
||||
set wildmode=list:longest
|
||||
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
|
||||
|
||||
" plugins
|
||||
call plug#begin()
|
||||
Plug 'morhetz/gruvbox'
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'ghifarit53/tokyonight-vim'
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
call plug#end()
|
||||
" relative line numbers
|
||||
set number
|
||||
set relativenumber
|
||||
|
||||
" colours
|
||||
set bg=dark
|
||||
set termguicolors
|
||||
colorscheme tokyonight
|
||||
|
||||
" backspace fix on windows
|
||||
set nocompatible
|
||||
set backspace=indent,eol,start
|
||||
|
||||
" wrap text and split on words
|
||||
set wrap
|
||||
set linebreak
|
||||
set nolist
|
||||
|
||||
" don't show mode as it is shown in airline
|
||||
set noshowmode
|
||||
|
||||
" airline fonts
|
||||
let g:airline_powerline_fonts = 0
|
||||
colo tokyonight
|
||||
|
||||
" have j and k navigate visual lines rather than logical ones
|
||||
nmap j gj
|
||||
|
@ -48,10 +21,3 @@ nmap k gk
|
|||
" use H and L for beginning/end of line
|
||||
nmap H ^
|
||||
nmap L $
|
||||
|
||||
" yank to system clipboard
|
||||
set clipboard=unnamed
|
||||
|
||||
" vim-gitgutter
|
||||
set updatetime=100
|
||||
set signcolumn=yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue