This commit is contained in:
2024-06-06 10:45:41 +02:00
commit 6bab008356
4 changed files with 2958 additions and 0 deletions

6
.gitignore vendored Normal file
View File

@@ -0,0 +1,6 @@
plugged/
backup/
swap/
undo/
.netrwhist
.netrwhist~

6
README.md Normal file
View File

@@ -0,0 +1,6 @@
# Description
A little vimrc setup for remote servers
# Setup
1. Clone the Repo into ~/.vim
2. create a symlink like this: `ln -s ~/.vim/vimrc ~/.vimrc`
3. open vim

2858
autoload/plug.vim Normal file

File diff suppressed because it is too large Load Diff

88
vimrc Normal file
View File

@@ -0,0 +1,88 @@
" remaps
let mapleader = " "
nnoremap <C-h> <C-w><C-h>
nnoremap <C-j> <C-w><C-j>
nnoremap <C-k> <C-w><C-k>
nnoremap <C-l> <C-w><C-l>
nnoremap <leader>ex :NERDTreeToggle<CR>
inoremap <C-c> <C-[>
nnoremap <leader>f gg=G
" BASIC SETUP ------------------------------------------------------------ {{{
let g:highlightedyank_highlight_duration = 100
set nocompatible
filetype on
filetype plugin on
filetype indent on
syntax on
set number
set relativenumber
set cursorline
set shiftwidth=4
set tabstop=4
set expandtab
set scrolloff=30
set nowrap
set incsearch
set smartcase
set showcmd
set showmode
set showmatch
set hlsearch
set history=1000
set wildmenu
set wildmode=list:longest
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
" }}}
" PLUGINS ---------------------------------------------------------------- {{{
call plug#begin('~/.vim/plugged')
Plug 'preservim/nerdtree'
Plug 'machakann/vim-highlightedyank'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'voldikss/vim-floaterm'
Plug 'isobit/vim-caddyfile'
call plug#end()
" }}}
" PLUGIN CONFIGS
let NERDTreeShowHidden=1
let g:floaterm_keymap_toggle = '<F12>'
let g:floaterm_keymap_toggle = '<leader>t'
let g:floaterm_width = 0.8
let g:floaterm_height = 0.8
let g:ctrlp_clear_cache_on_exit = 1
"PLUGIN REMAPS
nnoremap <silent> <Leader>sf : Files<return>
"nnoremap <silent> <Leader>fc : Fzfopencache<return>
set undofile
set backup
set undodir=~/.vim/undo
set backupdir=~/.vim/backup
set directory=~/.vim/swap
" STATUS LINE ------------------------------------------------------------ {{{
" Clear status line when vimrc is reloaded.
set statusline=
" Status line left side.
set statusline+=\ %F\ %M\ %Y\ %R
" Use a divider to separate the left side from the right side.
set statusline+=%=
" Status line right side.
"set statusline+=\ ascii:\ %b\ hex:\ 0x%B\ row:\ %l\ col:\ %c\ percent:\ %p%%
" Show the status on the second to last line.
set laststatus=2
" }}}