aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gvimrc30
-rw-r--r--init.lua8
m---------pack/all/start/vim-fancy-line0
m---------pack/nvim/start/nvim-git-blame0
m---------pack/nvim/start/nvim-lspconfig0
m---------pack/nvim/start/nvim-treesitter0
-rw-r--r--plugin/lsp.nvim1
-rw-r--r--plugin/max-fix-colorschemes.vim2
-rwxr-xr-x[-rw-r--r--]utils/applications/vim.desktop18
-rw-r--r--vimrc10
-rw-r--r--vimrc-common6
11 files changed, 56 insertions, 19 deletions
diff --git a/gvimrc b/gvimrc
new file mode 100644
index 0000000..eda4fc7
--- /dev/null
+++ b/gvimrc
@@ -0,0 +1,30 @@
1" ======================================================================================================================
2" GUI_DEFAULTS:
3" We want to have a minimal UI
4" ======================================================================================================================
5
6if has("gui_running")
7 set guicursor=a:block-blinkon100
8 set browsedir=buffer
9 set toolbar+=text
10 set guiheadroom=0
11 set guioptions+=eig
12 set guioptions-=T | " toolbar
13 set guioptions+=c | " use console dialogues instead of popups
14 set guioptions+=a | " auto select: copy&paste using middle click
15 set guioptions+=m | " remove menu
16 set guioptions-=e | " do not display tabs
17 set guioptions-=L | " do not show left scrollbar
18 set guioptions-=r | " do not show right scrollbar
19 set winaltkeys=menu | " behave like other windows: ALT-key can be used to open the menu (and cannot be :remaped)
20 " set selectmode=mouse,key,cmd | " enters vim's select mode when pressing shift-left or shift-END
21 " set keymodel=startsel,stopsel | " makes shift-left, shift-right available for selecting text
22
23 set background=light
24 " its possible to define alternative fonts (order matters), but we will
25 " use the systems default font and cofigure that if necessary
26 set guifont=Monospace\ 10
27
28 " like in the terminal: use Ctrl-shift-v for paste in vim's command editor
29 cnoremap <c-s-v> <c-r>*
30endif
diff --git a/init.lua b/init.lua
index e69b081..c710f99 100644
--- a/init.lua
+++ b/init.lua
@@ -2,9 +2,13 @@ vim.cmd('source ~/.vim/vimrc')
2 2
3vim.o.termguicolors = true 3vim.o.termguicolors = true
4vim.o.exrc = true 4vim.o.exrc = true
5vim.o.shell = 'cmd.exe' 5
6if vim.fn.has("win32") then
7 vim.o.shell = 'cmd.exe'
8 vim.opt.rtp:append(vim.fn.expand("$HOME\\scoop\\shims"))
9end
10
6-- vim.o.shadafile = "/tmp/shada" 11-- vim.o.shadafile = "/tmp/shada"
7vim.opt.rtp:append("C:\\Users\\max\\scoop\\shims")
8 12
9-- only on Linux... 13-- only on Linux...
10-- vim.o.shadafile = (os.getenv("XDG_CACHE_HOME") or 14-- vim.o.shadafile = (os.getenv("XDG_CACHE_HOME") or
diff --git a/pack/all/start/vim-fancy-line b/pack/all/start/vim-fancy-line
Subproject bf4fadce4d57396ccbadd0493cac294fe6c69b9 Subproject 6bef9966d5f15203c1567516a5da49b72121423
diff --git a/pack/nvim/start/nvim-git-blame b/pack/nvim/start/nvim-git-blame
deleted file mode 160000
Subproject 8fcf0077ab0c020a68e9d26d347df7da717ddf1
diff --git a/pack/nvim/start/nvim-lspconfig b/pack/nvim/start/nvim-lspconfig
Subproject e49b1e90c1781ce372013de3fa93a91ea29fc34 Subproject 38da5bbe1eaab2394056109e48c7e195bdb8fdf
diff --git a/pack/nvim/start/nvim-treesitter b/pack/nvim/start/nvim-treesitter
Subproject eb3faef3a44641e5875581e901b0a8df8da2bde Subproject 4a68f0778c05083cc458a3a144205cfc4147443
diff --git a/plugin/lsp.nvim b/plugin/lsp.nvim
new file mode 100644
index 0000000..979b35f
--- /dev/null
+++ b/plugin/lsp.nvim
@@ -0,0 +1 @@
command! LspFix lua vim.lsp.buf.code_action()
diff --git a/plugin/max-fix-colorschemes.vim b/plugin/max-fix-colorschemes.vim
index 9f55fdf..9d0c034 100644
--- a/plugin/max-fix-colorschemes.vim
+++ b/plugin/max-fix-colorschemes.vim
@@ -58,5 +58,5 @@ let g:PaperColor_Theme_Options = {
58 \ } 58 \ }
59 \ } 59 \ }
60 60
61 61set background=dark
62colorscheme PaperColor 62colorscheme PaperColor
diff --git a/utils/applications/vim.desktop b/utils/applications/vim.desktop
index f8efe76..8169f57 100644..100755
--- a/utils/applications/vim.desktop
+++ b/utils/applications/vim.desktop
@@ -1,13 +1,15 @@
1[Desktop Entry] 1[Desktop Entry]
2X-Desktop-File-Install-Version=0.23 2Version=1.0
3Type=Application 3Type=Application
4Name=Vi IMproved->buffer2 4Name=Vi IMproved
5Icon=gvim
6Comment=Open file in an existing instance of vi and in a new tab 5Comment=Open file in an existing instance of vi and in a new tab
7MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; 6Icon=gvim
8X-XClassHintResName=VIM 7MimeType=text/*
9Categories=Application;Utility;TextEditor; 8Categories=Application;Utility;TextEditor;
10# Exec=vim --servername VIM --remote-silent %F 9Exec=vim %F
11Exec=xfce4-terminal -e "bash -c '~/.bashrc ; vim --servername VIM --remote-silent %F'"
12Terminal=true 10Terminal=true
13StartupNotify=true 11Actions=Server;
12
13[Desktop Action Server]
14Exec=vim --servername VIM --remote-silent %F
15Name=Browse in Server
diff --git a/vimrc b/vimrc
index ea8ee2b..4a81724 100644
--- a/vimrc
+++ b/vimrc
@@ -8,11 +8,11 @@ set signcolumn=yes
8set foldcolumn=1 8set foldcolumn=1
9 9
10 10
11if ($XDG_SESSION_TYPE ==# 'wayland' || ! empty($WAYLAND_DISPLAY)) 11" if ($XDG_SESSION_TYPE ==# 'wayland' || ! empty($WAYLAND_DISPLAY))
12 autocmd TextYankPost * call system("wl-copy", get(v:event, 'regcontents')) 12" autocmd TextYankPost * call system("wl-copy", get(v:event, 'regcontents'))
13 nnoremap p :silent put =system('wl-paste')<CR> 13" nnoremap p :silent put =system('wl-paste')<CR>
14 nnoremap P :silent put! =system('wl-paste')<CR> 14" nnoremap P :silent put! =system('wl-paste')<CR>
15endif 15" endif
16 16
17 17
18if has("nvim") 18if has("nvim")
diff --git a/vimrc-common b/vimrc-common
index c7d450d..6c06c66 100644
--- a/vimrc-common
+++ b/vimrc-common
@@ -221,9 +221,9 @@ if has("autocmd")
221 " Workaround: Allows Vim to yank text within wayland 221 " Workaround: Allows Vim to yank text within wayland
222 " XDG_SESSION_TYPE is only set if a login manager was used 222 " XDG_SESSION_TYPE is only set if a login manager was used
223 " WAYLAND_DISPLAY should always work 223 " WAYLAND_DISPLAY should always work
224 if ($XDG_SESSION_TYPE ==# 'wayland' || ! empty($WAYLAND_DISPLAY)) && !has('nvim') 224 " if ($XDG_SESSION_TYPE ==# 'wayland' || ! empty($WAYLAND_DISPLAY)) && !has('nvim')
225 autocmd TextYankPost * call system("wl-copy", getreg('+')) 225 " autocmd TextYankPost * call system("wl-copy", getreg('+'))
226 endif 226 " endif
227 227
228 autocmd TextYankPost * echo '> text yanked to '. 228 autocmd TextYankPost * echo '> text yanked to '.
229 \ (get(v:event,'regname') == '' 229 \ (get(v:event,'regname') == ''
..