vim config updates

This commit is contained in:
Jason Swank
2026-01-07 00:43:18 +00:00
parent c3becf1566
commit 0fdc0903db
2 changed files with 39 additions and 25 deletions

View File

@@ -15,18 +15,17 @@ Install my dotfiles:
$ ./install.sh $ ./install.sh
``` ```
This will install dotfiles for commonly used apps: if you want to install for This will install dotfiles for commonly used apps: if you want to install for an app not
an app not included, provide that as an argument: included, provide that as an argument:
```console ```console
$ ./install.sh i3 # installed i3 dotfiles $ ./install.sh i3 # installed i3 dotfiles
``` ```
There are two potential gotchas: There are two potential gotchas:
1. There are submodules in this repo (mostly vim/neovim plugins) which didn't 1. There are submodules in this repo (mostly vim/neovim plugins) which didn't get
get populated when you cloned the repo. See above. populated when you cloned the repo. See above.
2. `stow` is not installed on the system. There is a bash equivalent that is
close enough in this repo that the install script will automatically use.
2. `stow` is not installed on the system. There is a bash equivalent that is close
enough in this repo that the install script will automatically use.

View File

@@ -4,6 +4,27 @@ set softtabstop=2
set expandtab set expandtab
set autoindent set autoindent
" line length is 88
set textwidth=88
" Enable soft wrapping
set wrap
" Wrap at word boundaries
set linebreak
" Maintain indentation on wrapped lines
set breakindent
" Optional: visual indicator for wrapped lines
set showbreak=↪\
" Navigate visual lines instead of logical lines
nnoremap j gj
nnoremap k gk
vnoremap j gj
vnoremap k gk
set backspace=indent,eol,start set backspace=indent,eol,start
set background=dark set background=dark
@@ -12,6 +33,10 @@ colorscheme theunixzoo
"colorscheme aomi-grayscale "colorscheme aomi-grayscale
"colorscheme solarized8 "colorscheme solarized8
" any trailing spaces are indicated by a ·
set list
set listchars=trail
"source /home/jswank/.config/nvim/colors-now "source /home/jswank/.config/nvim/colors-now
"set gfn=Droid\ Sans\ Mono\ 10 "set gfn=Droid\ Sans\ Mono\ 10
@@ -21,9 +46,6 @@ set guioptions-=T
"use semicolon as colon for commands "use semicolon as colon for commands
nmap ; : nmap ; :
"disable mouse support (nvim)
set mouse=
filetype plugin on filetype plugin on
filetype indent on filetype indent on
set ofu=syntaxcomplete#Complete# set ofu=syntaxcomplete#Complete#
@@ -31,11 +53,6 @@ set ofu=syntaxcomplete#Complete#
" au FileType python setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4 " au FileType python setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4
au FileType markdown setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4 au FileType markdown setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4
" enable snippets
" let g:UltiSnipsExpandTrigger="<tab>"
" list all snippets
" let g:UltiSnipsListSnippets="<c-l>"
" typing idate inserts the current date " typing idate inserts the current date
iab idate <c-r>=strftime("%Y-%m-%d")<cr> iab idate <c-r>=strftime("%Y-%m-%d")<cr>
@@ -65,7 +82,6 @@ set cursorline " highlights the current line
" Search down into subfolders " Search down into subfolders
set path+=** set path+=**
" netrw config " netrw config
let g:netrw_banner=0 " disable annoying banner let g:netrw_banner=0 " disable annoying banner
let g:netrw_browse_split=0 " open in prior window let g:netrw_browse_split=0 " open in prior window
@@ -78,7 +94,7 @@ let g:netrw_liststyle=3 " tree view
" - <CR>/v/t to open in an h-split/v-split/tab " - <CR>/v/t to open in an h-split/v-split/tab
" - check |netrw-browse-maps| for more mappings " - check |netrw-browse-maps| for more mappings
" fzf-lua shortcuts " fzf.vim shortcuts
nnoremap <c-p> <cmd>Files<CR> nnoremap <c-p> <cmd>Files<CR>
nnoremap <c-\> <cmd>Buffers<CR> nnoremap <c-\> <cmd>Buffers<CR>
nnoremap <c-g> <cmd>Rg<CR> nnoremap <c-g> <cmd>Rg<CR>
@@ -111,12 +127,11 @@ let g:go_highlight_build_constraints = 1
" disable folding for markdown " disable folding for markdown
let g:vim_markdown_folding_disabled = 1 let g:vim_markdown_folding_disabled = 1
" ancient stuff
"let g:hcl_fmt_autosave = 1 "let g:hcl_fmt_autosave = 1
"let g:tf_fmt_autosave = 1 "let g:tf_fmt_autosave = 1
"let g:nomad_fmt_autosave = 1 "let g:nomad_fmt_autosave = 1
" ancient stuff
"
"autocmd BufRead,BufNewFile *.go set makeprg=go\ build "autocmd BufRead,BufNewFile *.go set makeprg=go\ build
"map <leader>gr <ESC>:!gorun %<CR> "map <leader>gr <ESC>:!gorun %<CR>