mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-24 17:44:52 +00:00
some vim setup
This commit is contained in:
parent
3949f763f4
commit
26fb22f1b5
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,8 @@
|
||||
.DS_Store
|
||||
nvim.configlink/dirs/*
|
||||
nvim.configlink/.netrwhist
|
||||
nvim.configlink/plugged/**
|
||||
spacemacs.d.symlink/.spacemacs.env
|
||||
fish.configlink/config.fish.bac
|
||||
*.lock.json
|
||||
|
||||
|
@ -7,7 +7,7 @@ if status --is-interactive
|
||||
set DOTS (dirname $FISH_DIR)
|
||||
set PROJ (dirname $DOTS)
|
||||
set PATH $PATH /usr/local/bin ~/.local/bin $DOTS/bin ~/.cargo/bin
|
||||
set CDPATH . $HOME $PROJ $DOTS
|
||||
set CDPATH . $HOME $PROJ
|
||||
|
||||
# Use `vi` in the shell with cursor shapes
|
||||
fish_vi_key_bindings
|
||||
|
2699
nvim.configlink/autoload/plug.vim
Normal file
2699
nvim.configlink/autoload/plug.vim
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,17 @@
|
||||
" Vim Config
|
||||
|
||||
" Plugins
|
||||
call plug#begin('~/.config/nvim/plugged')
|
||||
|
||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } " Required for fuzzyfinder
|
||||
Plug 'junegunn/fzf.vim' " Actual fuzzyfinder
|
||||
Plug 'hashivim/vim-terraform' " Terraform HCL syntax
|
||||
Plug 'vimwiki/vimwiki' " Wiki System
|
||||
|
||||
call plug#end()
|
||||
|
||||
" Settings
|
||||
filetype plugin on " Load the plugin for current filetype (vimwiki)
|
||||
syntax enable " Syntax highlighting
|
||||
set termguicolors " Set to truecolor
|
||||
colorscheme gruvbox " Installed in autoload/ and colors/
|
||||
@ -13,7 +25,9 @@ set ignorecase " Ignore case when searching
|
||||
set smartcase " Check case when using capitals in search
|
||||
set incsearch " Search while typing
|
||||
set pastetoggle=<F3>
|
||||
set visualbell
|
||||
set visualbell " No sounds
|
||||
set scrolljump=1 " Scroll more than one line (or 1 line)
|
||||
set scrolloff=3 " Margin of lines when scrolling
|
||||
|
||||
set clipboard+=unnamedplus " Uses system clipboard for yanking
|
||||
|
||||
@ -22,10 +36,6 @@ if has("autocmd")
|
||||
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
||||
endif
|
||||
|
||||
" Terraform plugin
|
||||
let g:terraform_align=1
|
||||
let g:terraform_remap_spacebar=1
|
||||
|
||||
" Line type
|
||||
let &t_ti.="\e[1 q"
|
||||
let &t_SI.="\e[5 q"
|
||||
@ -36,8 +46,8 @@ let &t_te.="\e[0 q"
|
||||
set noswapfile " Instead of swaps, create backups (less annoying)
|
||||
set backup " Easier to recover and more secure
|
||||
set undofile " Keeps undos after quit
|
||||
set backupdir=~/.vim/dirs/backup
|
||||
set undodir=~/.vim/dirs/undo
|
||||
set backupdir=~/.config/nvim/dirs/backup
|
||||
set undodir=~/.config/vim/dirs/undo
|
||||
|
||||
" Create backup directories if they don't exist
|
||||
if !isdirectory(&backupdir)
|
||||
@ -54,3 +64,10 @@ set mouse=nv
|
||||
let &titlestring = @%
|
||||
set title
|
||||
|
||||
" Terraform Plugin
|
||||
let g:terraform_fmt_on_save=1
|
||||
|
||||
" VimWiki Plugin
|
||||
let g:vimwiki_list = [{'path': '~/Documents/notes/',
|
||||
\ 'syntax': 'markdown', 'ext': '.md'}]
|
||||
|
||||
|
@ -14,6 +14,9 @@ bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
|
||||
# Split out pane
|
||||
bind b break-pane
|
||||
|
||||
# Copy mode works as Vim
|
||||
bind Escape copy-mode
|
||||
bind C-[ copy-mode
|
||||
|
Loading…
Reference in New Issue
Block a user