etc: OPNsense customisations
o add more key bindings to .cshrc o add .vimrc to base installation o disable fortune cookie
This commit is contained in:
parent
67540a7de1
commit
116240f250
|
@ -41,6 +41,10 @@ if ($?prompt) then
|
|||
bindkey "^W" backward-delete-word
|
||||
bindkey -k up history-search-backward
|
||||
bindkey -k down history-search-forward
|
||||
bindkey "\e[1~" beginning-of-line
|
||||
bindkey "\e[2~" overwrite-mode
|
||||
bindkey "\e[3~" delete-char
|
||||
bindkey "\e[4~" end-of-line
|
||||
endif
|
||||
|
||||
endif
|
||||
|
|
|
@ -38,6 +38,10 @@ if ($?prompt) then
|
|||
bindkey "^W" backward-delete-word
|
||||
bindkey -k up history-search-backward
|
||||
bindkey -k down history-search-forward
|
||||
bindkey "\e[1~" beginning-of-line
|
||||
bindkey "\e[2~" overwrite-mode
|
||||
bindkey "\e[3~" delete-char
|
||||
bindkey "\e[4~" end-of-line
|
||||
endif
|
||||
|
||||
endif
|
||||
|
|
|
@ -27,4 +27,4 @@ if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi
|
|||
if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi
|
||||
|
||||
# Display a random cookie on each login.
|
||||
if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune freebsd-tips ; fi
|
||||
#if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune freebsd-tips ; fi
|
||||
|
|
|
@ -8,6 +8,10 @@ PACKAGE= vi
|
|||
SRCDIR= ${SRCTOP}/contrib/nvi
|
||||
SUBDIR+= catalog
|
||||
|
||||
CONFS= dot.vimrc
|
||||
CONFSDIR_dot.vimrc= /root
|
||||
CONFSNAME_dot.vimrc= .vimrc
|
||||
|
||||
WARNS?= 0 # some warn issues on 32 bit machines
|
||||
|
||||
VI= nvi
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
command Zap %s/[\xA0]/ /g
|
||||
set viminfo='20,<1000
|
||||
set colorcolumn=80
|
||||
syntax on
|
||||
set ts=8
|
||||
set hls
|
||||
set nu
|
||||
|
||||
autocmd BufReadPost *
|
||||
\ if ! exists("g:leave_my_cursor_position_alone") |
|
||||
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
|
||||
\ exe "normal g'\"" |
|
||||
\ endif |
|
||||
\ endif
|
Loading…
Reference in New Issue