diff options
-rw-r--r-- | gvimrc | 30 | ||||
-rw-r--r-- | init.lua | 8 | ||||
m--------- | pack/all/start/vim-fancy-line | 0 | ||||
m--------- | pack/nvim/start/nvim-git-blame | 0 | ||||
m--------- | pack/nvim/start/nvim-lspconfig | 0 | ||||
m--------- | pack/nvim/start/nvim-treesitter | 0 | ||||
-rw-r--r-- | plugin/lsp.nvim | 1 | ||||
-rw-r--r-- | plugin/max-fix-colorschemes.vim | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | utils/applications/vim.desktop | 18 | ||||
-rw-r--r-- | vimrc | 10 | ||||
-rw-r--r-- | vimrc-common | 6 |
11 files changed, 56 insertions, 19 deletions
@@ -0,0 +1,30 @@ | |||
1 | " ====================================================================================================================== | ||
2 | " GUI_DEFAULTS: | ||
3 | " We want to have a minimal UI | ||
4 | " ====================================================================================================================== | ||
5 | |||
6 | if 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>* | ||
30 | endif | ||
@@ -2,9 +2,13 @@ vim.cmd('source ~/.vim/vimrc') | |||
2 | 2 | ||
3 | vim.o.termguicolors = true | 3 | vim.o.termguicolors = true |
4 | vim.o.exrc = true | 4 | vim.o.exrc = true |
5 | vim.o.shell = 'cmd.exe' | 5 | |
6 | if vim.fn.has("win32") then | ||
7 | vim.o.shell = 'cmd.exe' | ||
8 | vim.opt.rtp:append(vim.fn.expand("$HOME\\scoop\\shims")) | ||
9 | end | ||
10 | |||
6 | -- vim.o.shadafile = "/tmp/shada" | 11 | -- vim.o.shadafile = "/tmp/shada" |
7 | vim.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 | 61 | set background=dark | |
62 | colorscheme PaperColor | 62 | colorscheme 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] |
2 | X-Desktop-File-Install-Version=0.23 | 2 | Version=1.0 |
3 | Type=Application | 3 | Type=Application |
4 | Name=Vi IMproved->buffer2 | 4 | Name=Vi IMproved |
5 | Icon=gvim | ||
6 | Comment=Open file in an existing instance of vi and in a new tab | 5 | Comment=Open file in an existing instance of vi and in a new tab |
7 | MimeType=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++; | 6 | Icon=gvim |
8 | X-XClassHintResName=VIM | 7 | MimeType=text/* |
9 | Categories=Application;Utility;TextEditor; | 8 | Categories=Application;Utility;TextEditor; |
10 | # Exec=vim --servername VIM --remote-silent %F | 9 | Exec=vim %F |
11 | Exec=xfce4-terminal -e "bash -c '~/.bashrc ; vim --servername VIM --remote-silent %F'" | ||
12 | Terminal=true | 10 | Terminal=true |
13 | StartupNotify=true | 11 | Actions=Server; |
12 | |||
13 | [Desktop Action Server] | ||
14 | Exec=vim --servername VIM --remote-silent %F | ||
15 | Name=Browse in Server | ||
@@ -8,11 +8,11 @@ set signcolumn=yes | |||
8 | set foldcolumn=1 | 8 | set foldcolumn=1 |
9 | 9 | ||
10 | 10 | ||
11 | if ($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> |
15 | endif | 15 | " endif |
16 | 16 | ||
17 | 17 | ||
18 | if has("nvim") | 18 | if 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') == '' |