mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-03-30 18:03:33 +02:00
Added gvim with gtk2
This commit is contained in:
40
app-editors/gvim/files/gvim-completion
Normal file
40
app-editors/gvim/files/gvim-completion
Normal file
@@ -0,0 +1,40 @@
|
||||
# Author: Ciaran McCreesh <ciaranm@gentoo.org>
|
||||
#
|
||||
# completion for gvim
|
||||
|
||||
_gvim()
|
||||
{
|
||||
local cur prev cmd args
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
cmd=${COMP_WORDS[0]}
|
||||
|
||||
if [[ "${prev}" == "--servername" ]] ; then
|
||||
local servers
|
||||
servers=$(gvim --serverlist )
|
||||
COMPREPLY=( $( compgen -W "${servers}" -- $cur ) )
|
||||
|
||||
elif [[ "${prev}" == -[uUi] ]] ; then
|
||||
COMPREPLY=( $( compgen -W "NONE" ) \
|
||||
$( compgen -f -X "!*vim*" -- "$cur" ) )
|
||||
|
||||
elif [[ "${cur}" == -* ]] ; then
|
||||
args='-t -q -c -S --cmd -A -b -C -d -D -e -E -f --nofork \
|
||||
-F -g -h -H -i -L -l -m -M -N -n -nb -o -R -r -s \
|
||||
-T -u -U -V -v -w -W -x -X -y -Y -Z --echo-wid \
|
||||
--help --literal --noplugin --version'
|
||||
args="${args} --echo-wid --remote --remote-expr \
|
||||
--remote-send --remote-silent --remote-wait \
|
||||
--remote-wait-silent --serverlist \
|
||||
--servername --socketid"
|
||||
COMPREPLY=( $( compgen -W "${args}" -- $cur ) )
|
||||
else
|
||||
_filedir
|
||||
fi
|
||||
}
|
||||
|
||||
complete -o filenames -F _gvim gvim evim eview gview gvimdiff rgvim rgview
|
||||
|
||||
# vim: set ft=sh sw=4 et sts=4 :
|
||||
28
app-editors/gvim/files/gvimrc-r1
Normal file
28
app-editors/gvim/files/gvimrc-r1
Normal file
@@ -0,0 +1,28 @@
|
||||
scriptencoding utf-8
|
||||
" ^^ Please leave the above line at the start of the file.
|
||||
|
||||
" Default configuration file for gvim
|
||||
"
|
||||
" Written by Aron Griffis <agriffis@gentoo.org>
|
||||
"
|
||||
" This file is read AFTER normal Vim initializations, like reading your .vimrc
|
||||
" file (and the default /usr/share/vim/vimrc). So there's no reason to
|
||||
" duplicate settings from vimrc. Red Hat has had this wrong for years, to the
|
||||
" great annoyance of users.
|
||||
|
||||
" Pre-GUI settings
|
||||
set columns=80 lines=30 " don't inherit geometry from parent term
|
||||
set mousemodel=popup " right mouse button pops up a menu in the GUI
|
||||
|
||||
" Use a sufficiently wide window automatically when started as "gvimdiff"
|
||||
if (&foldmethod == 'diff')
|
||||
set columns=165
|
||||
endif
|
||||
|
||||
" For bug 33327, add a mapping which allows shift-insert to function
|
||||
" as expected in insert and command-line modes
|
||||
map! <s-insert> <c-r>*
|
||||
|
||||
if filereadable("@GENTOO_PORTAGE_EPREFIX@/etc/vim/gvimrc.local")
|
||||
source @GENTOO_PORTAGE_EPREFIX@/etc/vim/gvimrc.local
|
||||
endif
|
||||
Reference in New Issue
Block a user